help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mark without starting region


From: Shaddin Doghmi
Subject: Re: mark without starting region
Date: Wed, 23 Jul 2003 14:57:12 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

lawrence mitchell wrote:

Shaddin Doghmi wrote:


i use marks for two different purposes at different times: starting a
region, as well as pushing a position on the stack so i can come back
to it later. When starting a region, i like having transient mark mode
on so i can see the region highlighted. However, this becomes an
annoyance when im using the mark for simply remembering a position. Of
course one way to do it to map the transient-mark-mode toggle to a
key, and just toggle that on and off.... however, what i would really
want is two different functions: one sets a mark and starts a region,
the other just sets a mark... is there any such thing? i tried writing
two elisp functions to do it, but i know practically no elisp so its
no wonder they didnt work(complains about number of arguments to
set-mark-command):

In Emacs 21, You can type C-SPC C-SPC to temporarily enable
transient-mark-mode.  So you can normally have it off, and then,
when setting the mark for starting a region, you can type C-SPC
C-SPC, rather than just C-SPC.

I have emacs 21 and it doesnt appear to be set up like this. I tried using global-set-key to map C-SPC C-SPC to enabling transient mark mode, but C-SPC C-SPC isnt accepted as a valid keyboard binding (arent all compound bindings supposed to start with C-x or M-x ?).... could you provide the line in your .emacs that does this? thanks..



reply via email to

[Prev in Thread] Current Thread [Next in Thread]