unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: alex.branham@gmail.com, 30212@debbugs.gnu.org
Subject: bug#30212: 26.0.91; [PATCH] push mark before moving point in shell output
Date: Wed, 18 Apr 2018 09:10:52 +0300	[thread overview]
Message-ID: <8336zt2ger.fsf@gnu.org> (raw)
In-Reply-To: <87lgdlh996.fsf@mouse.gnus.org> (message from Lars Ingebrigtsen on Tue, 17 Apr 2018 22:24:05 +0200)

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Tue, 17 Apr 2018 22:24:05 +0200
> Cc: 30212@debbugs.gnu.org
> 
> Alex Branham <alex.branham@gmail.com> writes:
> 
> > Since shell commands move point, I find it useful to push the mark so
> > that I can navigate around different output using C-u C-SPC. This
> > patch adds the push-mark call that's necessary to
> > shell-command--save-pos-or-erase.
> 
> [...]
> 
> >      (when pos
> > +      (push-mark pos t)
> >        (goto-char (point-max))
> 
> Hm...  I don't think it would be a good idea to set the mark
> unexpectedly -- people have certain expectations on what commands set
> the mark, and setting it for every command in shell mode would be
> unusual and get in the way of people's work habits, I think.

If the commands in questions tend to move very far away, it is
accepted Emacs behavior to push a mark before such large moves.





      reply	other threads:[~2018-04-18  6:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-22 19:55 bug#30212: 26.0.91; [PATCH] push mark before moving point in shell output Alex Branham
2018-04-17 20:24 ` Lars Ingebrigtsen
2018-04-18  6:10   ` Eli Zaretskii [this message]

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=8336zt2ger.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=30212@debbugs.gnu.org \
    --cc=alex.branham@gmail.com \
    --cc=larsi@gnus.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).