From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#34911: 26.1; doc about lock file names Date: Sun, 19 May 2019 19:49:23 +0000 (UTC) Message-ID: <0b105956-0da8-432a-b10b-26c66ad0d13f@default> References: > <83bm27uzbr.fsf@gnu.org>> <874l5ziqci.fsf@gmail.com> <871s0ucxnb.fsf@gmail.com> <509ba95a-d515-40e8-a76f-3f614faeef47@default> <87y332bhsi.fsf@gmail.com> <4a06302a-e494-45bc-bdb2-06d2fe68974b@default> <87pnoebbr1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="105740"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34911@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 19 21:54:30 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 1hSRt8-000RQI-5W for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 May 2019 21:54:30 +0200 Original-Received: from localhost ([127.0.0.1]:52634 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSRt6-0001UM-LG for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 May 2019 15:54:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSRsv-0001Ql-7S for bug-gnu-emacs@gnu.org; Sun, 19 May 2019 15:54:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSRon-0002wr-Vb for bug-gnu-emacs@gnu.org; Sun, 19 May 2019 15:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50258) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hSRon-0002wn-S2 for bug-gnu-emacs@gnu.org; Sun, 19 May 2019 15:50:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hSRon-0004rC-Pf for bug-gnu-emacs@gnu.org; Sun, 19 May 2019 15:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 May 2019 19:50: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.155829537618630 (code B ref 34911); Sun, 19 May 2019 19:50:01 +0000 Original-Received: (at 34911) by debbugs.gnu.org; 19 May 2019 19:49:36 +0000 Original-Received: from localhost ([127.0.0.1]:35569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hSRoN-0004qQ-JM for submit@debbugs.gnu.org; Sun, 19 May 2019 15:49:35 -0400 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:46388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hSRoL-0004qD-PO for 34911@debbugs.gnu.org; Sun, 19 May 2019 15:49:34 -0400 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x4JJhWru101108; Sun, 19 May 2019 19:49:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=stDtWF2nKqO2L1mvVBcnnv60iSKNreZ25QSObzPBYys=; b=GDZoLh4iX7ji676SKmaEEyyDfwEkwmgUxMbsqQW/XGw0aw1Urm2wTo1uLVnUmWbPrUsW Fym0+1mRBNwUMm3R/5txfOZTyp400JcO5vtQ+Ur8021ruNMVHhLZid6CoksrA6bZmrAS twQgeqaSe4w7z8xqhrYVtWmTDMa4FbLOUH5T13JyMq5ReAC9LnZg9Eln3XTO0/7FHgR/ UmjuXKQ3NWmYKLd4TkNDgitF7wXPuvIo+bzCo294JtlVQQc2ww8BCDj1HgbfcwL33uGY sfqcNpNiKAYPPY4F6nbkJjQr08XNpTt4eGo71hHtPpptP89dHMeKN+2jsXn62mGdjF7k Rg== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2130.oracle.com with ESMTP id 2sj7jdbvuk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 19 May 2019 19:49:27 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x4JJlwH8119199; Sun, 19 May 2019 19:49:26 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 2sj9chxx8v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 19 May 2019 19:49:26 +0000 Original-Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x4JJnO7B010066; Sun, 19 May 2019 19:49:25 GMT In-Reply-To: <87pnoebbr1.fsf@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4849.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9262 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=646 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905190143 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9262 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=680 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905190143 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:159563 Archived-At: > >> "^\\.#\\|^#.*#$" instead of "^\\.?#" > > > > I don't think so. More like this, I think: >=20 > This will fail to match lock file names (because they don't end in "#"). Good. (This is why doc was needed.) > > But maybe .* is better than [^#]; dunno. And anyway, I forgot * after [^#]. > Specifically, [^#] will fail for filenames that include "#". > (let ((buffer-file-name "/foo/my-#tag-list")) > (make-auto-save-file-name)) ;=3D> "/foo/#my-#tag-list#" Right I had forgotten whether that was allowed. Checking (elisp) `Auto-Saving'... OK. So maybe it should be something like this: "\\`\\.#.*\\|\\`\\.?#.*#\\'\\|\\`\\.\\'\\|\\`\\.\\.\\'" where: Lock file: "\\`\\.#.*" - starts with ".#" and ends at eol. Auto-save file: "\\`#.*#\\'" - starts and ends with "#". Current or parent directory: "\\`\\.\\'\\|\\`\\.\\.\\" - "." or ".."