From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [david.hansen@gmx.net: Re: comint's directory tracking doesn't understand \( or \)] Date: Fri, 09 Mar 2007 19:04:39 -0500 Message-ID: <87ejnyj754.fsf@stupidchicken.com> References: <871wk56tjh.fsf@localhorst.mine.nu> <87k5xw8b07.fsf@localhorst.mine.nu> <87irddev4c.fsf@catnip.gol.com> <873b4hjegy.fsf@localhorst.mine.nu> <87lki62nuw.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1173485138 13058 80.91.229.12 (10 Mar 2007 00:05:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 10 Mar 2007 00:05:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 10 01:05:33 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HPp58-00043u-9p for ged-emacs-devel@m.gmane.org; Sat, 10 Mar 2007 01:05:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPp5S-0005E0-6q for ged-emacs-devel@m.gmane.org; Fri, 09 Mar 2007 19:05:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HPp5F-0005AV-OF for emacs-devel@gnu.org; Fri, 09 Mar 2007 19:05:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPp5F-00059n-1s for emacs-devel@gnu.org; Fri, 09 Mar 2007 19:05:13 -0500 Original-Received: from south-station-annex.mit.edu ([18.72.1.2]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HPp4r-0002qt-CR for emacs-devel@gnu.org; Fri, 09 Mar 2007 19:04:49 -0500 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id l2A04mYA005727 for ; Fri, 9 Mar 2007 19:04:48 -0500 (EST) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.13.6/8.9.2) with ESMTP id l2A04eQv001201 for ; Fri, 9 Mar 2007 19:04:40 -0500 (EST) Original-Received: from localhost (MAIN-TWELVE-TWO-FIFTY-SIX.MIT.EDU [18.19.6.1]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id l2A04dQF007431 for ; Fri, 9 Mar 2007 19:04:40 -0500 (EST) Original-Received: from cyd by localhost with local (Exim 3.36 #1 (Debian)) id 1HPp4h-0000iR-00 for ; Fri, 09 Mar 2007 19:04:39 -0500 In-Reply-To: <87lki62nuw.fsf@stupidchicken.com> (Chong Yidong's message of "Fri\, 09 Mar 2007 14\:55\:35 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: -2.599 X-detected-kernel: Solaris 9.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:67666 Archived-At: I think the following patch fixes the same bug in a safer way. *** emacs/lisp/comint.el.~1.358.~ 2007-02-27 19:43:48.000000000 -0500 --- emacs/lisp/comint.el 2007-03-09 18:44:15.000000000 -0500 *************** *** 1384,1390 **** (let* ((first (if (if (fboundp 'w32-shell-dos-semantics) (w32-shell-dos-semantics)) "[^ \n\t\"'`]+\\|" ! "[^ \n\t\"'`\\]+\\|\\\\[\"'`\\ \t]+\\|")) (argpart (concat first "\\(\"\\([^\"\\]\\|\\\\.\\)*\"\\|\ '[^']*'\\|\ --- 1384,1390 ---- (let* ((first (if (if (fboundp 'w32-shell-dos-semantics) (w32-shell-dos-semantics)) "[^ \n\t\"'`]+\\|" ! "\\([^ \n\t\"'`\\]\\|\\\\.\\)+\\|")) (argpart (concat first "\\(\"\\([^\"\\]\\|\\\\.\\)*\"\\|\ '[^']*'\\|\