GNU bug report logs - #13108
24.3.50; previous-line sometimes moves up two lines instead of just one

Previous Next

Package: emacs;

Reported by: Ami Fischman <ami <at> fischman.org>

Date: Thu, 6 Dec 2012 23:10:01 UTC

Severity: normal

Merged with 13111

Found in version 24.3.50

Done: Eli Zaretskii <eliz <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 13108 in the body.
You can then email your comments to 13108 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 bug-gnu-emacs <at> gnu.org:
bug#13108; Package emacs. (Thu, 06 Dec 2012 23:10:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ami Fischman <ami <at> fischman.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 06 Dec 2012 23:10:01 GMT) Full text and rfc822 format available.

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

From: Ami Fischman <ami <at> fischman.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50;
	previous-line sometimes moves up two lines instead of just one
Date: Thu, 06 Dec 2012 15:08:45 -0800
Repro recipe:

gmacs -Q
M-x linum-mode RET  (in the *Scratch* buffer)
ctrl-p (moves up one line; yay)
ctrl-p (moves up two lines; boo!)

This is with emacs built at c6aa556227134725a812bb71c5b2de42e4f135a6


In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars)
 of 2012-12-06 on fischman-linux.<redacted>
Windowing system distributor `The X.Org Foundation', version 11.0.11103000
System Description:	Ubuntu 12.04.1 LTS

Configured using:
 `configure '--prefix=/usr/gmacs-20121206'
 '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info'
 '--with-x-toolkit=lucid' '--with-xpm' '--with-jpeg' '--with-tiff'
 '--with-gif' '--with-png' '--with-x'
 '--program-transform-name=s/emacs/gmacs/g' '--without-dbug'
 '--without-gconf' 'CFLAGS=-Wall -g -O2'
 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'
 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'LIBS=-lfontconfig -lfreetype''

Important settings:
  value of $LC_ALL: 
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  linum-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x l i n u <tab> <return> <up> <up> M-x r e p o r 
t <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Linum mode enabled

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils linum time-date tooltip ediff-hook
vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind dynamic-setting
system-font-setting font-render-setting x-toolkit x multi-tty emacs)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13108; Package emacs. (Fri, 07 Dec 2012 07:33:01 GMT) Full text and rfc822 format available.

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

From: Alp Aker <alptekin.aker <at> gmail.com>
To: Ami Fischman <ami <at> fischman.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 13108 <at> debbugs.gnu.org
Subject: Re: bug#13108: 24.3.50; previous-line sometimes moves up two lines
	instead of just one
Date: Fri, 7 Dec 2012 02:32:24 -0500
> Repro recipe:
>
> gmacs -Q
> M-x linum-mode RET  (in the *Scratch* buffer)
> ctrl-p (moves up one line; yay)
> ctrl-p (moves up two lines; boo!)

It seems to be due to the below commit.

revno: 110764.1.170
fixes bug: http://debbugs.gnu.org/12930
committer: Eli Zaretskii <eliz <at> gnu.org>
branch nick: emacs-24
timestamp: Wed 2012-11-21 21:28:14 +0200
message:
  Fix bug #12930 with vertical-motion through a display string.

   src/indent.c (Fvertical_motion): If the starting position is covered
   by a display string, return to one position before that, to avoid
   overshooting it inside move_it_to.




