GNU bug report logs -
#16673
[saveplace] toggle-save-place doesn't toggle-save-place
Previous Next
Reported by: Andy Sawyer <andy.sawyer <at> gmail.com>
Date: Thu, 6 Feb 2014 19:57:01 UTC
Severity: normal
Fixed in version 24.4
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16673 in the body.
You can then email your comments to 16673 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16673
; Package
emacs
.
(Thu, 06 Feb 2014 19:57:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Andy Sawyer <andy.sawyer <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 06 Feb 2014 19:57:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi all,
I noticed a while back that toggle-save-place doesn't actually toggle
save-place. Whilst I mostly run Aquamacs these days, the bug
exists in the existing codebase.
In particular, in a buffer where save-place is nil, it is unconditionally
turned on. I submitted a path for this to the Aquamacs maintainer, and
include it here for your attention.
(I also took the opportunity to use prefix-numeric-value on the
argument, so it plays nice with C-u).
Regards,
Andy
$ git diff saveplace.el
diff --git a/lisp/saveplace.el b/lisp/saveplace.el
index 91da103..0325475 100644
--- a/lisp/saveplace.el
+++ b/lisp/saveplace.el
@@ -156,12 +156,12 @@ file:
(if (not (or buffer-file-name (and (derived-mode-p 'dired-mode)
dired-directory)))
(message "Buffer `%s' not visiting a file or directory" (buffer-name))
- (if (and save-place (or (not parg) (<= parg 0)))
- (progn
- (message "No place will be saved in this file")
- (setq save-place nil))
- (message "Place will be saved")
- (setq save-place t))))
+ (setq save-place (if parg
+ (> (prefix-numeric-value parg) 0)
+ (not save-place)))
+ (message (if save-place
+ "Place will be saved"
+ "No place will be saved in this file"))))
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Fri, 28 Feb 2014 06:46:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Andy Sawyer <andy.sawyer <at> gmail.com>
:
bug acknowledged by developer.
(Fri, 28 Feb 2014 06:46:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 16673-done <at> debbugs.gnu.org (full text, mbox):
Version: 24.4
Thanks; applied.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 28 Mar 2014 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 55 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.