From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Compiling Elisp to a native code with a GCC plugin Date: Thu, 16 Sep 2010 17:10:30 +0900 Message-ID: <878w32yuq1.fsf@uwakimon.sk.tsukuba.ac.jp> References: <87bp805ecr.fsf@gmail.com> <87iq26z97e.fsf@uwakimon.sk.tsukuba.ac.jp> <874odqfaaj.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1284625044 20734 80.91.229.12 (16 Sep 2010 08:17:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Sep 2010 08:17:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 16 10:17:23 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ow9ek-0008AV-VG for ged-emacs-devel@m.gmane.org; Thu, 16 Sep 2010 10:17:23 +0200 Original-Received: from localhost ([127.0.0.1]:60480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ow9ek-0006SK-3i for ged-emacs-devel@m.gmane.org; Thu, 16 Sep 2010 04:17:22 -0400 Original-Received: from [140.186.70.92] (port=60890 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ow9ea-0006SF-O7 for emacs-devel@gnu.org; Thu, 16 Sep 2010 04:17:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ow9eZ-0003a3-Ep for emacs-devel@gnu.org; Thu, 16 Sep 2010 04:17:12 -0400 Original-Received: from imss12.cc.tsukuba.ac.jp ([130.158.254.161]:46872) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ow9eY-0003Zb-11; Thu, 16 Sep 2010 04:17:10 -0400 Original-Received: from imss12.cc.tsukuba.ac.jp (imss12.cc.tsukuba.ac.jp [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 7C638F4003; Thu, 16 Sep 2010 17:17:07 +0900 (JST) Original-Received: from mgmt1.sk.tsukuba.ac.jp (unknown [130.158.97.223]) by imss12.cc.tsukuba.ac.jp (Postfix) with ESMTP id 6EC7AF4002; Thu, 16 Sep 2010 17:17:07 +0900 (JST) Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt1.sk.tsukuba.ac.jp (Postfix) with ESMTP id 6D3DE3FA0491; Thu, 16 Sep 2010 17:17:07 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 9F97C1A3A77; Thu, 16 Sep 2010 17:10:30 +0900 (JST) In-Reply-To: <874odqfaaj.fsf@lola.goethe.zz> X-Mailer: VM undefined under 21.5 (beta29) "garbanzo" ed3b274cc037 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130247 Archived-At: 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. ;-)