On Tue, 23 Sep 2014 10:22:45 +0200, Tobias Getzner wrote:

> This was quite painful to isolate, but I’ve now identified a minimal
> configuration which should trigger this bug.
> 
> ──────────────────────────────────────────────────────────────────
> ;; BEGIN minimal.el
> (add-to-list 'load-path (expand-file-name "~/.emacs.d/elpa/org-20140922"))
> 
> ;; Example needs sh; might also trigger with other langs.
> (org-babel-do-load-languages
>   'org-babel-load-languages
>   '((sh .t)))
> 
> (fset 'yes-or-no-p 'y-or-n-p)
> 
> (defun my-org-mode-hook ()
>    (follow-mode))
> (add-hook 'org-mode-hook 'my-org-mode-hook)
> ;; END minimal.el
> ──────────────────────────────────────────────────────────────────
> 
> This seems rather bizarre. Both follow-mode and the y-or-n-p alias work
> in isolation, but when both are used at the same time, I observe the
> bug initially described.

I’ve found this bug might be related to [1], where org-mode seems to trip
when both follow-mode and TeX-source-correlate-mode are active. [1] does
not seem to interact with aliasing yes-or-no-p, though.

[1] http://article.gmane.org/gmane.emacs.orgmode/91009


Reply via email to