bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#34911: 26.1; doc about lock file names


From: Noam Postavsky
Subject: bug#34911: 26.1; doc about lock file names
Date: Sun, 19 May 2019 13:22:10 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)

Drew Adams <address@hidden> writes:

>>     "^\\.#\\|^#.*#$" instead of "^\\.?#"
>
> I don't think so.  More like this, I think:
>
> "^\\.?#[^#]#$\\|^\\.$\\|^\\.\\.$" or preferably this:

This will fail to match lock file names (because they don't end in "#").

> But maybe .* is better than [^#]; dunno.

Specifically, [^#] will fail for filenames that include "#".

(let ((buffer-file-name "/foo/my-#tag-list"))
  (make-auto-save-file-name)) ;=> "/foo/#my-#tag-list#"





reply via email to

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