GNU logs - #9379, boring messages


Message sent to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9379: 24.0.50; M-x dirs doesn't work under, for instance, "a & b" directory
Resent-From: Kenichi Handa <handa@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 26 Aug 2011 00:59:02 +0000
Resent-Message-ID: <handler.9379.B.131432028226776 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 9379
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 9379 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.131432028226776
          (code B ref -1); Fri, 26 Aug 2011 00:59:02 +0000
Received: (at submit) by debbugs.gnu.org; 26 Aug 2011 00:58:02 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QwkkD-0006xj-7E
	for submit <at> debbugs.gnu.org; Thu, 25 Aug 2011 20:58:02 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <handa@HIDDEN>) id 1Qwkk9-0006xZ-EB
	for submit <at> debbugs.gnu.org; Thu, 25 Aug 2011 20:57:59 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <handa@HIDDEN>) id 1QwkhW-0005pt-Ov
	for submit <at> debbugs.gnu.org; Thu, 25 Aug 2011 20:55:15 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:48488)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <handa@HIDDEN>) id 1QwkhW-0005pp-NV
	for submit <at> debbugs.gnu.org; Thu, 25 Aug 2011 20:55:14 -0400
Received: from eggs.gnu.org ([140.186.70.92]:37618)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <handa@HIDDEN>) id 1QwkhV-0003uH-DM
	for bug-gnu-emacs@HIDDEN; Thu, 25 Aug 2011 20:55:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <handa@HIDDEN>) id 1QwkhU-0005pU-0F
	for bug-gnu-emacs@HIDDEN; Thu, 25 Aug 2011 20:55:13 -0400
Received: from mx1.aist.go.jp ([150.29.246.133]:42657)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <handa@HIDDEN>) id 1QwkhT-0005pJ-F9
	for bug-gnu-emacs@HIDDEN; Thu, 25 Aug 2011 20:55:11 -0400
Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115])
	by mx1.aist.go.jp  with ESMTP id p7Q0t81R006745
	for <bug-gnu-emacs@HIDDEN>; Fri, 26 Aug 2011 09:55:08 +0900 (JST)
	env-from (handa@HIDDEN)
Received: from smtp3.aist.go.jp
	by rqsmtp1.aist.go.jp  with ESMTP id p7Q0t8l3016491
	for <bug-gnu-emacs@HIDDEN>; Fri, 26 Aug 2011 09:55:08 +0900 (JST)
	env-from (handa@HIDDEN)
Received: by smtp3.aist.go.jp  with ESMTP id p7Q0t7fT007499
	for <bug-gnu-emacs@HIDDEN>; Fri, 26 Aug 2011 09:55:07 +0900 (JST)
	env-from (handa@HIDDEN)
From: Kenichi Handa <handa@HIDDEN>
Date: Fri, 26 Aug 2011 09:55:07 +0900
Message-ID: <tl7obzdj8k4.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Solaris 9
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -4.8 (----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.8 (----)

When I am in a directory that contains '&' character, M-x
dirs just shows the message "Couldn't cd".

% mkdir 'a & b'
% cd 'a & b'

Here, Emacs still thinks that I'm not under 'a & b' (I think
it itself is a bug).  Now I type M-x dirs RET to tell Emacs
that I'm under 'a & b', but Emacs's idea of where I am
doesn't change.

---
Kenichi Handa
handa@HIDDEN



In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2011-08-25 on etlken
Windowing system distributor `The X.Org Foundation', version 11.0.10706000
configured using `configure  'CFLAGS=-g''

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: ja_JP.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: RMAIL Summary

Minor modes in effect:
  shell-dirtrack-mode: t
  display-time-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
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
h e l l * SPC b u f f f e r , <backspace> <backspace> 
<backspace> <backspace> e r , SPC t h e SPC <M-backspace> 
a SPC f i l e SPC a r g u m e n t SPC t o SPC t h e 
SPC c o m m a n d SPC " s c p " SPC i s SPC n o t SPC 
c o m p l e t e d . SPC SPC F o r SPC i n s t a n c 
e : <return> <return> % SPC m k d i r SPC t m p <return> 
% SPC c d SPC t m p <return> % SPC t o u c h SPC a 
a a <return> % SPC s c p SPC a < T A B > <return> <return> 
s h o w s SPC " N o SPC m a t c h " C-x o C-x C-g C-x 
s M-p <return> C-x o . SPC SPC C u r r e n t l y SPC 
I SPC f o u n d SPC o n l y SPC " s c p " SPC c o m 
m a n d SPC h a s SPC t h e SPC p r o b l e m . SPC 
SPC <backspace> <backspace> C-p C-n C-n C-n C-p C-p 
C-e SPC SPC V e r y SPC s t r a n g e . <return> <return> 
C-u 7 C-c C-w C-n C-n C-n C-k C-k C-p C-p C-p C-p C-p 
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n 
C-n C-n C-n C-c C-c y e s <return> M-x r e p o r t 
<tab> <return>

