From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#13801: [PATCH] Trivial fix for files.el Date: Sun, 24 Feb 2013 17:06:39 +0200 Message-ID: <83mwutkayo.fsf@gnu.org> References: <20130224143332.f33f9e158da879bd206e83cc@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1361718519 9510 80.91.229.3 (24 Feb 2013 15:08:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Feb 2013 15:08:39 +0000 (UTC) Cc: 13801@debbugs.gnu.org To: Xue Fuqiao Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 24 16:09:01 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U9dCA-00061A-19 for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Feb 2013 16:08:54 +0100 Original-Received: from localhost ([::1]:49743 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9dBp-0004El-5m for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Feb 2013 10:08:33 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9dBm-0004ES-DS for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 10:08:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9dBj-0000xp-PW for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 10:08:30 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9dBj-0000xg-M4 for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 10:08:27 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U9dDF-0005kJ-Gu for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 10:10:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Feb 2013 15:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13801 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 13801-submit@debbugs.gnu.org id=B13801.136171855122021 (code B ref 13801); Sun, 24 Feb 2013 15:10:01 +0000 Original-Received: (at 13801) by debbugs.gnu.org; 24 Feb 2013 15:09:11 +0000 Original-Received: from localhost ([127.0.0.1]:47659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9dCQ-0005j8-IX for submit@debbugs.gnu.org; Sun, 24 Feb 2013 10:09:10 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:61504) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9dCP-0005j1-KM for 13801@debbugs.gnu.org; Sun, 24 Feb 2013 10:09:10 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MIQ00E00CLWL900@a-mtaout22.012.net.il> for 13801@debbugs.gnu.org; Sun, 24 Feb 2013 17:06:49 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MIQ00E01CNCH130@a-mtaout22.012.net.il>; Sun, 24 Feb 2013 17:06:49 +0200 (IST) In-reply-to: <20130224143332.f33f9e158da879bd206e83cc@gmail.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71746 Archived-At: > Date: Sun, 24 Feb 2013 14:33:32 +0800 > From: Xue Fuqiao > > *** trunk/lisp/files.el 2013-02-24 06:49:38.358835000 +0800 > --- trunk/lisp/files.el.new 2013-02-24 14:23:28.681175258 +0800 > *************** See also: `break-hardlink-on-save'." > *** 248,259 **** > :group 'backup) > > (defcustom break-hardlink-on-save nil > ! "Non-nil means when saving a file that exists under several names > ! \(i.e., has multiple hardlinks), break the hardlink associated with > ! `buffer-file-name' and write to a new file, so that the other > ! instances of the file are not affected by the save. > > ! If `buffer-file-name' refers to a symlink, do not break the symlink. > > Unlike `file-precious-flag', `break-hardlink-on-save' is not advisory. > For example, if the directory in which a file is being saved is not > --- 248,262 ---- > :group 'backup) > > (defcustom break-hardlink-on-save nil > ! "This variable affect the relation between hardlink(s) and the file. > ! Non-nil means when saving a file that exists under several names > ! \(i.e., has multiple hardlinks), break the hardlink associated > ! with the variable `buffer-file-name' and write to a new file, so > ! that the other instances of the file are not affected by the > ! save. The first line of the doc string should concisely say what the option does. The old doc string did it, albeit not perfectly; the one you suggest does not.