[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mark without starting region
From: |
lawrence mitchell |
Subject: |
Re: mark without starting region |
Date: |
Wed, 23 Jul 2003 19:23:53 +0100 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 |
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.
--
lawrence mitchell <wence@gmx.li>