Recent messages:
Checking for load-path shadows...done
Mark set
History item: 1
Auto-saving...done
Mark set
Auto-saving...done
Sending...
Sending via mail...
Sending email...done
Sending...done

Load-path shadows:
/usr/local/share/emacs/site-lisp/evi-mule hides /usr/local/share/emacs/site-lisp/lookup/evi-mule
/usr/local/share/emacs/site-lisp/evi hides /usr/local/share/emacs/site-lisp/lookup/evi
/usr/local/share/emacs/site-lisp/anthy/anthy hides /usr/local/share/emacs/site-lisp/egg/egg/anthy
/usr/local/share/emacs/site-lisp/egg/its/thai hides /usr/local/work/emacs/stable/lisp/language/thai
/usr/local/share/emacs/site-lisp/egg/its/greek hides /usr/local/work/emacs/stable/lisp/language/greek
/usr/local/work/emacs/stable/lisp/textmodes/table hides ~/emacslisp/table
/usr/local/work/emacs/stable/lisp/language/thai-word hides ~/emacslisp/thai-word
/usr/local/work/emacs/stable/lisp/progmodes/prolog hides ~/emacslisp/prolog
/usr/local/work/emacs/stable/lisp/emacs-lisp/syntax hides ~/emacslisp/syntax
/usr/local/work/emacs/stable/lisp/textmodes/tex-mode hides ~/emacslisp/tex-mode

Features:
(network-stream starttls tls mailalias smtpmail auth-source
eieio byte-opt bytecomp byte-compile cconv macroexp assoc
password-cache sendmail newcomment shadow sort gnus-util
mail-extr emacsbug multi-isearch pcmpl-unix sgml-mode
image-mode help-mode view qp rmailkwd rmailmm message
format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies
mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231
ansi-color shell pcomplete comint regexp-opt ring
js2-mode-autoloads package tabulated-list rmail-parse-url
time rmail-sa rmailsum rmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils time-date japan-util tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image fringe lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button
faces cus-face files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process
dbusbind dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty
emacs)




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Kenichi Handa <handa@HIDDEN>
Subject: bug#9379: Acknowledgement (24.0.50; M-x dirs doesn't work under,
 for instance, "a & b" directory)
Message-ID: <handler.9379.B.131432028226776.ack <at> debbugs.gnu.org>
References: <tl7obzdj8k4.fsf@HIDDEN>
X-Gnu-PR-Message: ack 9379
X-Gnu-PR-Package: emacs
Reply-To: 9379 <at> debbugs.gnu.org
Date: Fri, 26 Aug 2011 00:59:02 +0000

