* Re: [Emacs-diffs] master ea196eb: Fix load-path issue when it contains remote directories
[not found] ` <20170616124634.B223B20827@vcs0.savannah.gnu.org>
@ 2017-06-16 12:54 ` Stefan Monnier
2017-06-16 14:51 ` Michael Albinus
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2017-06-16 12:54 UTC (permalink / raw)
To: emacs-devel; +Cc: Michael Albinus
> + (directory-files dir nil "^tramp.+\\.elc?$"))
^
\\'
-- Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Emacs-diffs] master ea196eb: Fix load-path issue when it contains remote directories
2017-06-16 12:54 ` [Emacs-diffs] master ea196eb: Fix load-path issue when it contains remote directories Stefan Monnier
@ 2017-06-16 14:51 ` Michael Albinus
2017-06-16 19:12 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Michael Albinus @ 2017-06-16 14:51 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> + (directory-files dir nil "^tramp.+\\.elc?$"))
> ^
> \\'
It doesn't matter:
(directory-files "~/src/tramp/lisp" nil "^tramp.+\\.elc?$")
=> ("tramp-adb.el" "tramp-adb.elc" "tramp-cache.el" "tramp-cache.elc" "tramp-cmds.el" "tramp-cmds.elc" "tramp-compat.el" "tramp-compat.elc" "tramp-ftp.el" "tramp-ftp.elc" "tramp-gvfs.el" "tramp-gvfs.elc" ...)
(directory-files "~/src/tramp/lisp" nil "^tramp.+\\.elc?\\'")
=> ("tramp-adb.el" "tramp-adb.elc" "tramp-cache.el" "tramp-cache.elc" "tramp-cmds.el" "tramp-cmds.elc" "tramp-compat.el" "tramp-compat.elc" "tramp-ftp.el" "tramp-ftp.elc" "tramp-gvfs.el" "tramp-gvfs.elc" ...)
> -- Stefan
Best regards, Michael.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Emacs-diffs] master ea196eb: Fix load-path issue when it contains remote directories
2017-06-16 14:51 ` Michael Albinus
@ 2017-06-16 19:12 ` Stefan Monnier
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2017-06-16 19:12 UTC (permalink / raw)
To: Michael Albinus; +Cc: emacs-devel
>>> + (directory-files dir nil "^tramp.+\\.elc?$"))
>> ^
>> \\'
> It doesn't matter:
Both work fine in practice, yes. But $ can misbehave in theory (in the
presence of newlines in file names). I'm encouraging the use of \' over
$ even when it doesn't matter, as a way to get used to using \' in those
cases where it can matter (both for you, and for those who read your
code).
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-16 19:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20170616124634.8186.2726@vcs0.savannah.gnu.org>
[not found] ` <20170616124634.B223B20827@vcs0.savannah.gnu.org>
2017-06-16 12:54 ` [Emacs-diffs] master ea196eb: Fix load-path issue when it contains remote directories Stefan Monnier
2017-06-16 14:51 ` Michael Albinus
2017-06-16 19:12 ` Stefan Monnier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.