unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org, rutt+news@cis.ohio-state.edu
Subject: Re: [rutt+news@cis.ohio-state.edu: [patch] factor out comment-or-uncomment feature from comment-dwim]
Date: 14 Apr 2002 23:32:36 +0200	[thread overview]
Message-ID: <5xy9fq0xvv.fsf@kfs2.cua.dk> (raw)
In-Reply-To: <200204131906.g3DJ6QP22920@aztec.santafe.edu>

Richard Stallman <rms@gnu.org> writes:

>     Should I install it (together with the new set-mark-command)?
> 
> Please install both.  Thanks.

I have committed changes to implement this (not quite the code
I posted here, as I found various subtle problems with having to
depend on the prefix arg of the last command.)

Note that C-u C-x C-x will now activate transient-mark-mode without
exchanging point or mark.  This works much better than the proposed
C-x C-x C-x C-x (in case you want to do that just to see where the
mark is).

Also, C-u C-SPC always jumps to mark and pop, also when it follows
a previous C-u C-SPC command.  I found it too confusing to change the
semantics of C-u C-SPC  (it seems to be hardwired into by brain).
So now C-u C-SPC C-SPC ... and C-u C-SPC C-u C-SPC ... works the same.

To set the mark following C-u C-SPC ... use C-u C-u C-SPC (or exec
some other command first).

To make this work reliable, there are new commands push-mark-command
which always sets the mark, and pop-to-mark-command which jumps to
mark and pop.  set-mark-command now uses either of these depending on
the state, the last command, and the prefix arg.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

  reply	other threads:[~2002-04-14 21:32 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200204072343.g37NhcO20159@aztec.santafe.edu>
2002-04-08 22:13 ` [rutt+news@cis.ohio-state.edu: [patch] factor out comment-or-uncomment feature from comment-dwim] Stefan Monnier
2002-04-09  0:18   ` Benjamin Rutt
2002-04-09  9:33   ` Kai Großjohann
2002-04-10 14:23   ` Richard Stallman
2002-04-10 16:36     ` Stefan Monnier
2002-04-10 21:25       ` Kim F. Storm
2002-04-10 20:39         ` Stefan Monnier
2002-04-10 21:18         ` Kai Großjohann
2002-04-11  9:37           ` Kim F. Storm
2002-04-11  9:48             ` Francesco Potorti`
2002-04-11 11:49               ` Kim F. Storm
2002-04-11 13:05             ` Stefan Monnier
2002-04-12  3:12             ` Richard Stallman
2002-04-12  9:45               ` Kim F. Storm
2002-04-12 18:46                 ` Stefan Monnier
2002-04-13 19:06                 ` Richard Stallman
2002-04-14 21:32                   ` Kim F. Storm [this message]
2002-04-16 20:18                     ` Richard Stallman
2002-04-10 21:39         ` Kim F. Storm

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=5xy9fq0xvv.fsf@kfs2.cua.dk \
    --to=storm@cua.dk \
    --cc=emacs-devel@gnu.org \
    --cc=rutt+news@cis.ohio-state.edu \
    /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).