From unknown Sun Jun 22 03:57:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11714: 24.1.50; find-file completion on a remote directory Resent-From: Dani Moncayo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jun 2012 07:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11714 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 11714@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.133974691915458 (code B ref -1); Fri, 15 Jun 2012 07:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Jun 2012 07:55:19 +0000 Received: from localhost ([127.0.0.1]:43606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SfRNH-00041H-9J for submit@debbugs.gnu.org; Fri, 15 Jun 2012 03:55:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58133) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SfRNE-00041A-Ov for submit@debbugs.gnu.org; Fri, 15 Jun 2012 03:55:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SfRKI-0000wR-Nu for submit@debbugs.gnu.org; Fri, 15 Jun 2012 03:52:18 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:52564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfRKI-0000vQ-HS for submit@debbugs.gnu.org; Fri, 15 Jun 2012 03:52:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfRKC-0004nY-EP for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2012 03:52:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SfRK5-0000nt-RG for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2012 03:52:07 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:33394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfRK5-0000iZ-K8 for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2012 03:52:01 -0400 Received: by mail-ob0-f169.google.com with SMTP id ta14so3652177obb.0 for ; Fri, 15 Jun 2012 00:51:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=e7thx6e/3uwC6f6jGDy+V5kOuRRrDODo0N8UYV7/Oko=; b=GCAxXVAFis2IOa0gZD/Gj67evfiRQgYT1ZGmig26efKwBZVxayxRzkhyDdPW4CRf2x sXH1vvkRErU1UMRO9vFLqs6kvnAE+TZctOIGqPlnUmrfbPS+PLBGXq3G5BDialeTnMgl 5WKvosDCMKEsVpwufCrfLNewnm+s/JjGe54NvaEkxILyGzlI9RcNmFXINKvD8n76+az7 kR0Lwc5lRjGGu/IQD5QRPo79Db9wy5qVFbMZrR3rsm/zE66qjDzZt2FC9vOael8DLDIQ GiZMkDQKWHCz7wqdKnti7OtBf0KEiniiij40vTmtv5QdLRIzrHv7D4gUw6hSF1YHArYt aqoQ== MIME-Version: 1.0 Received: by 10.182.40.5 with SMTP id t5mr4817173obk.68.1339746719841; Fri, 15 Jun 2012 00:51:59 -0700 (PDT) Received: by 10.60.172.11 with HTTP; Fri, 15 Jun 2012 00:51:59 -0700 (PDT) Date: Fri, 15 Jun 2012 09:51:59 +0200 Message-ID: From: Dani Moncayo Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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.1 (------) Recipe from "emacs -Q": 1. Eval: (cd "/some-user@some-host:~") 2. Give the correct password. 3. Type: C-x C-f / h o m e / s o m e - u s e r / t TAB After doing that, I get the error message: Assertion failed: (equal (funcall unquote qstring) completion) In the *Messages* buffer the message has more info: completion--twq-try: Assertion failed: (equal (funcall unquote qstring) completion) [I'm using the "pscp" Tramp method.] In GNU Emacs 24.1.50.1 (i386-mingw-nt6.1.7601) of 2012-06-14 on DANI-PC Bzr revision: 108603 rgm@gnu.org-20120613181105-t7txabt3lyx44f60 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --with-gcc (4.7) --no-opt --enable-checking --cflags -I../../libs/giflib-4.1.4-1/include -I../../emacs/libs/gnutls-3.0.16/include -I../../libs/jpeg-6b-4/include -I../../libs/libpng-1.4.10 -I../../libs/libxpm-3.5.8/include -I../../libs/libxpm-3.5.8/src -I../../libs/tiff-3.8.2-1/include -I../../libs/zlib-1.2.6' -- Dani Moncayo From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 15 05:40:00 2012 Received: (at control) by debbugs.gnu.org; 15 Jun 2012 09:40:00 +0000 Received: from localhost ([127.0.0.1]:43689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SfT0a-0006M6-LL for submit@debbugs.gnu.org; Fri, 15 Jun 2012 05:40:00 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:46354) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SfT0Z-0006Lz-Ch for control@debbugs.gnu.org; Fri, 15 Jun 2012 05:40:00 -0400 Received: (qmail invoked by alias); 15 Jun 2012 09:36:59 -0000 Received: from p57BB9751.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.151.81] by mail.gmx.net (mp034) with SMTP; 15 Jun 2012 11:36:59 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19PdQ15lg9PiZY+6+xIbRHjSkTnZTn3MW8Te5eaKn gWCtcH8hVeuUuC Date: Fri, 15 Jun 2012 11:36:57 +0200 Message-Id: <87haucsypy.fsf@gmx.de> To: control@debbugs.gnu.org From: Michael Albinus Subject: control message for bug #11714 X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -1.9 (-) merge 11714 11628 From unknown Sun Jun 22 03:57:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11714: 24.1.50; find-file completion on a remote directory Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jun 2012 09:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11714 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dani Moncayo Cc: 11714@debbugs.gnu.org Received: via spool by 11714-submit@debbugs.gnu.org id=B11714.133975336624699 (code B ref 11714); Fri, 15 Jun 2012 09:43:02 +0000 Received: (at 11714) by debbugs.gnu.org; 15 Jun 2012 09:42:46 +0000 Received: from localhost ([127.0.0.1]:43694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SfT3G-0006QJ-3l for submit@debbugs.gnu.org; Fri, 15 Jun 2012 05:42:46 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:39995) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SfT3E-0006QC-QW for 11714@debbugs.gnu.org; Fri, 15 Jun 2012 05:42:45 -0400 Received: (qmail invoked by alias); 15 Jun 2012 09:39:45 -0000 Received: from p57BB9751.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.151.81] by mail.gmx.net (mp069) with SMTP; 15 Jun 2012 11:39:45 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/XNmNi9GzX2uVm9hUB5WHJpgv7cGKXP06SzPsHrf 9VAnmLIOcACkMv From: Michael Albinus References: Date: Fri, 15 Jun 2012 11:39:42 +0200 In-Reply-To: (Dani Moncayo's message of "Fri, 15 Jun 2012 09:51:59 +0200") Message-ID: <87d350syld.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -1.9 (-) Dani Moncayo writes: > Recipe from "emacs -Q": > 1. Eval: (cd "/some-user@some-host:~") > 2. Give the correct password. > 3. Type: C-x C-f / h o m e / s o m e - u s e r / t TAB > > After doing that, I get the error message: > Assertion failed: (equal (funcall unquote qstring) completion) This is the same problem as #11628. Unfortunately, I have no clue how to fix it. Stefan? Best regards, Michael. From unknown Sun Jun 22 03:57:25 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Dani Moncayo Subject: bug#11714: closed (Re: bug#11714: 24.1.50; find-file completion on a remote directory) Message-ID: References: X-Gnu-PR-Message: they-closed 11714 X-Gnu-PR-Package: emacs Reply-To: 11714@debbugs.gnu.org Date: Sat, 23 Jun 2012 03:58:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1340423882-17931-1" This is a multi-part message in MIME format... ------------=_1340423882-17931-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #11714: 24.1.50; find-file completion on a remote directory which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 11714@debbugs.gnu.org. --=20 11714: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D11714 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1340423882-17931-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 11714-done) by debbugs.gnu.org; 23 Jun 2012 03:57:26 +0000 Received: from localhost ([127.0.0.1]:53351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SiHTR-0004eS-Tv for submit@debbugs.gnu.org; Fri, 22 Jun 2012 23:57:26 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:17478) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SiHTP-0004eL-G6 for 11714-done@debbugs.gnu.org; Fri, 22 Jun 2012 23:57:23 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09MCrYj/2dsb2JhbAA7CbBIg0mBCIIVAQEEAScvIxALMAQIChQYDSSIHAWrEo53ixiCEIMcA6MzgViDBQ X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="191967649" Received: from 76-10-182-35.dsl.teksavvy.com (HELO ceviche.home) ([76.10.182.35]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 22 Jun 2012 23:53:40 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 52A3A660DC; Fri, 22 Jun 2012 23:49:46 -0400 (EDT) From: Stefan Monnier To: Michael Albinus Subject: Re: bug#11714: 24.1.50; find-file completion on a remote directory Message-ID: References: <87d350syld.fsf@gmx.de> Date: Fri, 22 Jun 2012 23:49:46 -0400 In-Reply-To: <87d350syld.fsf@gmx.de> (Michael Albinus's message of "Fri, 15 Jun 2012 11:39:42 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11714-done Cc: 11714-done@debbugs.gnu.org, Dani Moncayo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -1.9 (-) >> Recipe from "emacs -Q": >> 1. Eval: (cd "/some-user@some-host:~") >> 2. Give the correct password. >> 3. Type: C-x C-f / h o m e / s o m e - u s e r / t TAB I just fixed this in the trunk with the patch below. Stefan === modified file 'lisp/minibuffer.el' --- lisp/minibuffer.el 2012-06-18 20:39:52 +0000 +++ lisp/minibuffer.el 2012-06-23 03:46:25 +0000 @@ -488,7 +488,7 @@ (defun completion--twq-try (string ustring completion point unquote requote) - ;; Basically two case: either the new result is + ;; Basically two cases: either the new result is ;; - commonprefix1 morecommonprefix suffix ;; - commonprefix newprefix suffix (pcase-let* @@ -505,8 +505,13 @@ ((> point (length prefix)) (+ qpos (length qstr1))) (t (car (funcall requote point string)))))) ;; Make sure `requote' worked. - (assert (equal (funcall unquote qstring) completion)) - (cons qstring qpoint))) + (if (equal (funcall unquote qstring) completion) + (cons qstring qpoint) + ;; If requote failed (e.g. because sifn-requote did not handle + ;; Tramp's "/foo:/bar//baz -> /foo:/baz" truncation), then at least + ;; try requote properly. + (let ((qstr (funcall qfun completion))) + (cons qstr (length qstr)))))) (defun completion--string-equal-p (s1 s2) (eq t (compare-strings s1 nil nil s2 nil nil 'ignore-case))) @@ -2130,6 +2135,12 @@ ;; find the position corresponding to UPOS in QSTR, but ;; substitute-in-file-name can do anything, depending on file-name-handlers. ;; Kind of like in rfn-eshadow-update-overlay, only worse. + ;; FIXME: example of thing we do not handle: Tramp's makes + ;; (substitute-in-file-name "/foo:~/bar//baz") -> "/scpc:foo:/baz". + ;; FIXME: One way to try and handle "all" cases is to require + ;; substitute-in-file-name to preserve text-properties, so we could + ;; apply text-properties to the input string and then look for them in + ;; the output to understand what comes from where. (let ((qpos 0)) ;; Handle substitute-in-file-name's truncation behavior. (let (tpos) @@ -2824,14 +2835,14 @@ (defun completion--sreverse (str) "Like `reverse' but for a string STR rather than a list." - (apply 'string (nreverse (mapcar 'identity str)))) + (apply #'string (nreverse (mapcar 'identity str)))) (defun completion--common-suffix (strs) "Return the common suffix of the strings STRS." (completion--sreverse (try-completion "" - (mapcar 'completion--sreverse strs)))) + (mapcar #'completion--sreverse strs)))) (defun completion-pcm--merge-completions (strs pattern) "Extract the commonality in STRS, with the help of PATTERN. ------------=_1340423882-17931-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Jun 2012 07:55:19 +0000 Received: from localhost ([127.0.0.1]:43606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SfRNH-00041H-9J for submit@debbugs.gnu.org; Fri, 15 Jun 2012 03:55:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58133) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SfRNE-00041A-Ov for submit@debbugs.gnu.org; Fri, 15 Jun 2012 03:55:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SfRKI-0000wR-Nu for submit@debbugs.gnu.org; Fri, 15 Jun 2012 03:52:18 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:52564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfRKI-0000vQ-HS for submit@debbugs.gnu.org; Fri, 15 Jun 2012 03:52:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfRKC-0004nY-EP for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2012 03:52:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SfRK5-0000nt-RG for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2012 03:52:07 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:33394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfRK5-0000iZ-K8 for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2012 03:52:01 -0400 Received: by mail-ob0-f169.google.com with SMTP id ta14so3652177obb.0 for ; Fri, 15 Jun 2012 00:51:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=e7thx6e/3uwC6f6jGDy+V5kOuRRrDODo0N8UYV7/Oko=; b=GCAxXVAFis2IOa0gZD/Gj67evfiRQgYT1ZGmig26efKwBZVxayxRzkhyDdPW4CRf2x sXH1vvkRErU1UMRO9vFLqs6kvnAE+TZctOIGqPlnUmrfbPS+PLBGXq3G5BDialeTnMgl 5WKvosDCMKEsVpwufCrfLNewnm+s/JjGe54NvaEkxILyGzlI9RcNmFXINKvD8n76+az7 kR0Lwc5lRjGGu/IQD5QRPo79Db9wy5qVFbMZrR3rsm/zE66qjDzZt2FC9vOael8DLDIQ GiZMkDQKWHCz7wqdKnti7OtBf0KEiniiij40vTmtv5QdLRIzrHv7D4gUw6hSF1YHArYt aqoQ== MIME-Version: 1.0 Received: by 10.182.40.5 with SMTP id t5mr4817173obk.68.1339746719841; Fri, 15 Jun 2012 00:51:59 -0700 (PDT) Received: by 10.60.172.11 with HTTP; Fri, 15 Jun 2012 00:51:59 -0700 (PDT) Date: Fri, 15 Jun 2012 09:51:59 +0200 Message-ID: Subject: 24.1.50; find-file completion on a remote directory From: Dani Moncayo To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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.1 (------) Recipe from "emacs -Q": 1. Eval: (cd "/some-user@some-host:~") 2. Give the correct password. 3. Type: C-x C-f / h o m e / s o m e - u s e r / t TAB After doing that, I get the error message: Assertion failed: (equal (funcall unquote qstring) completion) In the *Messages* buffer the message has more info: completion--twq-try: Assertion failed: (equal (funcall unquote qstring) completion) [I'm using the "pscp" Tramp method.] In GNU Emacs 24.1.50.1 (i386-mingw-nt6.1.7601) of 2012-06-14 on DANI-PC Bzr revision: 108603 rgm@gnu.org-20120613181105-t7txabt3lyx44f60 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --with-gcc (4.7) --no-opt --enable-checking --cflags -I../../libs/giflib-4.1.4-1/include -I../../emacs/libs/gnutls-3.0.16/include -I../../libs/jpeg-6b-4/include -I../../libs/libpng-1.4.10 -I../../libs/libxpm-3.5.8/include -I../../libs/libxpm-3.5.8/src -I../../libs/tiff-3.8.2-1/include -I../../libs/zlib-1.2.6' -- Dani Moncayo ------------=_1340423882-17931-1-- From unknown Sun Jun 22 03:57:25 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Michael Albinus Subject: bug#11628: closed (Re: bug#11714: 24.1.50; find-file completion on a remote directory) Message-ID: References: <87obozw2zi.fsf@gmx.de> X-Gnu-PR-Message: they-closed 11628 X-Gnu-PR-Package: emacs Reply-To: 11628@debbugs.gnu.org Date: Sat, 23 Jun 2012 03:58:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1340423883-17931-3" This is a multi-part message in MIME format... ------------=_1340423883-17931-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #11714: 24.1.50; "Assertion failed: (equal (funcall unquote qstring) comple= tion)" when completing remote file names which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 11628@debbugs.gnu.org. --=20 11714: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D11714 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1340423883-17931-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 11714-done) by debbugs.gnu.org; 23 Jun 2012 03:57:26 +0000 Received: from localhost ([127.0.0.1]:53351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SiHTR-0004eS-Tv for submit@debbugs.gnu.org; Fri, 22 Jun 2012 23:57:26 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:17478) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SiHTP-0004eL-G6 for 11714-done@debbugs.gnu.org; Fri, 22 Jun 2012 23:57:23 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09MCrYj/2dsb2JhbAA7CbBIg0mBCIIVAQEEAScvIxALMAQIChQYDSSIHAWrEo53ixiCEIMcA6MzgViDBQ X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="191967649" Received: from 76-10-182-35.dsl.teksavvy.com (HELO ceviche.home) ([76.10.182.35]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 22 Jun 2012 23:53:40 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 52A3A660DC; Fri, 22 Jun 2012 23:49:46 -0400 (EDT) From: Stefan Monnier To: Michael Albinus Subject: Re: bug#11714: 24.1.50; find-file completion on a remote directory Message-ID: References: <87d350syld.fsf@gmx.de> Date: Fri, 22 Jun 2012 23:49:46 -0400 In-Reply-To: <87d350syld.fsf@gmx.de> (Michael Albinus's message of "Fri, 15 Jun 2012 11:39:42 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11714-done Cc: 11714-done@debbugs.gnu.org, Dani Moncayo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -1.9 (-) >> Recipe from "emacs -Q": >> 1. Eval: (cd "/some-user@some-host:~") >> 2. Give the correct password. >> 3. Type: C-x C-f / h o m e / s o m e - u s e r / t TAB I just fixed this in the trunk with the patch below. Stefan === modified file 'lisp/minibuffer.el' --- lisp/minibuffer.el 2012-06-18 20:39:52 +0000 +++ lisp/minibuffer.el 2012-06-23 03:46:25 +0000 @@ -488,7 +488,7 @@ (defun completion--twq-try (string ustring completion point unquote requote) - ;; Basically two case: either the new result is + ;; Basically two cases: either the new result is ;; - commonprefix1 morecommonprefix suffix ;; - commonprefix newprefix suffix (pcase-let* @@ -505,8 +505,13 @@ ((> point (length prefix)) (+ qpos (length qstr1))) (t (car (funcall requote point string)))))) ;; Make sure `requote' worked. - (assert (equal (funcall unquote qstring) completion)) - (cons qstring qpoint))) + (if (equal (funcall unquote qstring) completion) + (cons qstring qpoint) + ;; If requote failed (e.g. because sifn-requote did not handle + ;; Tramp's "/foo:/bar//baz -> /foo:/baz" truncation), then at least + ;; try requote properly. + (let ((qstr (funcall qfun completion))) + (cons qstr (length qstr)))))) (defun completion--string-equal-p (s1 s2) (eq t (compare-strings s1 nil nil s2 nil nil 'ignore-case))) @@ -2130,6 +2135,12 @@ ;; find the position corresponding to UPOS in QSTR, but ;; substitute-in-file-name can do anything, depending on file-name-handlers. ;; Kind of like in rfn-eshadow-update-overlay, only worse. + ;; FIXME: example of thing we do not handle: Tramp's makes + ;; (substitute-in-file-name "/foo:~/bar//baz") -> "/scpc:foo:/baz". + ;; FIXME: One way to try and handle "all" cases is to require + ;; substitute-in-file-name to preserve text-properties, so we could + ;; apply text-properties to the input string and then look for them in + ;; the output to understand what comes from where. (let ((qpos 0)) ;; Handle substitute-in-file-name's truncation behavior. (let (tpos) @@ -2824,14 +2835,14 @@ (defun completion--sreverse (str) "Like `reverse' but for a string STR rather than a list." - (apply 'string (nreverse (mapcar 'identity str)))) + (apply #'string (nreverse (mapcar 'identity str)))) (defun completion--common-suffix (strs) "Return the common suffix of the strings STRS." (completion--sreverse (try-completion "" - (mapcar 'completion--sreverse strs)))) + (mapcar #'completion--sreverse strs)))) (defun completion-pcm--merge-completions (strs pattern) "Extract the commonality in STRS, with the help of PATTERN. ------------=_1340423883-17931-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Jun 2012 14:47:24 +0000 Received: from localhost ([127.0.0.1]:57204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SbYZ1-0005Vt-HK for submit@debbugs.gnu.org; Mon, 04 Jun 2012 10:47:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60842) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SbYYy-0005Vg-Ag for submit@debbugs.gnu.org; Mon, 04 Jun 2012 10:47:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbYWq-0006ag-UX for submit@debbugs.gnu.org; Mon, 04 Jun 2012 10:45:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:41508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbYWq-0006ab-R5 for submit@debbugs.gnu.org; Mon, 04 Jun 2012 10:45:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbYWh-0001rx-IJ for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2012 10:45:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbYWe-0006MM-Ob for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2012 10:44:58 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:37566) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SbYWe-0006Ls-E1 for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2012 10:44:56 -0400 Received: (qmail invoked by alias); 04 Jun 2012 14:44:51 -0000 Received: from p57BB967F.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.150.127] by mail.gmx.net (mp070) with SMTP; 04 Jun 2012 16:44:51 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/ozn8EXpnoio1XNLD1rD+U+xVZ9lCu0oynk2E8dM RFIOVZOMHiFGgp From: Michael Albinus To: bug-gnu-emacs@gnu.org Subject: 24.1.50; "Assertion failed: (equal (funcall unquote qstring) completion)" when completing remote file names Date: Mon, 04 Jun 2012 16:44:49 +0200 Message-ID: <87obozw2zi.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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.9 (------) This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. The error message looks identical to bug#11466. That bug has been reported as fixed, buth with the following scenario the problem still exist: emacs C-c C-f /ssh:: password C-c C-f /tm -> Debugger entered--Lisp error: (cl-assertion-failed (equal (funcall unquo= te qstring) completion)) signal(cl-assertion-failed ((equal (funcall unquote qstring) completion))) completion--twq-try("/ssh:detlef:/home/albinus//tm" "/ssh:detlef:/tm" "/s= sh:detlef:/tmp/" 17 substitute-in-file-name completion--sifn-requote) #[514 "\211\304=3D\203=00\242;\204=00\207\305\302\303@A\300\301&\207\211\= 306=3D\203<\307!\211A\206)\310\205;=01\311\241\210\312\302\303=06\300\301&\= 207\311\207" [substitute-in-file-name completion--sifn-requote "/ssh:detlef= :/home/albinus//tm" "/ssh:detlef:/tm" 1 completion--twq-try 2 last 0 nil co= mpletion--twq-all] 11 "\n\n(fn UNQUOTED-RESULT OP)"](("/ssh:detlef:/tmp/" .= 17) 1) completion--nth-completion(1 "/ssh:detlef:/home/albinus//tm" read-file-na= me-internal file-exists-p 29 (metadata (category . file) (completion--unquo= te-requote . t))) completion-try-completion("/ssh:detlef:/home/albinus//tm" read-file-name-= internal file-exists-p 29 (metadata (category . file) (completion--unquote-= requote . t))) completion--do-completion() minibuffer-complete() call-interactively(minibuffer-complete nil nil) read-from-minibuffer("Find file: " "/ssh:detlef:/home/albinus/" (keymap (= keymap (32)) keymap (10 . minibuffer-complete-and-exit) (13 . minibuffer-co= mplete-and-exit) keymap (menu-bar keymap (minibuf "Minibuf" keymap (tab men= u-item "Complete" minibuffer-complete :help "Complete as far as possible") = (space menu-item "Complete Word" minibuffer-complete-word :help "Complete a= t most one word") (63 menu-item "List Completions" minibuffer-completion-he= lp :help "Display all possible completions") "Minibuf")) (27 keymap (118 . = switch-to-completions)) (prior . switch-to-completions) (63 . minibuffer-co= mpletion-help) (32 . minibuffer-complete-word) (9 . minibuffer-complete) ke= ymap (menu-bar keymap (minibuf "Minibuf" keymap (previous menu-item "Previo= us History Item" previous-history-element :help "Put previous minibuffer hi= story element in the minibuffer") (next menu-item "Next History Item" next-= history-element :help "Put next minibuffer history element in the minibuffe= r") (isearch-backward menu-item "Isearch History Backward" isearch-backward= :help "Incrementally search minibuffer history backward") (isearch-forward= menu-item "Isearch History Forward" isearch-forward :help "Incrementally s= earch minibuffer history forward") (return menu-item "Enter" exit-minibuffe= r :key-sequence "" :help "Terminate input and exit minibuffer") (quit menu-= item "Quit" abort-recursive-edit :help "Abort input and exit minibuffer") "= Minibuf")) (10 . exit-minibuffer) (13 . exit-minibuffer) (7 . abort-recursi= ve-edit) (C-tab . file-cache-minibuffer-complete) (9 . self-insert-command)= (up . previous-history-element) (prior . previous-history-element) (down .= next-history-element) (next . next-history-element) (27 keymap (114 . prev= ious-matching-history-element) (115 . next-matching-history-element) (112 .= previous-history-element) (110 . next-history-element))) nil file-name-his= tory "/ssh:detlef:/home/albinus/" nil) completing-read-default("Find file: " read-file-name-internal file-exists= -p confirm-after-completion "/ssh:detlef:/home/albinus/" file-name-history = "/ssh:detlef:/home/albinus/" nil) completing-read("Find file: " read-file-name-internal file-exists-p confi= rm-after-completion "/ssh:detlef:/home/albinus/" file-name-history "/ssh:de= tlef:/home/albinus/") read-file-name-default("Find file: " nil "/ssh:detlef:/home/albinus/" con= firm-after-completion nil nil) read-file-name("Find file: " nil "/ssh:detlef:/home/albinus/" confirm-aft= er-completion) find-file-read-args("Find file: " confirm-after-completion) byte-code("\300\301\302 \"\207" [find-file-read-args "Find file: " confir= m-nonexistent-file-or-buffer] 3) call-interactively(find-file nil nil) 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'. For information about debugging Emacs, please read the file /home/albinus/src/emacs/etc/DEBUG. In GNU Emacs 24.1.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2012-06-04 on detlef Bzr revision: 108481 monnier@iro.umontreal.ca-20120604140833-gjtn2e5t63ivvk= s7 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_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Dired by name Minor modes in effect: display-time-mode: t shell-dirtrack-mode: t iswitchb-mode: t icomplete-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ > 1 ; 1 4 0 0 ; 0 c C-x C-f / s u d o : : RET ESC O F ESC [ A RET q ESC [ A RET q ESC [ A RET q ESC [ A RET q C-x C-f / e t TAB C-g ESC x r e p o TAB r TAB RET Recent messages: Tramp: Waiting for prompts from remote shell Tramp: Sending Password Tramp: Sending command `exec sudo -u root -s -H -p Password:' Tramp: Found remote shell prompt on `detlef' Tramp: Opening connection for root@detlef using sudo...done Mark set completion--twq-try: Assertion failed: (equal (funcall unquote qstring) com= pletion) Quit Making completion list... Load-path shadows: ~/src/tramp/lisp/tramp-smb hides /home/albinus/src/emacs/lisp/net/tramp-smb ~/src/tramp/lisp/tramp-uu hides /home/albinus/src/emacs/lisp/net/tramp-uu ~/src/tramp/lisp/tramp-cmds hides /home/albinus/src/emacs/lisp/net/tramp-cm= ds ~/src/tramp/lisp/tramp-cache hides /home/albinus/src/emacs/lisp/net/tramp-c= ache ~/src/tramp/lisp/trampver hides /home/albinus/src/emacs/lisp/net/trampver ~/src/tramp/lisp/tramp-ftp hides /home/albinus/src/emacs/lisp/net/tramp-ftp ~/src/tramp/lisp/tramp-sh hides /home/albinus/src/emacs/lisp/net/tramp-sh ~/src/tramp/lisp/tramp hides /home/albinus/src/emacs/lisp/net/tramp ~/lisp/dbus hides /home/albinus/src/emacs/lisp/net/dbus ~/lisp/soap-client hides /home/albinus/src/emacs/lisp/net/soap-client ~/src/tramp/lisp/tramp-gw hides /home/albinus/src/emacs/lisp/net/tramp-gw ~/src/tramp/lisp/tramp-gvfs hides /home/albinus/src/emacs/lisp/net/tramp-gv= fs ~/src/tramp/lisp/tramp-compat hides /home/albinus/src/emacs/lisp/net/tramp-= compat Features: (shadow sort mail-extr warnings emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils help-mode view noutline outline easy-mmode tramp-cache tramp-sh debbugs-autoloads package cperl-mode easymenu time tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv macroexp gnus-util mm-util mail-prsvr password-cache shell pcomplete comint ansi-color ring format-spec advice help-fns advice-preload tramp-loaddefs cl cl-lib iswitchb jka-compr icomplete time-date paren ps-print ps-def lpr vc ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff vc-dispatcher dired tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment 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) ------------=_1340423883-17931-3-- From unknown Sun Jun 22 03:57:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11714: 24.1.50; find-file completion on a remote directory Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jun 2012 10:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11714 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 11714@debbugs.gnu.org, Dani Moncayo Received: via spool by 11714-submit@debbugs.gnu.org id=B11714.134044737324001 (code B ref 11714); Sat, 23 Jun 2012 10:30:02 +0000 Received: (at 11714) by debbugs.gnu.org; 23 Jun 2012 10:29:33 +0000 Received: from localhost ([127.0.0.1]:53547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SiNav-0006F3-Dy for submit@debbugs.gnu.org; Sat, 23 Jun 2012 06:29:33 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:33039) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SiNas-0006Ev-Bu for 11714@debbugs.gnu.org; Sat, 23 Jun 2012 06:29:31 -0400 Received: (qmail invoked by alias); 23 Jun 2012 10:25:44 -0000 Received: from p57BB8B92.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.139.146] by mail.gmx.net (mp035) with SMTP; 23 Jun 2012 12:25:44 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX185HD8Ypys5yO2x9XfLHNe70kUat116jGL2VhQ68J Rj8aX12bNnCMzq From: Michael Albinus References: <87d350syld.fsf@gmx.de> Date: Sat, 23 Jun 2012 12:25:42 +0200 In-Reply-To: (Stefan Monnier's message of "Fri, 22 Jun 2012 23:49:46 -0400") Message-ID: <87sjdmz5nd.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -1.9 (-) Stefan Monnier writes: > I just fixed this in the trunk with the patch below. That works, thanks! > + ;; FIXME: example of thing we do not handle: Tramp's makes > + ;; (substitute-in-file-name "/foo:~/bar//baz") -> "/scpc:foo:/baz". > + ;; FIXME: One way to try and handle "all" cases is to require > + ;; substitute-in-file-name to preserve text-properties, so we could > + ;; apply text-properties to the input string and then look for them in > + ;; the output to understand what comes from where. Shall I do action on Tramp? If yes, could this requirement to file name handlers be documented? > Stefan Best regards, Michael. From unknown Sun Jun 22 03:57:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11714: 24.1.50; find-file completion on a remote directory Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jun 2012 14:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11714 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 11714@debbugs.gnu.org, Dani Moncayo Received: via spool by 11714-submit@debbugs.gnu.org id=B11714.134046012616311 (code B ref 11714); Sat, 23 Jun 2012 14:03:02 +0000 Received: (at 11714) by debbugs.gnu.org; 23 Jun 2012 14:02:06 +0000 Received: from localhost ([127.0.0.1]:54071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SiQuc-0004F2-Ah for submit@debbugs.gnu.org; Sat, 23 Jun 2012 10:02:06 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:40966) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SiQuZ-0004Ev-TQ for 11714@debbugs.gnu.org; Sat, 23 Jun 2012 10:02:04 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09FxLSN/2dsb2JhbABEsEiDSYEIghYBBScvIxALNBIUGA0kiCG6CZBEA6MzgViDBQ X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="191979460" Received: from 69-196-180-141.dsl.teksavvy.com (HELO pastel.home) ([69.196.180.141]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 23 Jun 2012 09:58:18 -0400 Received: by pastel.home (Postfix, from userid 20848) id 402524E213; Sat, 23 Jun 2012 09:58:18 -0400 (EDT) From: Stefan Monnier Message-ID: References: <87d350syld.fsf@gmx.de> <87sjdmz5nd.fsf@gmx.de> Date: Sat, 23 Jun 2012 09:58:18 -0400 In-Reply-To: <87sjdmz5nd.fsf@gmx.de> (Michael Albinus's message of "Sat, 23 Jun 2012 12:25:42 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -1.9 (-) >> + ;; FIXME: example of thing we do not handle: Tramp's makes >> + ;; (substitute-in-file-name "/foo:~/bar//baz") -> "/scpc:foo:/baz". >> + ;; FIXME: One way to try and handle "all" cases is to require >> + ;; substitute-in-file-name to preserve text-properties, so we could >> + ;; apply text-properties to the input string and then look for them in >> + ;; the output to understand what comes from where. > Shall I do action on Tramp? If yes, could this requirement to file name > handlers be documented? No, we'd probably have to add a new file-name operation for that, or change the requirements of substitute-in-file-name as suggested. But if that will happen, it won't be before the next round of completion changes. Stefan