Re: [O] bug#18617: 24.3; loading simple-wiki-mode breaks org-mode

2016-02-21 Thread Kaushal Modi
A quick look at the code shows that it pollutes the namespace with
undeclared and un-let-bound variables like "tag" (and there could be more
like that).

If we investigate further, we might find a culprit like that that's causing
this problem.

(defun simple-wiki-get-tag ()
  (let (prompt)
(if (and simple-wiki-tag-history (car simple-wiki-tag-history))
(setq prompt (concat "Tag (" (car simple-wiki-tag-history) "): "))
  (setq prompt "Tag: "))
(setq tag (completing-read prompt simple-wiki-tag-list nil nil ""
   'simple-wiki-tag-history
   (car simple-wiki-tag-history
  (unless (assoc tag simple-wiki-tag-list)
(add-to-list 'simple-wiki-tag-list (cons tag nil)))
  tag)


Re: [O] bug#18617: 24.3; loading simple-wiki-mode breaks org-mode

2016-02-21 Thread Kaushal Modi
I can recreate that bug.

The "first" alias is defined in the cl library. So you would need to
(require 'cl) before requiring simple-wiki.

I eval'd simple-wiki from here:
http://cvs.savannah.gnu.org/viewvc/*checkout*/http-emacs/http-emacs/simple-wiki.el

I haven't yet looked into the internals of simple-wiki.el to investigate
what's breaking the visibility cycling.
Basically TAB or S-TAB stop cycling the visibility; they seem to do nothing.