emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* bug#18617: 24.3; loading simple-wiki-mode breaks org-mode
       [not found] <877g0iqcg4.fsf@gmail.com>
@ 2016-02-21 11:57 ` Marcin Borkowski
  2016-02-21 14:22   ` Kaushal Modi
  0 siblings, 1 reply; 4+ messages in thread
From: Marcin Borkowski @ 2016-02-21 11:57 UTC (permalink / raw)
  To: vmon; +Cc: 18617

On 2014-10-02, at 20:27, vmon@riseup.net wrote:

> To re-trigger:
> - Install simple-wiki-mode
> - run emacs
> - switch to *scratch*
> - load org-mode
> - make two todos one with subtree:
> * TODO test 1
>   - test 2
> * TODO test 3
> - check pressing tab on First todo hide and show the subtree
> - open a new file: test.txt
> - M-x simple-wiki-mode (on test.txt)
> - switch back to *scratch* (which is still in org-mode)
> - Observe that subtree function is broken.
> - Press tab on TODO test 1 will hide * TODO test 3 and never shows it
> again.

Hello,

I know it was quite a long time ago, but could you confirm that this is
still an issue in current Emacs?  Also, I tried to reproduce it on GNU
Emacs 25.1.50.3, but could not - M-x simple-wiki-mode (after downloading
simple-wiki.el from savannah) resulted in a "setq: Symbol’s function
definition is void: first" error.  (simple-wiki is not an Elpa package,
so I could not install it via the package manager.)

If the problem is still present, please describe exactly how you
installed simple-wiki-mode so that I could see for myself what's
happening.

> Thanks,
> humble emacs user

Best,

-- 
Marcin Borkowski

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: bug#18617: 24.3; loading simple-wiki-mode breaks org-mode
  2016-02-21 11:57 ` bug#18617: 24.3; loading simple-wiki-mode breaks org-mode Marcin Borkowski
@ 2016-02-21 14:22   ` Kaushal Modi
  2016-02-21 14:26     ` Kaushal Modi
  0 siblings, 1 reply; 4+ messages in thread
From: Kaushal Modi @ 2016-02-21 14:22 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: vmon, emacs-org list, 18617

[-- Attachment #1: Type: text/plain, Size: 446 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 845 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: bug#18617: 24.3; loading simple-wiki-mode breaks org-mode
  2016-02-21 14:22   ` Kaushal Modi
@ 2016-02-21 14:26     ` Kaushal Modi
  2017-11-29  1:56       ` bug#18617: " Noam Postavsky
  0 siblings, 1 reply; 4+ messages in thread
From: Kaushal Modi @ 2016-02-21 14:26 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: vmon, emacs-org list, alex, 18617, david.hansen

[-- Attachment #1: Type: text/plain, Size: 759 bytes --]

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)

[-- Attachment #2: Type: text/html, Size: 1396 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#18617:  bug#18617: 24.3; loading simple-wiki-mode breaks org-mode
  2016-02-21 14:26     ` Kaushal Modi
@ 2017-11-29  1:56       ` Noam Postavsky
  0 siblings, 0 replies; 4+ messages in thread
From: Noam Postavsky @ 2017-11-29  1:56 UTC (permalink / raw)
  To: Kaushal Modi; +Cc: vmon, alex, Marcin Borkowski, 18617, david.hansen

# not an Emacs bug
tags 18617 notabug
close 18617
quit

Kaushal Modi <kaushal.modi@gmail.com> writes:

> 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.

Looks like this is a bug in simple-wiki-mode, not in Emacs.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-29  1:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <877g0iqcg4.fsf@gmail.com>
2016-02-21 11:57 ` bug#18617: 24.3; loading simple-wiki-mode breaks org-mode Marcin Borkowski
2016-02-21 14:22   ` Kaushal Modi
2016-02-21 14:26     ` Kaushal Modi
2017-11-29  1:56       ` bug#18617: " Noam Postavsky

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).