From unknown Sun Jun 22 11:31:21 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#2341 <2341@debbugs.gnu.org> To: bug#2341 <2341@debbugs.gnu.org> Subject: Status: absolute file name arg of `true-filename': should/must? Reply-To: bug#2341 <2341@debbugs.gnu.org> Date: Sun, 22 Jun 2025 18:31:21 +0000 retitle 2341 absolute file name arg of `true-filename': should/must? reassign 2341 emacs submitter 2341 Juanma Barranquero severity 2341 normal thanks From lekktu@gmail.com Mon Feb 16 01:10:04 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 16 Feb 2009 09:10:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.9 required=4.0 tests=FOURLA,HAS_PACKAGE autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1G99t8c002803 for ; Mon, 16 Feb 2009 01:09:57 -0800 Received: by nf-out-0910.google.com with SMTP id g16so188156nfd.31 for ; Mon, 16 Feb 2009 01:09:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=lNfb91nN2wpr+eHN8uNYq7vmCuh7jmA5RQTeoPXNtKQ=; b=XWAsEKVKxARyCwqjn/eCuLmXP8jju5c5suSESIMY6/xGgNdc84eB4ZVJKcTIsg0xx0 3yiDUGzcqebnbGOWbuCLH6IPmDTeMUi0YOw3VpnVTm5gJdVnTprsGjHhzzHvacMUzDEH 5lxJ1DE0L4443qVYO35nCQYBPkYFI28KVqLn4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=ZpxvSgGLkyYnVW0a8Bhw6MK5VdgXjaYukCRnfl1/mvd6aVeSYDI/EJj2Wh5rpYd5rU D9Q+T9vJUK4p32wPvR4B6hGoHu39HB3Dplb6LxlghQDWW4b82Gk76/pR2mt29OMIlZ9r b8RoYXOzDRu0ZYo2WqZRSduDoTcb4mXy6er9M= MIME-Version: 1.0 Received: by 10.210.54.19 with SMTP id c19mr1144947eba.56.1234775394961; Mon, 16 Feb 2009 01:09:54 -0800 (PST) Date: Mon, 16 Feb 2009 10:09:54 +0100 Message-ID: Subject: absolute file name arg of `true-filename': should/must? From: Juanma Barranquero To: Emacs Bug Tracker Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Package: emacs,documentation According to true-filename's docstring: Return the truename of filename, which should be absolute. In (elisp)25.6.3 Truenames: The function `file-truename' returns the truename of the file FILENAME. The argument must be an absolute file name. OTOH, (file-truename "test") => "C:/emacs/test" and some functions seem to use it as expecting that it expands the argument. For example, `find-buffer-visiting': (defun find-buffer-visiting (filename &optional predicate) "..." (let ((predicate (or predicate #'identity)) (truename (abbreviate-file-name (file-truename filename)))) ;; ... where the argument FILENAME of `find-buffer-visiting' is usually not an absolute file name. The current behavior seems to be: "SHOULD be an absolute filename; if it is not, it will be expanded using `default-directory'." Is that intended, and if so, shouldn't it be documented? Juanma From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 03 03:11:18 2011 Received: (at 2341-done) by debbugs.gnu.org; 3 Mar 2011 08:11:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pv3d0-00020z-6M for submit@debbugs.gnu.org; Thu, 03 Mar 2011 03:11:18 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pv3cz-00020m-8a for 2341-done@debbugs.gnu.org; Thu, 03 Mar 2011 03:11:17 -0500 Received: from localhost ([127.0.0.1]:34956) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pv3ct-0002Yz-Ur; Thu, 03 Mar 2011 03:11:12 -0500 From: Glenn Morris To: 2341-done@debbugs.gnu.org Subject: Re: absolute file name arg of `true-filename': should/must? References: X-Spook: Syria MD2 IRA illuminati DRM Mole Ft. Meade World Trade X-Ran: -ndZaM}b^$yULHy[1}W(WUN&P0xbLN0MT6'Eq54MB/Caz6;M1{!t=3D4>#4Qs (Juanma Barranquero's message of "Mon, 16 Feb 2009 10:09:54 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 2341-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) Version: 24.1 Clarified. From unknown Sun Jun 22 11:31:21 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 31 Mar 2011 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator