all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* "It's not worth the trouble of implementing that."
@ 2011-01-29 23:32 Rolf Ade
  2011-01-30  1:37 ` Rolf Ade
  0 siblings, 1 reply; 3+ messages in thread
From: Rolf Ade @ 2011-01-29 23:32 UTC (permalink / raw)
  To: help-gnu-emacs


Hi,

the elisp manual 2.9, I look at, has under the index entry
re-search-backward the notice, that this function is not a "simple
mirror" of re-search-forward, because, well, "it's not worth the
trouble of implementing that".

But I need "the match whose end is as close as possible" (what a true
mirror of re-search-forward would do).

How do I get this: back from point the position of the end of the
match of a regular expression?

rolf


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: "It's not worth the trouble of implementing that."
  2011-01-29 23:32 "It's not worth the trouble of implementing that." Rolf Ade
@ 2011-01-30  1:37 ` Rolf Ade
  2011-01-31 16:49   ` Dan Davison
  0 siblings, 1 reply; 3+ messages in thread
From: Rolf Ade @ 2011-01-30  1:37 UTC (permalink / raw)
  To: help-gnu-emacs


I wrote:
> How do I get this: back from point the position of the end of the
> match of a regular expression?

Reading further, the combination of re-search-backward and looking-at
seems to provide a solution.

rolf


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: "It's not worth the trouble of implementing that."
  2011-01-30  1:37 ` Rolf Ade
@ 2011-01-31 16:49   ` Dan Davison
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Davison @ 2011-01-31 16:49 UTC (permalink / raw)
  To: help-gnu-emacs

Rolf Ade <rolf@pointsman.de> writes:

> I wrote:
>> How do I get this: back from point the position of the end of the
>> match of a regular expression?

Hi Rolf,

I think you want match-end.

Dan

>
> Reading further, the combination of re-search-backward and looking-at
> seems to provide a solution.
>
> rolf




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-31 16:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-29 23:32 "It's not worth the trouble of implementing that." Rolf Ade
2011-01-30  1:37 ` Rolf Ade
2011-01-31 16:49   ` Dan Davison

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.