From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.bugs Subject: bug#13801: [PATCH] Trivial fix for files.el Date: Mon, 25 Feb 2013 06:47:26 +0800 Organization: The Church of Emacs Message-ID: <20130225064726.055f56d71d382b127005836d@gmail.com> References: <20130224143332.f33f9e158da879bd206e83cc@gmail.com> <83mwutkayo.fsf@gnu.org> <6EA8FD3B20FB44C289A386DEA3E477D9@us.oracle.com> <87wqtx5qt6.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1361746131 14120 80.91.229.3 (24 Feb 2013 22:48:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Feb 2013 22:48:51 +0000 (UTC) Cc: 'Stephen Berman' , 13801@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 24 23:49:13 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 1U9kNX-0001aq-GN for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Feb 2013 23:49:07 +0100 Original-Received: from localhost ([::1]:37837 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9kNC-0003L6-NG for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Feb 2013 17:48:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9kN6-0003Kg-L1 for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 17:48:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9kN2-0001RB-0m for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 17:48:40 -0500 Original-Received: from [140.186.70.43] (port=42799 helo=debbugs.gnu.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9kN1-0001QK-TS for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 17:48:35 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U9kOQ-000124-Cm for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 17:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Xue Fuqiao Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Feb 2013 22:50:02 +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.13617461503895 (code B ref 13801); Sun, 24 Feb 2013 22:50:02 +0000 Original-Received: (at 13801) by debbugs.gnu.org; 24 Feb 2013 22:49:10 +0000 Original-Received: from localhost ([127.0.0.1]:48261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9kNa-00010m-2y for submit@debbugs.gnu.org; Sun, 24 Feb 2013 17:49:10 -0500 Original-Received: from mail-da0-f49.google.com ([209.85.210.49]:65446) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9kNX-00010e-TG for 13801@debbugs.gnu.org; Sun, 24 Feb 2013 17:49:08 -0500 Original-Received: by mail-da0-f49.google.com with SMTP id t11so235690daj.8 for <13801@debbugs.gnu.org>; Sun, 24 Feb 2013 14:47:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:in-reply-to :references:organization:x-mailer:mime-version:content-type :content-transfer-encoding; bh=qu5FRx8+tT6BPH7NppPpJcxZQYrsMnKfI40rWTtJq4U=; b=pCSjBfG7EhL+51b9wd7ZNpW18IojJiUpacFNo0o0nHAiScd56T160T05wkEPmgpvAG Mn4ujZTL7vS+/E0l7UDjsww45H3Lcx/gYX8GcUgn4T+/2xqWjPnz0BcczK9ix2QstLxu Q7KwOB4egfKhDfqwAchNmKoJADIy1Nk+2doBwlqAXw5qm9+wa5ZCeE8qtBfmdOKtQkO+ TUVrSxqRHVgTbxlgQC7XxjBl1cwAc3T6nanGay+feX/caxTcJ9PDMSyXwC/PoY4R8OVO PuxsvarVBayf/GL9mnXVhrfmE9ghghC7ZgQLNXGqp6EmkrZojHKnqhYellKAyl9S/oGI IOdw== X-Received: by 10.66.216.161 with SMTP id or1mr15809917pac.120.1361746051484; Sun, 24 Feb 2013 14:47:31 -0800 (PST) Original-Received: from Emacs ([61.149.225.108]) by mx.google.com with ESMTPS id o5sm11327141pay.5.2013.02.24.14.47.28 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 24 Feb 2013 14:47:30 -0800 (PST) In-Reply-To: X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.13; x86_64-pc-linux-gnu) 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:71757 Archived-At: On Sun, 24 Feb 2013 14:27:06 -0800 "Drew Adams" wrote: > > > "Non-nil means break a hard link for the visited file and > > write to a new file." > > To keep it under 68 characters (as per (elisp) Documentation > > Tips), how about: > > Non-nil means write visited file to a new file, breaking hard links. > OK by me. (I was thinking the guideline limit is more than 68.) > But that text suggests that a new file is always used. Using "any hard link" or > "a hard link" is a bit better, suggesting that the new file thing is conditional > on there being a hard link. > Maybe this (66 chars)? > Non-nil means write new file if `buffer-file-name' is hard-linked. I think there are three problems (to me) about this version: 1. "write new file" is confusing. I don't know what kind of thing will be write to which file; 2. `buffer-file-name' has both a function cell and a value cell, a little confusing; 2. `buffer-file-name' is a string (or returns a string), not a file, so the file cannot be hard-linked. But I can't give a better version, sorry. -- Best regards, Xue Fuqiao. http://www.emacswiki.org/emacs/XueFuqiao