From: Samuel Wales <samologist@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: how to activate region
Date: Fri, 15 May 2009 13:43:39 -0700 [thread overview]
Message-ID: <20524da70905151343v1e053ff0y8311b6028506e06b@mail.gmail.com> (raw)
In-Reply-To: <20524da70905151316v45e2f576te95b74e32de1e900@mail.gmail.com>
Apologies for the noise. I noticed that the solution was pointed to
in the thread. (Thank you.) Somehow I missed it.
Here is the solution to overload c-x c-x to do what I want. (Although
I would use defadvice if possible.)
;;i would use defadvice, which would be much better, but i don't
;;know how to call the original again with an argument
(setf transient-mark-mode nil)
(substitute-key-definition 'exchange-point-and-mark
'alpha-exchange-point-and-mark
global-map)
(defun alpha-exchange-point-and-mark ()
"same as original, but activate region"
(interactive)
;;why this has to be done twice, i don't know; it fails to
;;exchange when t
(exchange-point-and-mark)
(exchange-point-and-mark t))
next prev parent reply other threads:[~2009-05-15 20:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.7100.1242253215.31690.help-gnu-emacs@gnu.org>
2009-05-14 4:59 ` how to activate region Barry Margolin
2009-05-14 8:24 ` Andreas Röhler
2009-05-15 1:46 ` Barry Margolin
2009-05-15 20:16 ` Samuel Wales
2009-05-15 20:43 ` Samuel Wales [this message]
2009-05-13 22:19 Samuel Wales
2009-05-13 23:16 ` Leo
2009-05-14 4:32 ` Samuel Wales
2009-05-14 4:33 ` Samuel Wales
2009-05-14 6:04 ` Andreas Röhler
2009-05-14 4:55 ` Kevin Rodgers
[not found] ` <mailman.7129.1242276989.31690.help-gnu-emacs@gnu.org>
2009-05-14 5:12 ` Barry Margolin
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=20524da70905151343v1e053ff0y8311b6028506e06b@mail.gmail.com \
--to=samologist@gmail.com \
--cc=help-gnu-emacs@gnu.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 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.