unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13108: 24.3.50; previous-line sometimes moves up two lines instead of just one
@ 2012-12-06 23:08 Ami Fischman
  2012-12-07  7:32 ` Alp Aker
  0 siblings, 1 reply; 5+ messages in thread
From: Ami Fischman @ 2012-12-06 23:08 UTC (permalink / raw)
  To: 13108

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)





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#13108: 24.3.50; previous-line sometimes moves up two lines instead of just one
  2012-12-06 23:08 bug#13108: 24.3.50; previous-line sometimes moves up two lines instead of just one Ami Fischman
@ 2012-12-07  7:32 ` Alp Aker
  2012-12-07 15:31   ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Alp Aker @ 2012-12-07  7:32 UTC (permalink / raw)
  To: Ami Fischman; +Cc: 13108

> 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@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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#13108: 24.3.50; previous-line sometimes moves up two lines instead of just one
  2012-12-07  7:32 ` Alp Aker
@ 2012-12-07 15:31   ` Eli Zaretskii
  2012-12-07 18:58     ` Ami Fischman
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2012-12-07 15:31 UTC (permalink / raw)
  To: Alp Aker; +Cc: ami, vineet naik, 13108

> Date: Fri, 7 Dec 2012 02:32:24 -0500
> From: Alp Aker <alptekin.aker@gmail.com>
> Cc: 13108@debbugs.gnu.org, Eli Zaretskii <eliz@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@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')






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#13108: 24.3.50; previous-line sometimes moves up two lines instead of just one
  2012-12-07 15:31   ` Eli Zaretskii
@ 2012-12-07 18:58     ` Ami Fischman
  2012-12-07 19:09       ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Ami Fischman @ 2012-12-07 18:58 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Alp Aker, vineet naik, 13108

[-- Attachment #1: Type: text/plain, Size: 245 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 360 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#13108: 24.3.50; previous-line sometimes moves up two lines instead of just one
  2012-12-07 18:58     ` Ami Fischman
@ 2012-12-07 19:09       ` Eli Zaretskii
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2012-12-07 19:09 UTC (permalink / raw)
  To: Ami Fischman; +Cc: alptekin.aker, vineet.naik, 13108-done

> Date: Fri, 7 Dec 2012 10:58:42 -0800
> From: Ami Fischman <ami@fischman.org>
> Cc: Alp Aker <alptekin.aker@gmail.com>, vineet naik <vineet.naik@kodeplay.com>, 
> 	13108@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@debbugs.gnu.org.  I didn't do that previously,
because I was waiting for confirmation that the bug is solved.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-12-07 19:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-06 23:08 bug#13108: 24.3.50; previous-line sometimes moves up two lines instead of just one Ami Fischman
2012-12-07  7:32 ` Alp Aker
2012-12-07 15:31   ` Eli Zaretskii
2012-12-07 18:58     ` Ami Fischman
2012-12-07 19:09       ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).