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: Is it obvious that string-match syntax matching is affected by the current buffer? Date: Sun, 13 Mar 2016 17:40:11 -0700 (PDT) Message-ID: References: <56E59AD0.5070302@easy-emacs.de> <83ziu2e1gr.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1457916045 32622 80.91.229.3 (14 Mar 2016 00:40:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2016 00:40:45 +0000 (UTC) To: Stefan Monnier , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 14 01:40:33 2016 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 1afGYi-0003OJ-MA for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2016 01:40:32 +0100 Original-Received: from localhost ([::1]:38338 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afGYi-0004X2-6l for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Mar 2016 20:40:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afGYV-0004Wv-6M for help-gnu-emacs@gnu.org; Sun, 13 Mar 2016 20:40:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afGYR-0004iJ-W9 for help-gnu-emacs@gnu.org; Sun, 13 Mar 2016 20:40:19 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:31455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afGYR-0004iF-OT for help-gnu-emacs@gnu.org; Sun, 13 Mar 2016 20:40:15 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u2E0eD8L016331 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 14 Mar 2016 00:40:14 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u2E0eDSJ022692 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 14 Mar 2016 00:40:13 GMT Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u2E0eCfF006571; Mon, 14 Mar 2016 00:40:12 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] 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:109564 Archived-At: > > When I work with a string then I feel it should not be affected > > by settings of the current buffer, because it's not buffer text > > anymore, but a separate object. >=20 > I agree, yet at the same time this begs the question: which setting to > use, if not the current buffer's? >=20 > Using some global setting for them instead would be wrong just as often, > if not more. Probably it would help to mention such dependence on syntax and case-conversion and tables in the doc string, explicitly pointing out that this pertains also when the function is used on a string instead of a buffer.