GNU bug report logs - #25181
25.1.90; move-beginning-of-line doesn't move point

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Mon, 12 Dec 2016 11:40:01 UTC

Severity: minor

Tags: moreinfo, wontfix

Found in version 25.1.90

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 25181 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 25181 <at> debbugs.gnu.org
Subject: Re: bug#25181: 25.1.90; move-beginning-of-line doesn't move point
Date: Tue, 13 Dec 2016 18:05:39 +0200
> Cc: 25181 <at> debbugs.gnu.org
> From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
> Date: Tue, 13 Dec 2016 10:25:32 +0100
> 
> >>       (setq first-vis-field-value
> >>         (constrain-to-field first-vis orig (/= arg 1) t nil))
> >>
> >> Here first-vis-field-value is set to orig, i.e. pos 16, where it jumps
> >> back-to, not leaving point at BOL.
> > I'm not sure I understood, but if I did, this is a feature: functions
> > such as beginning-of-line stop moving at field boundaries.
> >
> 
> Hmm, is this reasonable? BOL is a very basic concept. Don't think it 
> should be permitted to be interfered with fields.

The idea is that a Lisp program would use fields only when the
produced effect is what the user would expect.  You see this every day
in action when you type "C-x C-f" and then C-a: point stops at the
beginning of the default directory, without entering the "Find file:"
prompt.  Moving point to BOL in this case would be a nuisance.  (You
can still get to the beginning of line by other means, like C-b.)

That's what fields are all about.  If you don't want this effect,
don't use fields; they are opt-in.




This bug report was last modified 6 years and 213 days ago.

Previous Next


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