From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: `looking-back' strange warning Date: Sat, 3 Oct 2015 15:20:01 +0000 (UTC) Message-ID: References: <560B9C7F.2060301@easy-emacs.de> <560CD7CE.4010404@yandex.ru> <6524c81a-949c-40d1-b990-d214d6ee5b60@default> <560D73DF.8040403@yandex.ru> <560D7A68.8040404@easy-emacs.de> <560D8289.6010409@yandex.ru> <560D8F96.5040200@easy-emacs.de> <877fn66pag.fsf@web.de> <190e27a5-9099-45ce-a8db-a314b9e32b35@default> <87lhblrnpe.fsf@gnu.org> <785d8be4-1024-4635-83ff-7bc51dd4b5bf@default> <87bncgii2q.fsf@gnu.org> <560F799C.1010903@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1443885646 11234 80.91.229.3 (3 Oct 2015 15:20:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Oct 2015 15:20:46 +0000 (UTC) Cc: Tassilo Horn To: =?iso-8859-1?B?QW5kcmVhcyBS9mhsZXI=?= , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 03 17:20:31 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZiObo-000558-Lo for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Oct 2015 17:20:24 +0200 Original-Received: from localhost ([::1]:39001 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiObo-0006Ej-1L for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Oct 2015 11:20:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiObb-0006Dx-Ks for help-gnu-emacs@gnu.org; Sat, 03 Oct 2015 11:20:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZiOba-0006t5-Qb for help-gnu-emacs@gnu.org; Sat, 03 Oct 2015 11:20:11 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:25200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiObW-0006n1-4n; Sat, 03 Oct 2015 11:20:06 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t93FK25u019594 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 3 Oct 2015 15:20:02 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t93FK1Or014389 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 3 Oct 2015 15:20:02 GMT Original-Received: from ubhmp0008.oracle.com (ubhmp0008.oracle.com [156.151.24.61]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t93FK1Tu030512; Sat, 3 Oct 2015 15:20:01 GMT In-Reply-To: <560F799C.1010903@easy-emacs.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107496 Archived-At: > >> See also bug #17284, > >> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17284, > >> where this has been discussed and I and others proposed > >> code for this. > > > > Martin's version is faster than mine, so no need to propose it. > > > >> You are welcome to contribute to that (short) bug thread, > >> or to otherwise try to get such a function added to Emacs. > > (defun looking-back-string (string) > "Return non-nil if the literal STRING is right before point. > This is more efficient that `looking-back' for this use case." > (string=3D string (ignore-errors > (buffer-substring-no-properties > (- (point) (length string)) (point))))) Again, please consider posting your suggestion to the bug thread, or otherwise try to get such a function added to Emacs (emacs-devel@gnu.org).