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: systemd @ in filenames not supported by thing-at-point Date: Fri, 29 Jul 2016 22:41:14 -0700 (PDT) Message-ID: References: <86bn1fzzau.fsf@student.uu.se> 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 1469857340 28148 80.91.229.3 (30 Jul 2016 05:42:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Jul 2016 05:42:20 +0000 (UTC) To: Emanuel Berg , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 30 07:42:08 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 1bTN2E-000672-AN for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jul 2016 07:42:06 +0200 Original-Received: from localhost ([::1]:34455 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTN28-0006Jd-BB for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jul 2016 01:42:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTN1e-0006H5-V5 for help-gnu-emacs@gnu.org; Sat, 30 Jul 2016 01:41:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bTN1Y-00023g-Vt for help-gnu-emacs@gnu.org; Sat, 30 Jul 2016 01:41:29 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:16832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTN1Y-000232-Mc for help-gnu-emacs@gnu.org; Sat, 30 Jul 2016 01:41:24 -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 u6U5fJDL030215 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 30 Jul 2016 05:41:20 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 u6U5fJNC002340 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 30 Jul 2016 05:41:19 GMT Original-Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u6U5fF3q024558; Sat, 30 Jul 2016 05:41:18 GMT In-Reply-To: <86bn1fzzau.fsf@student.uu.se> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.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.21 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" Xref: news.gmane.org gmane.emacs.help:111013 Archived-At: > However, with the lambasted systemd, files are > sometimes include an "@", as in > /lib/systemd/system/getty@.service >=20 > I just now noticed that my function, or rather > `thing-at-point', breaks on such paths because > of this setting: > (defvar thing-at-point-file-name-chars "-~/[:alnum:]_.${}#%,:" > "Characters allowable in filenames.") >=20 > Because "@" isn't included, it is considered > a file name delimiter and the path returned is > incorrectly /lib/systemd/system/getty - with this: >=20 > (setq thing-at-point-file-name-chars "@-~/[:alnum:]_.${}#%,:") > it works as expected. > But I don't know if that will break something else? Looking at the code, it shouldn't break anything. What's more, I'd say that this variable should be a user option. For one thing, that would make clear to users that it won't break anything to change the value. ;-)