From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#34911: 26.1; doc about lock file names Date: Sun, 19 May 2019 11:11:41 -0400 Message-ID: <87y332bhsi.fsf@gmail.com> References: > <83bm27uzbr.fsf@gnu.org>> <874l5ziqci.fsf@gmail.com> <871s0ucxnb.fsf@gmail.com> <509ba95a-d515-40e8-a76f-3f614faeef47@default> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="157393"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: 34911@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 19 17:12:09 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 1hSNTt-000eqr-Pr for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 May 2019 17:12:09 +0200 Original-Received: from localhost ([127.0.0.1]:49908 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSNTs-0006rs-QJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 May 2019 11:12:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35495) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSNTm-0006rc-W0 for bug-gnu-emacs@gnu.org; Sun, 19 May 2019 11:12:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSNTl-00062G-WA for bug-gnu-emacs@gnu.org; Sun, 19 May 2019 11:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50026) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hSNTl-00061v-SK for bug-gnu-emacs@gnu.org; Sun, 19 May 2019 11:12:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hSNTl-00034B-Mt for bug-gnu-emacs@gnu.org; Sun, 19 May 2019 11:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 May 2019 15:12:01 +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.155827871011764 (code B ref 34911); Sun, 19 May 2019 15:12:01 +0000 Original-Received: (at 34911) by debbugs.gnu.org; 19 May 2019 15:11:50 +0000 Original-Received: from localhost ([127.0.0.1]:35337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hSNTZ-00033f-PP for submit@debbugs.gnu.org; Sun, 19 May 2019 11:11:49 -0400 Original-Received: from mail-io1-f54.google.com ([209.85.166.54]:35111) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hSNTY-00033O-Fy for 34911@debbugs.gnu.org; Sun, 19 May 2019 11:11:48 -0400 Original-Received: by mail-io1-f54.google.com with SMTP id p2so9126363iol.2 for <34911@debbugs.gnu.org>; Sun, 19 May 2019 08:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Li4JxKaBFYGJN7CILL8zFg96QjxqJ8sTQ0aLTpmZknI=; b=LaKG/AN3CaNWv+kF/MikwaCRklTPMleumqSiJuyqUha1fEsGQnfh0q1HemKl9OTnpf rE/IVSEn8IJ12TpxsWclUWfQ9kPThbDeCtp+2OGy+973mJntkeaX6slLQxfWJA4D5LvY uIkCk7pV7GJJxluVHyC9JMWcZOKStR+K94wwlj5G70lbysATc24/CzkzAw1y57O3qw1G JTMJGy3yaadZT7RC3bbD2smsUc+WGWUteGfs+lQwtqhO71eRa43op1Nbkr5NTsvzHHgE aM4JALCaC1Sbx5/rTak1AfIYwjxeidgpETUovQiEy2HM0/HfLRbgXLPbMNJ6ybiqik0m Llhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Li4JxKaBFYGJN7CILL8zFg96QjxqJ8sTQ0aLTpmZknI=; b=tOZeg/GWXDy8d6Z+KYRFCdS2cLKcQe4KBv6ltXaxBhHdRxgu9YBXHD9Kb6tdWvbtZs tO7A5pZK3NkjPNDoMnPEbNmzK3RIa+KWSqkY0I7nnSY+kvT7nZQIsuD0olajpDuyxl4B Yx65prveaXUOZLOALhhxXjgm1cTKzzsm0DhuDNqGK1MoYwfV05UfrlxcwyIxVEMH7ar7 +uISp4ayOxkPDo6Co1na81QMgEL+wldBWRWz089T8bEgc8sZX0GS1Twnr69B2sqwpeXt jlX1LmoIH1BYlSg8PFqbciEN4sqaO3D8pZJa0YEUDEe/KK23P3P8MOGlbbu5aEpvgXic 1CCQ== X-Gm-Message-State: APjAAAW1uZHS0GJozAs9avofu9wrVS+JIdjUWRunu2VVUc+y4kpJIlWZ r7mXFNmjxygZ+kYj9QSdTMUeDK4i X-Google-Smtp-Source: APXvYqxKqcFeTc9qvz2DZzdBj+560It/++jvmPHrQL+snFn4IWJpyvquLAfo+PA+VqslkHLWRBVWMA== X-Received: by 2002:a6b:2c02:: with SMTP id s2mr35120634ios.97.1558278702700; Sun, 19 May 2019 08:11:42 -0700 (PDT) Original-Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id j5sm2993544ita.16.2019.05.19.08.11.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 19 May 2019 08:11:42 -0700 (PDT) In-Reply-To: <509ba95a-d515-40e8-a76f-3f614faeef47@default> (Drew Adams's message of "Sun, 19 May 2019 15:04:53 +0000 (UTC)") 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:159548 Archived-At: Drew Adams writes: >> >> 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. >> > >> > It's a regexp, so of course you can name files which aren't auto-save or >> > lock files in such a way that they match it. >> >> After looking at it some more, I realize you were probably suggesting >> that the regexp should have something like "^.#\\|^#.*#$" instead of >> "^\\.?#" > > No, I don't think so. It is correct, I think, to > say that the beginning matches .# (or the whole > thing matches . or ..) - that is, the dot is literal. Sorry, forgot to escape the dot, I meant "^\\.#\\|^#.*#$" instead of "^\\.?#"