all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [johnsu01@wjsullivan.net: C-n doesn't work in Customize Option buffer in -nw with long value displayed]
@ 2006-07-18  0:13 Richard Stallman
  2006-07-18 14:22 ` Chong Yidong
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Stallman @ 2006-07-18  0:13 UTC (permalink / raw)


Would someone please DTRT and ack?

------- Start of forwarded message -------
To: emacs-pretest-bug@gnu.org
From: johnsu01 <johnsu01@wjsullivan.net>
Date: Sat, 15 Jul 2006 22:48:38 -0400
Subject: C-n doesn't work in Customize Option buffer in -nw with long value
	displayed
Reply-To: john@wjsullivan.net
X-Spam-Status: No, score=0.6 required=5.0 tests=FORGED_RCVD_HELO,
	FROM_ENDS_IN_NUMS autolearn=no version=3.0.4


M-x customize-variable RET gnus-summary-line-format RET

(This can probably work with any variable that has a long value.)

Make sure the value is displayed (so the button now says Hide Value). With
point on the "Gnus Summary Line Format" (or on the value button itself), hit
C-n. The cursor won't move.

I think the problem might be related to the fact that the value for this
variable is longer than the width of the screen, and I have truncate-lines set
to nil. I've seen things like this happen in Emacs before. If I
toggle-truncate-lines, then the cursor will move as expected.

In GNU Emacs 22.0.50.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2006-07-07 on pacem, modified by Debian
 (Debian emacs-snapshot package, version 1:20060712-2)
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/22.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.0.50/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.0.50/leim' '--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars' 'CFLAGS=-DDEBIAN -g -O2' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu''

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: en_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Custom

Minor modes in effect:
  shell-dirtrack-mode: t
  jabber-activity-mode: t
  display-battery-mode: t
  erc-match-mode: t
  erc-stamp-mode: t
  iswitchb-mode: t
  display-time-mode: t
  show-paren-mode: t
  encoded-kbd-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-p C-p C-p C-p C-n C-f C-f C-f C-f C-f C-f 
C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f 
C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-n C-n C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-n C-n C-n ESC x r e p o r t SPC b 
SPC DEL e m a s c SPC b DEL DEL DEL c s SPC b SPC 
RET

Recent messages:
Creating group... done
Creating customization items ...done
Resetting customization items...done
Creating customization setup...done
Show the value of this option. [2 times]
Creating customization items...
Creating customization items ...done
Resetting customization items...done
Creating customization setup...done
Loading emacsbug...done


_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------

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

* Re: [johnsu01@wjsullivan.net: C-n doesn't work in Customize Option buffer in -nw with long value displayed]
  2006-07-18  0:13 [johnsu01@wjsullivan.net: C-n doesn't work in Customize Option buffer in -nw with long value displayed] Richard Stallman
@ 2006-07-18 14:22 ` Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2006-07-18 14:22 UTC (permalink / raw)
  Cc: emacs-devel

> From: johnsu01 <johnsu01@wjsullivan.net>
> Subject: C-n doesn't work in Customize Option buffer in -nw with long value
> 	displayed
>
> M-x customize-variable RET gnus-summary-line-format RET
>
> Make sure the value is displayed (so the button now says Hide Value). With
> point on the "Gnus Summary Line Format" (or on the value button itself), hit
> C-n. The cursor won't move.

The bug occurs because `line-beginning-position' and
`line-end-position' respect field boundaries, but `move-to-column'
doesn't.  The following change to `line-move-to-column' should fix
this problem, but it would be nice if someone could check to make sure
it won't get point stuck in other situations.

*** emacs/lisp/simple.el.~1.809.~	2006-07-15 09:34:18.000000000 -0400
--- emacs/lisp/simple.el	2006-07-18 10:20:19.000000000 -0400
***************
*** 3695,3703 ****
  This function works only in certain cases,
  because what we really need is for `move-to-column'
  and `current-column' to be able to ignore invisible text."
!   (if (zerop col)
!       (beginning-of-line)
!     (move-to-column col))
  
    (when (and line-move-ignore-invisible
  	     (not (bolp)) (line-move-invisible-p (1- (point))))
--- 3695,3705 ----
  This function works only in certain cases,
  because what we really need is for `move-to-column'
  and `current-column' to be able to ignore invisible text."
!   (let ((opoint (point)))
!     (if (zerop col)
! 	(beginning-of-line)
!       (move-to-column col))
!     (goto-char (constrain-to-field (point) opoint)))
  
    (when (and line-move-ignore-invisible
  	     (not (bolp)) (line-move-invisible-p (1- (point))))

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

end of thread, other threads:[~2006-07-18 14:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-18  0:13 [johnsu01@wjsullivan.net: C-n doesn't work in Customize Option buffer in -nw with long value displayed] Richard Stallman
2006-07-18 14:22 ` Chong Yidong

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.