all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Chong Yidong'" <cyd@stupidchicken.com>
Cc: 3438@emacsbugs.donarmstrong.com,
	"'T.V. Raman'" <tv.raman.tv@gmail.com>,
	emacs-devel@gnu.org, 'ishikawa' <chiaki.ishikawa@ubin.jp>,
	ams@gnu.org, stephen@xemacs.org
Subject: bug#3438: please make line-move-visual nil
Date: Mon, 1 Jun 2009 11:26:58 -0700	[thread overview]
Message-ID: <BC1A0392D51547EE8B5FB84DB20E25C6__9712.23598248816$1243913090$gmane$org@us.oracle.com> (raw)
In-Reply-To: <87oct7sur8.fsf@cyd.mit.edu>

> > Please see bug report #3438. All of it is worth reading in 
> > this regard. Note in particular his request to have a
> > buffer-local value for line-move-visual, and to have Dired
> > use nil for this.
> 
> >> In dired mode, when the cursor is near the beginning of a very long
> >> filename (as in near the "AaAaAa..." below , I can't move 
> >> down to the next file by "n" or "cursor down" key anymore(!).
> 
> In Dired, <up> and <down> call dired-previous-line and 
> dired-next-line, which should not be affected by line-move-visual.
> I have not been able to reproduce the reported problem (i.e.,
> getting point stuck in Dired). Maybe the reporter has some unusual
> customizations that are getting in the way.

Ah, you're right. And I even remember that I started to mention Dired as an
example of a formatted buffer in my original post in this thread, and removed it
when I realized this was in fact the case (I used Info and Buffer List as
examples). But I forgot about it when I saw the bug report. Thx.

Dired is an exception in this regard among formatted buffers, so you are correct
that Dired's bindings make it irrelevant for the immediate question.

It does illustrate the general idea, however: line movement in formatted buffers
is often different (should often be different) than it is in free-form text
buffers. In Dired, it is particularly different, since we want point to stay on
the file name - we constrain it to one column for vertical movement.

IOW, Dired has its own buffer-local behavior for line movement, which is even
more reflective of the buffer formatting than usual. If anything, this
strengthens the argument for buffer-specific line movement, rather than
weakening it.

More typically (in formatted buffers), we want to reflect the use of newlines
(they are positioned intentionally) and maintain the current column for line
movement, but there is no single, privileged column (e.g. file name) that we
want to constrain point to, as there is in Dired.

Each formatted buffer could individually define its own line-movement commands,
which amounts to just binding `line-move-visual' to nil around a call to
`next-line'. But that would be a bit silly. Better to just let the variable be
buffer-local. And provide nil as the default value for most formatted buffers.

--

BTW, you didn't answer the questions about the poll. How's it coming along?
Where is it?






  reply	other threads:[~2009-06-01 18:26 UTC|newest]

Thread overview: 144+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-24 12:30 please make line-move-visual nil Alfred M. Szmidt
2009-05-13 13:35 ` garyo
2009-05-13 23:59   ` Deniz Dogan
2009-05-14  0:06     ` garyo
2009-05-14  8:51       ` Teemu Likonen
2009-05-14  9:37         ` Antoine Levitt
2009-05-15  3:21           ` Lennart Borgman
2009-05-15  4:22             ` Stephen J. Turnbull
2009-05-17  6:29               ` Alfred M. Szmidt
2009-05-14 11:29         ` garyo
2009-05-14 15:37           ` Teemu Likonen
2009-05-15  2:45             ` Alfred M. Szmidt
2009-05-15 14:31               ` Davis Herring
2009-05-17  6:29                 ` Alfred M. Szmidt
2009-05-17 10:48                   ` Eli Zaretskii
2009-05-17 20:28                     ` Davis Herring
2009-05-24 22:33                       ` Drew Adams
2009-05-24 23:18                         ` Bastien
2009-05-24 23:18                         ` Leo
2009-05-24 23:50                           ` Chong Yidong
2009-05-24 23:58                             ` Lennart Borgman
2009-05-25  8:05                               ` Miles Bader
2009-05-25  0:53                             ` Drew Adams
2009-05-25  1:03                               ` Chong Yidong
2009-05-25  1:59                                 ` Drew Adams
2009-05-25 13:23                                   ` Stefan Monnier
2009-05-25 17:51                                     ` Drew Adams
2009-05-25  2:32                                 ` Stephen J. Turnbull
2009-05-25  3:01                                   ` Eli Zaretskii
2009-05-25  4:16                                     ` Alfred M. Szmidt
2009-05-25  8:34                                       ` Bastien
2009-05-25 20:21                                       ` Eli Zaretskii
2009-05-25 20:46                                         ` Drew Adams
2009-05-27 12:48                                       ` Andrew W. Nosenko
2009-05-27 12:51                                         ` Andrew W. Nosenko
2009-05-31 11:45                                         ` Alfred M. Szmidt
2009-05-31 12:08                                           ` Andreas Schwab
2009-05-31 17:00                                             ` Miles Bader
2009-05-31 22:29                                               ` Bob Rogers
2009-06-01  2:33                                                 ` Miles Bader
2009-06-01  9:22                                                   ` Lennart Borgman
2009-06-01  9:54                                                     ` Miles Bader
2009-06-01  9:59                                                       ` Lennart Borgman
2009-06-05 22:13                                                         ` Thien-Thi Nguyen
2009-05-31 13:09                                           ` Deniz Dogan
2009-06-01  2:39                                             ` Miles Bader
2009-05-31 21:19                                           ` Chong Yidong
2009-06-01  7:24                                             ` Mathias Megyei
2009-06-01 13:29                                           ` Stefan Monnier
2009-06-01 14:36                                             ` T.V. Raman
2009-06-01 16:20                                               ` Drew Adams
2009-06-01 17:56                                                 ` bug#3438: " Chong Yidong
2009-06-01 17:56                                                 ` Chong Yidong
2009-06-01 18:26                                                   ` Drew Adams [this message]
2009-06-01 18:26                                                   ` Drew Adams
2009-06-01 20:11                                                     ` Stefan Monnier
2009-06-01 21:00                                                       ` Drew Adams
2009-06-01 21:25                                                         ` Lennart Borgman
2009-06-01 21:33                                                           ` Drew Adams
2009-06-01 21:56                                                             ` bug#3438: " Lennart Borgman
2009-06-01 21:56                                                             ` Lennart Borgman
2009-06-01 21:33                                                           ` bug#3438: " Drew Adams
2009-06-01 21:25                                                         ` Lennart Borgman
2009-06-01 22:33                                                         ` Stefan Monnier
2009-06-01 22:52                                                           ` bug#3438: " Drew Adams
2009-06-01 22:52                                                           ` Drew Adams
2009-06-01 23:12                                                             ` Lennart Borgman
2009-06-01 23:57                                                               ` Drew Adams
2009-06-01 23:57                                                               ` bug#3438: " Drew Adams
2009-06-01 23:12                                                             ` Lennart Borgman
2009-06-01 23:13                                                             ` Eli Zaretskii
2009-06-01 23:13                                                             ` Eli Zaretskii
2009-06-01 23:23                                                               ` bug#3438: " Drew Adams
2009-06-01 23:23                                                               ` Drew Adams
2009-06-02 15:59                                                                 ` Eli Zaretskii
2009-06-02 15:59                                                                 ` bug#3438: " Eli Zaretskii
2009-06-12 17:16                                                           ` Drew Adams
2009-06-12 21:45                                                             ` bug#3438: " Stefan Monnier
2009-06-12 21:45                                                             ` Stefan Monnier
2009-06-13  0:19                                                               ` Drew Adams
2009-06-14 20:45                                                                 ` Stefan Monnier
2009-06-13  0:19                                                               ` bug#3438: " Drew Adams
2009-06-12 17:16                                                           ` Drew Adams
2009-06-01 22:33                                                         ` Stefan Monnier
2009-06-01 21:00                                                       ` Drew Adams
2009-06-01 20:11                                                     ` Stefan Monnier
2009-06-01 23:18                                                     ` Drew Adams
2009-06-02  1:29                                                       ` Stefan Monnier
2009-05-25  8:18                                     ` Drew Adams
2009-05-25 20:46                                       ` Eli Zaretskii
2009-05-25 21:06                                         ` Drew Adams
2009-05-25 21:28                                           ` Eli Zaretskii
2009-05-25  2:57                             ` Eli Zaretskii
2009-05-25  8:10                               ` Miles Bader
2009-05-26  3:48                               ` Chong Yidong
2009-05-24 23:53                         ` David Reitter
2009-05-25  0:03                           ` Lennart Borgman
2009-05-25  0:52                           ` Drew Adams
2009-05-25  2:32                             ` David Reitter
2009-05-25  8:35                               ` Drew Adams
2009-05-25  2:26                           ` Stephen J. Turnbull
2009-05-25  2:02                         ` Stefan Monnier
2009-05-25  4:16                           ` Alfred M. Szmidt
2009-05-25  8:16                             ` Miles Bader
2009-05-25  9:29                               ` Ulrich Mueller
2009-05-25 10:16                                 ` Miles Bader
2009-05-26  0:13                                 ` Richard M Stallman
2009-05-28 10:38                                   ` David Kastrup
2009-05-28 11:23                                     ` Bastien
2009-05-28 13:38                                     ` Werner LEMBERG
2009-05-29  4:39                                     ` rms
2009-05-26  9:52                                 ` Alan Mackenzie
2009-05-26 12:08                                   ` Lennart Borgman
2009-05-26 12:36                                     ` Rupert Swarbrick
2009-05-26 20:12                                     ` Alfred M. Szmidt
2009-05-25  8:17                           ` Drew Adams
2009-05-25 13:29                             ` Stefan Monnier
2009-05-25 17:51                               ` Drew Adams
2009-05-25 21:14                                 ` Stefan Monnier
2009-05-25 21:26                                   ` Lennart Borgman
2009-05-26  6:56                                   ` Tassilo Horn
2009-05-26 11:37                                     ` Deniz Dogan
2009-05-26 12:24                                       ` Lennart Borgman
2009-05-26 12:42                                         ` David Reitter
     [not found]                                           ` <m3hbz8c9qy.fsf@verona.se>
2009-05-26 12:58                                             ` David Reitter
2009-05-26 12:42                                         ` joakim
2009-05-26 13:54                                         ` Jason Rumney
2009-05-26 20:21                                           ` Lennart Borgman
2009-05-27  2:50                                             ` Miles Bader
2009-05-26 16:56                                       ` Stefan Monnier
2009-05-26 19:17                                   ` Tobias C. Rittweiler
2009-05-14 17:14   ` Bob Nnamtrop
2009-05-14 16:00 ` Shaun Johnson
2009-05-14 16:20   ` David Reitter
2009-05-14 18:17     ` Alan Mackenzie
2009-05-15  5:32       ` David Reitter
2009-05-15  7:18         ` Stephen J. Turnbull
2009-05-15  7:40         ` Stephen Berman
2009-05-15  7:58           ` Miles Bader
2009-05-15 14:14             ` Drew Adams
2009-05-15 14:21             ` Stephen Berman
2009-05-15 14:27               ` Miles Bader
2009-05-16  6:13               ` Stephen J. Turnbull
2009-05-17  3:53       ` Stefan Monnier

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='BC1A0392D51547EE8B5FB84DB20E25C6__9712.23598248816$1243913090$gmane$org@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=3438@emacsbugs.donarmstrong.com \
    --cc=ams@gnu.org \
    --cc=chiaki.ishikawa@ubin.jp \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=stephen@xemacs.org \
    --cc=tv.raman.tv@gmail.com \
    /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 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.