GNU bug report logs - #5674
23.1; calculator moves point

Previous Next

Package: emacs;

Reported by: Sebastian Rose <sebastian_rose <at> gmx.de>

Date: Wed, 3 Mar 2010 08:49:01 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

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 5674 in the body.
You can then email your comments to 5674 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5674; Package emacs. (Wed, 03 Mar 2010 08:49:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sebastian Rose <sebastian_rose <at> gmx.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 03 Mar 2010 08:49:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sebastian Rose <sebastian_rose <at> gmx.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1; calculator moves point
Date: Wed, 03 Mar 2010 09:20:01 +0100
[Message part 1 (text/plain, inline)]
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs <at> gnu.org mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:


In the current development head only:

`M-x calculator' moves point to some arbitrary point in the buffer. You
may test this in *scratch* buffer after startup (point will be moved to
the end of the buffer in this case).

This simple patch fixes it:

[Message part 2 (text/x-verbatim, inline)]
--- lisp/calculator.el	2010-01-21 13:34:34.000000000 +0100
+++ /home/sebastian/Desktop/calculator.el	2010-03-01 20:50:12.000000000 +0100
@@ -724,7 +724,7 @@
     (progn
       (cond
         ((not (get-buffer-window calculator-buffer))
-         (let ((split-window-keep-point nil)
+         (let ((split-window-keep-point t)
                (window-min-height 2))
            ;; maybe leave two lines for our window because of the normal
            ;; `raised' modeline in Emacs 21

[Message part 3 (text/plain, inline)]
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sebastian  Rose      Fachinformatiker / Anwendungsentwicklung
Viktoriastr. 22      Entwicklung von Anwendungen mit freien Werkzeugen
30451  Hannover      und Bibliotheken.

0173  83 93 417      sebastian_rose <at> gmx.de         s.rose <at> emma-stil.de
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5674; Package emacs. (Sat, 06 Mar 2010 18:25:02 GMT) Full text and rfc822 format available.

Message #8 received at 5674 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Sebastian Rose <sebastian_rose <at> gmx.de>
Cc: 5674 <at> debbugs.gnu.org
Subject: Re: 23.1; calculator moves point
Date: Sat, 06 Mar 2010 13:24:40 -0500
> `M-x calculator' moves point to some arbitrary point in the buffer. You
> may test this in *scratch* buffer after startup (point will be moved to
> the end of the buffer in this case).
>
> This simple patch fixes it:

Better not to bind split-window-keep-point at all, I think (not sure why
the code did it).  I've checked in just such a change.  Thanks for the
bug report.




bug closed, send any further explanations to Sebastian Rose <sebastian_rose <at> gmx.de> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Sat, 06 Mar 2010 18:25:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 04 Apr 2010 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 140 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.