From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don@donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#1135: marked as done (23.0.60; (expand-file-name ".." "/") produces surprising results) Date: Thu, 16 Oct 2008 11:10:11 -0700 Message-ID: References: <87ljwo1kt9.fsf@cyd.mit.edu> <87k5chce0s.fsf@rimspace.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1224180611-13062-0" X-Trace: ger.gmane.org 1224181867 19883 80.91.229.12 (16 Oct 2008 18:31:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2008 18:31:07 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 16 20:32:07 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KqXdh-0004jG-MD for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Oct 2008 20:32:03 +0200 Original-Received: from localhost ([127.0.0.1]:56444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KqXcb-0007wE-Dl for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Oct 2008 14:30:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KqXc1-0007gZ-Qz for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2008 14:30:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KqXc0-0007fY-F9 for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2008 14:30:16 -0400 Original-Received: from [199.232.76.173] (port=36256 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KqXc0-0007fU-0Y for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2008 14:30:16 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54349) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KqXby-0002OS-LZ for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2008 14:30:15 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9GITxRk017104; Thu, 16 Oct 2008 11:30:01 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9GIAB0f013087; Thu, 16 Oct 2008 11:10:11 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com X-Emacs-PR-Message: closed 1135 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21555 Archived-At: This is a multi-part message in MIME format... ------------=_1224180611-13062-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Thu, 16 Oct 2008 14:01:06 -0400 with message-id <87ljwo1kt9.fsf@cyd.mit.edu> and subject line Re: bug#1135: 23.0.60; (expand-file-name ".." "/") produce= s surprising results has caused the Emacs bug report #1135, regarding 23.0.60; (expand-file-name ".." "/") produces surprising results to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact don@donarmstrong.com immediately.) --=20 1135: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D1135 Emacs Bug Tracking System Contact don@donarmstrong.com with problems ------------=_1224180611-13062-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 10 Oct 2008 04:21:39 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9A4LYWw004752 for ; Thu, 9 Oct 2008 21:21:36 -0700 Received: from mail.gnu.org ([199.232.76.166]:52126 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Ko9T2-0003A1-Ie for emacs-pretest-bug@gnu.org; Fri, 10 Oct 2008 00:19:08 -0400 Received: from ppp59-167-189-244.static.internode.on.net ([59.167.189.244]:51371 helo=isinu.rimspace.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ko9VL-0002MW-MV for emacs-pretest-bug@gnu.org; Fri, 10 Oct 2008 00:21:33 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by isinu.rimspace.net (Postfix) with ESMTP id E5F39300FE26E for ; Fri, 10 Oct 2008 07:42:02 +0400 (MSD) X-Virus-Scanned: amavisd-new at Received: from isinu.rimspace.net ([127.0.0.1]) by localhost (isinu.rimspace.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l115f9jmOAyR for ; Fri, 10 Oct 2008 07:41:56 +0400 (MSD) Received: from krosp (sdcarl02.strategicdata.com.au [203.214.67.82]) by isinu.rimspace.net (Postfix) with ESMTP id 71BFA300B6AFA for ; Fri, 10 Oct 2008 07:41:56 +0400 (MSD) Received: by krosp (Postfix, from userid 1000) id A1FE27061E68; Fri, 10 Oct 2008 14:41:55 +1100 (EST) From: Daniel Pittman To: emacs-pretest-bug@gnu.org Subject: 23.0.60; (expand-file-name ".." "/") produces surprising results Organization: I know I put it down here, somewhere. Date: Fri, 10 Oct 2008 14:41:55 +1100 Message-ID: <87k5chce0s.fsf@rimspace.net> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Greylist: delayed 2362 seconds by postgrey-1.27 at monty-python; Fri, 10 Oct 2008 00:21:27 EDT Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: I use some code that uses (setq dir (expand-file-name ".." dir)) to walk up a directory tree to the root. This works fine on the local disk, but has some surprising results -- infinite loop -- on Tramp files. I debugged this down to the unexpected (to me) behaviour of (expand-file-name ".." "/") => "/.." (expand-file-name ".." "/..") => "/" This was causing the code, which checked if the current and previous result of (expand-file-name ".." dir) were the same, to go into an infinite loop cycling between those two values... I would have expected that the result was: (expand-file-name ".." "/") => "/" Regards, Daniel If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.0.60/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (x86_64-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-03-20 on yellow, modified by Debian (emacs-snapshot package, version 1:20080228-1ubuntu1) Windowing system distributor `The X.Org Foundation', version 11.0.10400090 configured using `configure '--build' 'x86_64-linux-gnu' '--host' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.60/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.60/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.0.60/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--enable-font-backend' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_AU.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: eldoc-mode: t highlight-parentheses-mode: t flyspell-mode: t shell-dirtrack-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: c c c c c d d d d d d d d d c c c c c c c c c c c c c c C-x k C-x C-f c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c d d d d d d d d d d d c c c c q C-/ C-/ C-M-x C-x k M-: ( e x p a n d - f i l e - n a m e SPC " . . " S-SPC " / " ) M-: C-e . p . . C-h f e x p a n d - f i l / SPC n q C-s g n u SPC C-k C-k C-k C-k q p p g n SPC SPC n n n C-p C-p C-p C-f C-f C-f C-f C-f C-f C-f C-f C-f C-SPC M-f M-f M-f M-x r e p o r t C-g M-x C-g M-x r e p o r t - e m b Recent messages: Reading active file from archive via nnfolder...done Checking new news...done Retrieving newsgroup: nntp+enki:gmane.emacs.devel... Fetching headers for nntp+enki:gmane.emacs.devel...done Suppressing duplicates...done Scoring...done Generating summary...done Mark set Auto-saving...done Quit Quit ------------=_1224180611-13062-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1135-done) by emacsbugs.donarmstrong.com; 16 Oct 2008 18:00:59 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9GI0uZ2010371 for <1135-done@emacsbugs.donarmstrong.com>; Thu, 16 Oct 2008 11:00:57 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id E24F057E099; Thu, 16 Oct 2008 14:01:06 -0400 (EDT) From: Chong Yidong To: Daniel Pittman Cc: 1135-done@emacsbugs.donarmstrong.com Subject: Re: bug#1135: 23.0.60; (expand-file-name ".." "/") produces surprising results Date: Thu, 16 Oct 2008 14:01:06 -0400 Message-ID: <87ljwo1kt9.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > My suggestion would be the documentation approach I checked in a slightly different doc fix. Thanks for reporting the bug. ------------=_1224180611-13062-0--