From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: [cyd@stupidchicken.com: Re: [johnsu01@wjsullivan.net: C-n doesn't work in Customize Option buffer in -nw with long value displayed]]
Date: Tue, 18 Jul 2006 20:39:03 -0400 [thread overview]
Message-ID: <E1G305f-0003NI-4K@fencepost.gnu.org> (raw)
Could you please study this proposed change and comment?
We need the help of your expertise to do a good job.
------- Start of forwarded message -------
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: [johnsu01@wjsullivan.net: C-n doesn't work in Customize Option buffer in -nw with long value displayed]
From: Chong Yidong <cyd@stupidchicken.com>
Date: Tue, 18 Jul 2006 10:22:17 -0400
In-Reply-To: <E1G2dDM-000176-Pi@fencepost.gnu.org> (Richard Stallman's message of "Mon, 17 Jul 2006 20:13:28 -0400")
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
> 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))))
------- End of forwarded message -------
next reply other threads:[~2006-07-19 0:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-19 0:39 Richard Stallman [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-07-25 22:15 [cyd@stupidchicken.com: Re: [johnsu01@wjsullivan.net: C-n doesn't work in Customize Option buffer in -nw with long value displayed]] Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1G305f-0003NI-4K@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).