unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Dani Moncayo <dmoncayo@gmail.com>
Cc: 17346@debbugs.gnu.org
Subject: bug#17346: 24.4.50; Why is the goal column limited to C-n and C-p ?
Date: Thu, 09 Oct 2014 17:12:04 -0400	[thread overview]
Message-ID: <jwvtx3dar1t.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <CAH8Pv0hgdv-30R4v7oiyCOQj=7V6QEyrCqoBEvkxO6FMQJJAzA@mail.gmail.com> (Dani Moncayo's message of "Thu, 9 Oct 2014 22:43:38 +0200")

>> If you want that, just set scroll-preserve-screen-position accordingly.
> I don't see how that would solve the problem I'm reporting.  For example:

It solves the problem as long as you don't mix cursor-movement (where
you move point, which in turn might cause Emacs to move the viewport)
with scrolling (where you move the viewport, which might in turn cause
Emacs to move point).

>>> Therefore, `preserve-goal-column' would be a better name for the
>>> property, since it would refer to both types of goal columns.
>> Actually both types are temporary (as opposed to `goal-column' which is
>> set typically once and for all by the major mode).
> I'm lost here.  I was aware of only these two types of "goal columns":
> 1. Temporary: Set after every command which moves point, except for
>    those commands intended for _vertical_ motion (C-p/C-n/C-v/M-v/...).
> 2. Semi-permanent: Set with the `set-goal-column' command.  When this
>    goal column is defined, it prevails over the temporary one.

That's right.  `goal-column' is number 2.  Your problem is with
number 1.


        Stefan





  reply	other threads:[~2014-10-09 21:12 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-25 11:29 bug#17346: 24.4.50; Why is the goal column limited to C-n and C-p ? Dani Moncayo
2014-04-25 14:43 ` Dani Moncayo
2014-04-25 16:14   ` Stefan Monnier
2014-04-29  6:25     ` Dani Moncayo
2014-04-29 21:54       ` Stefan Monnier
2014-05-29 15:10         ` Dani Moncayo
2014-10-09  7:24           ` Dani Moncayo
2014-10-09 15:44             ` Stefan Monnier
2014-10-09 16:03               ` Dani Moncayo
2014-10-09 16:30                 ` Dani Moncayo
2014-10-09 19:45                   ` Stefan Monnier
2014-10-09 20:43                     ` Dani Moncayo
2014-10-09 21:12                       ` Stefan Monnier [this message]
2014-10-09 21:32                         ` Dani Moncayo
2014-10-10  1:09                           ` Stefan Monnier
2014-10-09 16:57                 ` Stefan Monnier
2022-04-30 15:34                 ` Lars Ingebrigtsen
2022-04-30 16:11                   ` Drew Adams
2022-06-05 19:37                   ` Lars Ingebrigtsen
2022-06-05 22:56                     ` Drew Adams
2014-04-25 16:20 ` Michael Welsh Duggan
2014-04-25 16:49   ` Dani Moncayo

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=jwvtx3dar1t.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=17346@debbugs.gnu.org \
    --cc=dmoncayo@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 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).