Thank you for filing a new bug report with GNU.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 9379 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
9379: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9379
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 3 Sep 2018 17:08:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 03 13:08:59 2018
Received: from localhost ([127.0.0.1]:44553 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fwsLT-000838-Gh
	for submit <at> debbugs.gnu.org; Mon, 03 Sep 2018 13:08:59 -0400
Received: from mail-io0-f174.google.com ([209.85.223.174]:43742)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1fwsLS-00082p-0p; Mon, 03 Sep 2018 13:08:58 -0400
Received: by mail-io0-f174.google.com with SMTP id y10-v6so861007ioa.10;
 Mon, 03 Sep 2018 10:08:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=T6qj1C40tG4OdcLoUDc+gRpO48rv0znfcvT57bb+VxY=;
 b=TJI8MOTCX6bPAfUHldsuQBkI5CX9W6IztLQrBQ8nKDtNntVq57XjbgbRgLctHWr1x3
 rBfFrxoSNDEsk0kAJaLzIGS/1dgqSfnPTtKH497jSq3zadTVbjVbMjKJWgXDVR2xHUev
 rbiOlFhKGK+fx8co7N8cLlnp7QF1ZL8pNejMfm/Ag6foc/vLP7OTrh3U2eXe9RSkeKlb
 OSi4b170NDIAyBtXMCuE20XUtwaOwoVs+gTuFDNuII9m5UCVSa3adkk3jABCOi5BguRJ
 LbxHT/opS6tFqMVOuiRFZBNWW4b7snS7ctcnYNGFMlU8TMpLsAk+fcr0p4FLTFUXsnUZ
 9LMQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=T6qj1C40tG4OdcLoUDc+gRpO48rv0znfcvT57bb+VxY=;
 b=QtgfoljrkFL3+6gMPOhy5joYk96H6LsEz0Q2Xl+ZE2kxVKmamhQUyALicListOteCb
 LT9fnL3McYiXbe/kFXOAYEQ6Ai1LdVICLxACx0YB316guFf4I4nhdrxFmp32qYU2/Ymg
 N0lX1HCbVZJXp5w5ry2SlbpgMJbVmljafa/NK8SXjhk63c32rPCtdjOjTGZuNlRdOTvd
 JBzhvXecnDavZEIq/hIxKl+LF72UBtDDTMacjxbOZEbpksFcT6+JSol9OKOvYNXsQeOq
 36pbfNRW+AWJPEKQJYkWTHdcPyqB6LTBrq6MB0vi0ta9cEDRJ2Y1QhMxKpUnkgMI/RBB
 WbPw==
X-Gm-Message-State: APzg51DXSYepRB5R/T1RS6iacOJ/lNoSkD/mNfY/BvRUjyhqv2i717Ro
 TXSKggtV3+1sr/i0Nibji5ILq11W
X-Google-Smtp-Source: ANB0Vdbrq/+fVHnHIzeRx5WfwRaKY/akf1KQqWzffHtcz2d66MHwTPQNv/FnjgM3Mm7monp48C8WjQ==
X-Received: by 2002:a5e:890f:: with SMTP id k15-v6mr5801343ioj.9.1535994532237; 
 Mon, 03 Sep 2018 10:08:52 -0700 (PDT)
Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
 by smtp.googlemail.com with ESMTPSA id
 n140-v6sm6692198itb.37.2018.09.03.10.08.50
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Mon, 03 Sep 2018 10:08:51 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
To: Noah Friedman <friedman@HIDDEN>
Subject: Re: bug#23324: shell-resync-dirs does not handle dirs with whitespace
References: <20160420193843.651480.FMU1050@HIDDEN>
Date: Mon, 03 Sep 2018 13:08:42 -0400
In-Reply-To: <20160420193843.651480.FMU1050@HIDDEN>
 (Noah Friedman's message of "Wed, 20 Apr 2016 19:38:43 -0700 (PDT)")
Message-ID: <8736uqik4l.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: control
Cc: 23324 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

forcemerge 23324 11608 9379
quit

Noah Friedman <friedman@HIDDEN> writes:

> I have a fix for this, but I'd like for someone else to look over it and
> perhaps sanity check it before I commit it.  Volunteers?

> This is a very old limitation.

By now this is a fairly old patch, but still in need of review it seems.

> +      (let* ((dls (buffer-substring-no-properties (match-beginning 0) (1- (match-end 0))))
> +             (dlsl '())
> +             (pos 0)
> +             (ds '()))
> +        ;; Split the dirlist into whitespace and non-whitespace chunks.
> +        ;; dlsl will be a reversed list of tokens.
> +        (while (string-match "\\(\\S-+\\|\\s-+\\)" dls pos)
> +          (push (match-string 1 dls) dlsl)
> +          (setq pos (match-end 1)))
> +
> +        ;; prepend trailing entries until they form an existing directory,
> +        ;; whitespace and all.  discard the next whitespace and repeat.

I think this loop is going in the wrong direction (i.e., it should
rather be appending leading entries).  Because of this, it can be fooled
by subdirectories with a name matching a substring of a dirs entry:

    ~$ mkdir -p 'foo bar/bar/'
    ~$ cd 'foo bar/'
    ~/foo bar$ command dirs # M-x dirs
    # infloops...

> +          (let ((newelt "")
> +                tem1 tem2)

I'm also not a fan of the somewhat inscrutable tem1 & tem2 names.






Last modified: Mon, 3 Sep 2018 17:15:03 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.