Merged 13108 13111. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 07 Dec 2012 07:49:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13108; Package emacs. (Fri, 07 Dec 2012 15:33:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alp Aker <alptekin.aker <at> gmail.com>
Cc: vineet naik <vineet.naik <at> kodeplay.com>, ami <at> fischman.org,
	13108 <at> debbugs.gnu.org
Subject: Re: bug#13108: 24.3.50;
	previous-line sometimes moves up two lines instead of just one
Date: Fri, 07 Dec 2012 17:31:47 +0200
> Date: Fri, 7 Dec 2012 02:32:24 -0500
> From: Alp Aker <alptekin.aker <at> gmail.com>
> Cc: 13108 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
> 
> > Repro recipe:
> >
> > gmacs -Q
> > M-x linum-mode RET  (in the *Scratch* buffer)
> > ctrl-p (moves up one line; yay)
> > ctrl-p (moves up two lines; boo!)
> 
> It seems to be due to the below commit.
> 
> revno: 110764.1.170
> fixes bug: http://debbugs.gnu.org/12930
> committer: Eli Zaretskii <eliz <at> gnu.org>
> branch nick: emacs-24
> timestamp: Wed 2012-11-21 21:28:14 +0200
> message:
>   Fix bug #12930 with vertical-motion through a display string.
> 
>    src/indent.c (Fvertical_motion): If the starting position is covered
>    by a display string, return to one position before that, to avoid
>    overshooting it inside move_it_to.

Yes, sorry about that.  Fixed in revision 111007 on the emacs-24
branch.  Patch below, if you cannot wait for the next merge to the
trunk.

=== modified file 'src/indent.c'
--- src/indent.c	2012-11-21 19:28:14 +0000
+++ src/indent.c	2012-12-07 15:28:20 +0000
@@ -2034,7 +2034,11 @@ whether or not it is currently displayed
 	  const char *s = SSDATA (it.string);
 	  const char *e = s + SBYTES (it.string);
 
-	  disp_string_at_start_p = it.string_from_display_prop_p;
+	  /* If it.area is anything but TEXT_AREA, we need not bother
+	     about the display string, as it doesn't affect cursor
+	     positioning.  */
+	  disp_string_at_start_p =
+	    it.string_from_display_prop_p && it.area == TEXT_AREA;
 	  while (s < e)
 	    {
 	      if (*s++ == '\n')





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13108; Package emacs. (Fri, 07 Dec 2012 19:00:01 GMT) Full text and rfc822 format available.

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

From: Ami Fischman <ami <at> fischman.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Alp Aker <alptekin.aker <at> gmail.com>, vineet naik <vineet.naik <at> kodeplay.com>,
	13108 <at> debbugs.gnu.org
Subject: Re: bug#13108: 24.3.50; previous-line sometimes moves up two lines
	instead of just one
Date: Fri, 7 Dec 2012 10:58:42 -0800
[Message part 1 (text/plain, inline)]
Thanks Eli; that fixed the bug for me (patched manually to trunk in my
checkout).
Does the emacs bugtracker allow the reporter of a bug to close it as fixed?
 I can't find any status toggles on
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13108
[Message part 2 (text/html, inline)]

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Fri, 07 Dec 2012 19:11:01 GMT) Full text and rfc822 format available.

Notification sent to Ami Fischman <ami <at> fischman.org>:
bug acknowledged by developer. (Fri, 07 Dec 2012 19:11:02 GMT) Full text and rfc822 format available.

Message #21 received at 13108-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ami Fischman <ami <at> fischman.org>
Cc: alptekin.aker <at> gmail.com, vineet.naik <at> kodeplay.com,
	13108-done <at> debbugs.gnu.org
Subject: Re: bug#13108: 24.3.50;
	previous-line sometimes moves up two lines instead of just one
Date: Fri, 07 Dec 2012 21:09:22 +0200
> Date: Fri, 7 Dec 2012 10:58:42 -0800
> From: Ami Fischman <ami <at> fischman.org>
> Cc: Alp Aker <alptekin.aker <at> gmail.com>, vineet naik <vineet.naik <at> kodeplay.com>, 
> 	13108 <at> debbugs.gnu.org
> 
> Thanks Eli; that fixed the bug for me (patched manually to trunk in my
> checkout).

Thanks, I'm therefore closing the bug.

> Does the emacs bugtracker allow the reporter of a bug to close it as fixed?

Send mail to 13108-done <at> debbugs.gnu.org.  I didn't do that previously,
because I was waiting for confirmation that the bug is solved.




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Fri, 07 Dec 2012 19:11:02 GMT) Full text and rfc822 format available.

Notification sent to vineet naik <vineet.naik <at> kodeplay.com>:
bug acknowledged by developer. (Fri, 07 Dec 2012 19:11: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. (Sat, 05 Jan 2013 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 169 days ago.

Previous Next


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