[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mark without starting region
From: |
Kevin Rodgers |
Subject: |
Re: mark without starting region |
Date: |
Wed, 23 Jul 2003 13:09:32 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
Shaddin Doghmi wrote:
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):
(defun just-mark ()
(interactive)
(transient-mark-mode 0)
(set-mark-command)
)
(defun mark-and-highlight ()
(interactive)
(transient-mark-mode 1)
(set-mark-command)
)
`C-h f set-mark-command RET' displays:
| set-mark-command is an interactive compiled Lisp function in `simple'.
| (set-mark-command ARG)
|
| Set mark at where point is, or jump to mark.
| With no prefix argument, set mark, push old mark position on local mark
| ring, and push mark on global mark ring.
| With argument, jump to mark, and pop a new position for mark off the ring
| (does not affect global mark ring).
|
| Novice Emacs Lisp programmers often try to use the mark for the wrong
| purposes. See the documentation of `set-mark' for more information.
So you need to specify a single argument, probably nil for your purpose.
--
Kevin Rodgers
- mark without starting region, Shaddin Doghmi, 2003/07/23
- Re: mark without starting region, lawrence mitchell, 2003/07/23
- Re: mark without starting region, Barry Margolin, 2003/07/23
- Re: mark without starting region, Kai Großjohann, 2003/07/23
- Re: mark without starting region,
Kevin Rodgers <=
- Re: mark without starting region, Jason Rumney, 2003/07/23
- Re: mark without starting region, Kai Großjohann, 2003/07/24
- Re: mark without starting region, Lowell Gilbert, 2003/07/25