[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: systemd @ in filenames not supported by thing-at-point

From: Drew Adams
Subject: RE: systemd @ in filenames not supported by thing-at-point
Date: Fri, 29 Jul 2016 22:41:14 -0700 (PDT)

> However, with the lambasted systemd, files are
> sometimes include an "@", as in
>     /lib/systemd/system/address@hidden
> 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.")
> 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?

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. ;-)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]