From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34911: 26.1; doc about lock file names Date: Tue, 19 Mar 2019 20:23:27 +0200 Message-ID: <83r2b2u3j4.fsf@gnu.org> References: <> <<83bm27uzbr.fsf@gnu.org>> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="196670"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34911@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 19 19:39:24 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6Je0-000p4R-KY for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Mar 2019 19:39:24 +0100 Original-Received: from localhost ([127.0.0.1]:33293 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6Jdz-0005Ib-K5 for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Mar 2019 14:39:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6Jdf-0004rd-Ai for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2019 14:39:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h6JPA-0003tl-5y for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2019 14:24:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37299) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h6JP9-0003tH-Fs for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2019 14:24:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h6JP9-0007gE-5a for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2019 14:24:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Mar 2019 18:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34911 X-GNU-PR-Package: emacs Original-Received: via spool by 34911-submit@debbugs.gnu.org id=B34911.155301982529495 (code B ref 34911); Tue, 19 Mar 2019 18:24:02 +0000 Original-Received: (at 34911) by debbugs.gnu.org; 19 Mar 2019 18:23:45 +0000 Original-Received: from localhost ([127.0.0.1]:50843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h6JOr-0007ff-Du for submit@debbugs.gnu.org; Tue, 19 Mar 2019 14:23:45 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h6JOp-0007fQ-Fw for 34911@debbugs.gnu.org; Tue, 19 Mar 2019 14:23:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6JOj-0002xG-MQ; Tue, 19 Mar 2019 14:23:37 -0400 Original-Received: from [176.228.60.248] (port=3364 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h6JOi-0003Sx-VE; Tue, 19 Mar 2019 14:23:37 -0400 In-reply-to: (message from Drew Adams on Tue, 19 Mar 2019 07:54:48 -0700 (PDT)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156509 Archived-At: > Date: Tue, 19 Mar 2019 07:54:48 -0700 (PDT) > From: Drew Adams > Cc: 34911@debbugs.gnu.org > > > > I don't see documented anywhere what a lock file name looks like. > > > I looked through both the Emacs manual and the Elisp manual. Did I miss > > > it somehow, or is it defined/described nowhere? > > > > It is described in the node "File Locks" in the ELisp manual. > > I started there. I see nothing in that node that says > what the name looks like. I'm using Emacs 26. Did > someone perhaps add a description of it since that > release? Yes, as I wrote in a followup message, this information is now present in what will be Emacs 26.2. > The default value is "^\\.?#\\|^\\.$\\|^\\.\\.$". > > \\.?# matches only the first char of an auto-save file > name, and the first two chars of a lock file name. It > does not match the full name, requiring it to end with > `#'. That means that (1) it cannot be used as is for, > say, font-locking such a (complete) name, and (2) as > it is now, it can falsely identify files that are not > auto-save or lock files. Then maybe we need to change the default value, but that's a separate issue. AFAIU, the bug report was about documentation. > Also, please add a doc string for `dired-omit-regexp', > referring to `dired-omit-files' (where this missing doc > will hopefully be added) and `dired-omit-extensions', as > is done for `dired-mark-omitted', for example. Another separate issue, unrelated to file locks, AFAIU. > Does this clarify what I meant by "the default value only > approximately matches auto-save files (and lock files?)"? Yes, but I don't necessarily see that as a problem.