[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling Elisp to a native code with a GCC plugin
From: |
Stephen J. Turnbull |
Subject: |
Re: Compiling Elisp to a native code with a GCC plugin |
Date: |
Thu, 16 Sep 2010 17:10:30 +0900 |
David Kastrup writes:
> > (defun is-the-string-following-point-equal-to-this-string-p (s)
> > (string= s (buffer-substring (point) (+ (point) (length s)))))
> >
> > or
> >
> > (defun is-the-string-following-point-equal-to-this-string-p (s)
> > (search-forward s (+ (point) (length s)) t))
> The former will signal an error when the string is longer than the
> rest of the buffer. The latter won't.
>
> You can't figure this out by reading the doc strings of the used
> functions. You have to read their source code.
>
> Since a user is not likely to pick the correct one-liner, it might
> make sense to define a function for that.
It might, but I would prefer a documentation patch. ;-)
- Re: Compiling Elisp to a native code with a GCC plugin, (continued)
- Re: Compiling Elisp to a native code with a GCC plugin, Lars Magne Ingebrigtsen, 2010/09/16
- Re: Compiling Elisp to a native code with a GCC plugin, Andreas Schwab, 2010/09/16
- Re: Compiling Elisp to a native code with a GCC plugin, Lars Magne Ingebrigtsen, 2010/09/16
- Re: Compiling Elisp to a native code with a GCC plugin, Eli Zaretskii, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Lars Magne Ingebrigtsen, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Eli Zaretskii, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Lars Magne Ingebrigtsen, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Lars Magne Ingebrigtsen, 2010/09/16
- Re: Compiling Elisp to a native code with a GCC plugin, Stephen J. Turnbull, 2010/09/15
- Re: Compiling Elisp to a native code with a GCC plugin, David Kastrup, 2010/09/16
- Re: Compiling Elisp to a native code with a GCC plugin,
Stephen J. Turnbull <=
- Re: Compiling Elisp to a native code with a GCC plugin, David Kastrup, 2010/09/16
- Re: Compiling Elisp to a native code with a GCC plugin, Lars Magne Ingebrigtsen, 2010/09/16
- Re: Compiling Elisp to a native code with a GCC plugin, Stephen J. Turnbull, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Lars Magne Ingebrigtsen, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, David Kastrup, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Lars Magne Ingebrigtsen, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, David Kastrup, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Lars Magne Ingebrigtsen, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, David Kastrup, 2010/09/17
- Re: Compiling Elisp to a native code with a GCC plugin, Lars Magne Ingebrigtsen, 2010/09/17