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

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

Re: `align-regexp' fails in Lisp code


From: Michael Heerdegen
Subject: Re: `align-regexp' fails in Lisp code
Date: Fri, 12 Jul 2013 02:26:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Raffaele Ricciardi <rfflrccrd@gmail.com> writes:

> Two positions make a region, hence the call:
>
>     (align-regexp (point-min) (point-max) " hides ")
>
> is correct.
>
> The problem is that - I had to look into Lisp code to understand - the
> regexp that you enter in the mini-buffer is not the regexp that
> align-regexp' receives, because of a conversion applied by the
> interactive' form inside the command.  Hence I agree with you - but
> for a different reason - that the documentation should say how the
> command could be called from Lisp.

Interesting.  Do you also understand why

  (align-regexp (point-min) (point-max) " hides ")

is illegitimate?  After having read the doc, I don't understand why this
call must lead to an error.


Regards,

Michael.




reply via email to

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