emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange problem with emacs-lisp/copyright.el


From: Johan Bockgård
Subject: Re: Strange problem with emacs-lisp/copyright.el
Date: Sat, 22 Apr 2017 15:21:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Lele Gaifax <address@hidden> writes:

> It just saves and restore the point position found by `copyright-find-end': I
> tried to understand why the `save-excursion' isn't enough, but failed.

Does it work correctly if you change

  (switch-to-buffer (current-buffer))
  ;; Fixes some point-moving oddness (bug#2209).
  (save-excursion
    (y-or-n-p (if replace

to

  (save-excursion
    (switch-to-buffer (current-buffer))
    (y-or-n-p (if replace

?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]