GNU bug report logs - #2694
23.0.91; C-p does not move point beyond the selective-display ellipses

Previous Next

Package: emacs;

Reported by: Daiki Ueno <ueno <at> unixuser.org>

Date: Tue, 17 Mar 2009 04:15:02 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 2694 in the body.
You can then email your comments to 2694 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-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2694; Package emacs. (Tue, 17 Mar 2009 04:15:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daiki Ueno <ueno <at> unixuser.org>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 17 Mar 2009 04:15:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Daiki Ueno <ueno <at> unixuser.org>
To: emacs-pretest-bug <at> gnu.org
Cc: rfrancoise <at> debian.org
Subject: 23.0.91; C-p does not move point beyond the selective-display ellipses
Date: Tue, 17 Mar 2009 13:08:46 +0900
Hi,

Run with emacs -Q and try the following expression in the scratch
buffer:

(let ((buffer (generate-new-buffer "*test*")))
  (pop-to-buffer buffer)
  (setq visual-line-mode nil
	selective-display t
	truncate-lines t)
  (insert "A\n"
	  (make-string (/ (window-width) 2) ?B) "\r"
	  (make-string (/ (window-width) 2) ?C) "\n")
  (end-of-line 0))

Your cursor will be placed at the end of line 2 (after "...").  Then
even if you type C-p (previous-line) several times, the cursor stays at
the same position.

In GNU Emacs 23.0.91.1 (i486-pc-linux-gnu, GTK+ Version 2.12.12)
 of 2009-03-01 on elegiac, modified by Debian
 (emacs-snapshot package, version 1:20090228-1)
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
configured using `configure  '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.91/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.91/site-lisp:/usr/share/emacs/site-lisp' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ja_JP.UTF-8
  value of $XMODIFIERS: @im=SCIM
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  gnus-topic-mode: t
  gnus-undo-mode: t
  which-function-mode: t
  icomplete-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<escape> x g n u s SPC n o SPC SPC <return> y L <escape> 
x r e p o r <tab> <tab> <return>

Recent messages:
Loading /home/ueno/.skk-cus...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Saving file /home/ueno/.newsrc-dribble...
Wrote /home/ueno/.newsrc-dribble
Gnus auto-save file exists.  Do you want to read it? (y or n) 
Reading /home/ueno/.newsrc.eld...
Ignoring disappeared server `nnimap'
Checking new news...done
Scanning for dabbrevs...100%

-- 
Daiki Ueno




Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. (Thu, 19 Mar 2009 03:10:04 GMT) Full text and rfc822 format available.

Notification sent to Daiki Ueno <ueno <at> unixuser.org>:
bug acknowledged by developer. (Thu, 19 Mar 2009 03:10:05 GMT) Full text and rfc822 format available.

Message #10 received at 2694-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Daiki Ueno <ueno <at> unixuser.org>
Cc: 2694-done <at> debbugs.gnu.org
Subject: Re: 23.0.91; C-p does not move point beyond the selective-display ellipses
Date: Wed, 18 Mar 2009 23:04:25 -0400
> (let ((buffer (generate-new-buffer "*test*")))
>   (pop-to-buffer buffer)
>   (setq visual-line-mode nil
>   selective-display t
>   truncate-lines t)
>   (insert "A\n"
>     (make-string (/ (window-width) 2) ?B) "\r"
>       (make-string (/ (window-width) 2) ?C) "\n")
>   (end-of-line 0))
>
> Your cursor will be placed at the end of line 2 (after "...").  Then
> even if you type C-p (previous-line) several times, the cursor stays at
> the same position.

I've checked in a fix.

This fix consists of reverting a change to the vertical-motion code made
in 2005.  I don't know the rationale for that change---the comments say
it's for dealing with selective-display, but it gives rise to the bug
you reported, and reverting it does not seem to cause any problems.
However, my tests are not conclusive, so if you could do some further
testing to make sure I did not reintroduce any problems, I'd appreciate
it.  Thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Thu, 16 Apr 2009 14:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 126 days ago.

Previous Next


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