From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: systemd @ in filenames not supported by thing-at-point Date: Sat, 30 Jul 2016 12:48:28 +0600 Message-ID: References: <86bn1fzzau.fsf@student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1469861381 19203 80.91.229.3 (30 Jul 2016 06:49:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Jul 2016 06:49:41 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 30 08:49:36 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 1bTO5W-0004u8-Ry for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jul 2016 08:49:34 +0200 Original-Received: from localhost ([::1]:34579 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTO5Q-0002zp-Jd for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jul 2016 02:49:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTO4p-0002yV-La for help-gnu-emacs@gnu.org; Sat, 30 Jul 2016 02:48:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bTO4n-0002tS-Nd for help-gnu-emacs@gnu.org; Sat, 30 Jul 2016 02:48:50 -0400 Original-Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:34864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTO4n-0002sz-Ej for help-gnu-emacs@gnu.org; Sat, 30 Jul 2016 02:48:49 -0400 Original-Received: by mail-lf0-x230.google.com with SMTP id f93so84516775lfi.2 for ; Fri, 29 Jul 2016 23:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=UklHuP1x05y4w/r14xz3NzmV1bbrY/RCwn9xcf6P9JA=; b=I+Fpk2k5tURohwE/l+vxyKHuybnyCdEDHK2dXzP9bODMC4n5AFVV8BbAMWZGCelSmI aUAKDIFXUbi4DW2sve0a+7aUsUw59a/E2P2mnP1+NXO5D4HA2sL1CJWH7U2pm/d877bk o0B9hiCdGY+1eUUDf8QrJo7gUjENa3AfLuHbN1R6DO0rKrbdjH67R7uYAA3QBPbdIJT2 pobG1umEmZYzkyTk6gpucqI66RsxmZnfzBVW+yF1BOVEe0J+/RZK0/WjzZy18vm/JlbY trcqPs2Y3XX84qHKsuC1u1ADC/+SW1CXMg9PDsjc2CocVDVa2536/wnCluiEUwvofR1H pG/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=UklHuP1x05y4w/r14xz3NzmV1bbrY/RCwn9xcf6P9JA=; b=WmT2kOutLYLOSL65VtzNUXp7Ci03DJhGGKodfZnYVqkaCw5Utmf5owBrw9ZyN3BZIq M15kai5tupDSQNTeF7OFjzqoYpB6a1O5PTKVZQ1WgIsAl7CBtO7SGs9GODhKcVFPTjDa /yPi+rP4XwLG8ctxRyX58PYzSFxMOVLl1X2IeVMXIlw2AN5bbZ6XeIY002GnHf4c5Orq QhP0T127bxQWE3jxdzWhbv2nxN6Cp4jquKmeQPH1cTUCLHgXefez0CBnR5M/ZAUtfbul 37WR6KIAbnNBrZDKYQIL5mQ3CGIzG4tQ03MVXxPOXaHjCjG+vjVm2twGUPFvL9bl3GVJ wHMA== X-Gm-Message-State: AEkooutDON68lGJZgMJaZrVT46oFwvuEVYgWJ4pIgvU8KKByp52KMvgG6/Odz2/RJdcF0AsJRGBtrfE5D1yIqw== X-Received: by 10.46.71.134 with SMTP id u128mr15585042lja.67.1469861328012; Fri, 29 Jul 2016 23:48:48 -0700 (PDT) Original-Received: by 10.114.180.131 with HTTP; Fri, 29 Jul 2016 23:48:28 -0700 (PDT) In-Reply-To: <86bn1fzzau.fsf@student.uu.se> X-Google-Sender-Auth: ij3pO4mXs82SVYGlyrPuCGka1iw X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::230 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:111016 Archived-At: On Sat, Jul 30, 2016 at 8:31 AM, Emanuel Berg wrote: > (defvar thing-at-point-file-name-chars "-~/[:alnum:]_.${}#%,:" > "Characters allowable in filenames.") > > (line 241 in /usr/share/emacs/24.4/lisp/thingatpt.el.gz ) > > Because "@" isn't included, it is considered > a file name delimiter and the path returned is > incorrectly /lib/systemd/system/getty - with this: > > (setq thing-at-point-file-name-chars "@-~/[:alnum:]_.${}#%,:") > > it works as expected. > > But I don't know if that will break something else? User expectations, mostly. As you surely know, on *nix, every character is valid in a filename, except for NUL and slash; and every character is valid in a file path, except for NUL. However, we expect all kinds of parentheses, brackets and angle brackets to close around file paths. #include The @ character, for instance, is used in makefile recipes and Windows batch files to indicate that a line should not be echoed when it is executed. The word immediately following the @ is a command, which in many cases is a file name or path. I do not know of other instances of @ used as a delimiter next to a file name.