[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Select Text Inside Parentheses
From: |
Esben Stien |
Subject: |
Re: Select Text Inside Parentheses |
Date: |
Sun, 02 Sep 2012 03:06:54 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) |
"Drew Adams" <drew.adams@oracle.com> writes:
> (defun foo ()
> "..."
> (interactive)
> (when (re-search-forward
> "(\\(\s-\\|[\n]\\)*\\(.+\\)\\(\s-\\|[\n]\\)*)" nil t)
This is supposed to be "(\\(\\s-\\|[\n]\\)*\\(.+\\)\\(\\s-\\|[\n]\\)*)" nil t)
, right?. If not, it's telling me:
"Invalid modifier in string"
> (goto-char (match-beginning 2))
> (push-mark nil 'nomsg 'activate)
> (goto-char (match-end 2))
> (setq deactivate-mark nil)))
This doesn't seem to do anything.
I go into the block:
(
foo
bar
baz
)
, but nothing seems to happen when I run this code. No selection is
made.
--
Esben Stien is b0ef@e s a
http://www. s t n m
irc://irc. b - i . e/%23contact
sip:b0ef@ e e
jid:b0ef@ n n
Re: Select Text Inside Parentheses, Andreas Röhler, 2012/09/04