From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.bugs Subject: bug#38056: 27.0.50; dired.c changes introduced autocompletion error Date: Mon, 04 Nov 2019 10:52:09 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="217531"; mail-complaints-to="usenet@blaine.gmane.org" To: 38056@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 04 06:32:15 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iRUyL-000uUB-Qm for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Nov 2019 06:32:14 +0100 Original-Received: from localhost ([::1]:57802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRUyK-0006cw-Gk for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Nov 2019 00:32:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40233) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRUyD-0006bh-5T for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 00:32:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRUyB-0002xc-8D for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 00:32:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55159) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iRUyA-0002xC-Bq for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 00:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iRUyA-0002Rt-6n for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 00:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pankaj Jangid Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Nov 2019 05:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38056 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15728455049384 (code B ref -1); Mon, 04 Nov 2019 05:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Nov 2019 05:31:44 +0000 Original-Received: from localhost ([127.0.0.1]:35747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRUxs-0002RI-3W for submit@debbugs.gnu.org; Mon, 04 Nov 2019 00:31:44 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:50736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRUol-0002AX-MZ for submit@debbugs.gnu.org; Mon, 04 Nov 2019 00:22:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39757) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRUoj-00037O-O4 for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 00:22:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRUoh-0007Or-RA for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 00:22:17 -0500 Original-Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:38226) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iRUoh-0007Of-Iv for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 00:22:15 -0500 Original-Received: by mail-pl1-x636.google.com with SMTP id w8so7084139plq.5 for ; Sun, 03 Nov 2019 21:22:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=kY6KsjegzQQKTwO1XAOvK84ZB5wFwbBMhb9OeiDyX8M=; b=qtIkcEAGKM/nMR/oSYna+1WIysNiwRLMkDUT1DVbIRd4umL5GU398tzlKqNux0VXPT p3e5krxJzG0Y5F53ypKcY7ja+uoGoOmxji6t1+KJKQTVkKAbH9po2/cuZqbEDg/u8qPI jizfaKbF3IiRpaNbSZh9R9bIIYWKT14rfit7Wb5FRWCR+mUlDKMHXtXwuvp2Ak7bLWhU roFNQNT8E+98eS7iya6FahDwVxMGc0uWepexqKf/9X+hH34wDyiT26dMMHTbJKE2h1pK SUQmmmZ9OAJKNsTOPsrg2jS7O/SKMwOd16i56HcIUrGX2AQw8F0d+rtrieFE4y0/4iyI l1Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=kY6KsjegzQQKTwO1XAOvK84ZB5wFwbBMhb9OeiDyX8M=; b=sULtgrtGyWyjpvWHz84Okip+xIWylPaYy8qFRpEHxdCzkeoHP4Q6r4TJIND+1QfWXo TQL5DP26qDo76S9ZhI0eP2ZNzWeiPEbS/xkb/oBLICIfWtP/ZANFhA09vYk8hEm4Z2HB y49XFlg7TFNTusugnoefCzmetzqnG8JCJHzjn9ygV+GE4wSsHyHawNKB75BHw4Ikvq4u Oi3YSAnuF8mMh0sUKxruScCWOxCPhhtek2+tDynCdeZnRv2Nbr35PV2mVNP0DsQ2s7gS PdYPXwXz8rgfOPQ48AICj8SMymu3BzEXIJo8bAhwk3aaY7/kiRXlomd8TjEPvzmQROBm RdhQ== X-Gm-Message-State: APjAAAVFZyrL4z6tR9exR9WjTX0FumgI0BajVr/wQ0uMLfsF6ZSwv6r8 HxhdTqgZrJTEY4SkiH1m5zYwyD8= X-Google-Smtp-Source: APXvYqzRXPmdVgimMVVK5eBcl1UI81G+KtTiIfDWrzdpYDU5h7woBbkYt6jIq1Q/tEzbIvgxDzWy1w== X-Received: by 2002:a17:902:14f:: with SMTP id 73mr25699577plb.87.1572844934045; Sun, 03 Nov 2019 21:22:14 -0800 (PST) Original-Received: from Pankajs-MacBook-Pro.local ([49.36.132.100]) by smtp.gmail.com with ESMTPSA id n8sm6455816pja.30.2019.11.03.21.22.12 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Nov 2019 21:22:13 -0800 (PST) Original-Received: by Pankajs-MacBook-Pro.local (Postfix, from userid 501) id 411FE203D7179C; Mon, 4 Nov 2019 10:52:09 +0530 (IST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Mon, 04 Nov 2019 00:31:43 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170913 Archived-At: I have tried it in various ways. The checkin 84a3793b194efe92e2eb80cd0f625f3324bf4cae have introduced autocompletion issues at various places. To reproduce, I have tried these steps. I have also tried it on one previous commit (3c86424a182892db1e0216b9aa7e8389ae6f13de). This commit is ok; which implies that the issues has occurred in commit 84a3793b194efe92e2eb80cd0f625f3324bf4cae only. (1) launched emacs using "./src/emacs -Q". (2) (setq debug-on-error t). (3) C-x C-f and then type few characters of some file and TAB. This produces same error. autocompletion on directories is working fine. OR (3) Tried to rename a file in dired. Press R, press few characters of the file, press TAB. This produces error. I have debug-on-error set to t. produces this error: Debugger entered--Lisp error: (args-out-of-range "a.txt" 3 2) file-name-completion("a" "~/work/temp/" file-exists-p) completion-file-name-table("~/work/temp/a" file-exists-p nil) try-completion("~/work/temp/a" completion-file-name-table file-exists-p) completion-basic-try-completion("~/work/temp/a" completion-file-name-tabl= e file-exists-p 13) #f(compiled-function (style) #)(basic) completion--some(#f(compiled-function (style) #)= (basic partial-completion emacs22)) completion--nth-completion(1 "~/work/temp/a" read-file-name-internal file= -exists-p 13 (metadata (category . file) (completion--unquote-requote . t))) completion-try-completion("~/work/temp/a" read-file-name-internal file-ex= ists-p 13 (metadata (category . file) (completion--unquote-requote . t))) completion--do-completion(18 31) completion--in-region-1(18 31) #f(compiled-function (start end collection predicate) #)(18 31 read-file-name-internal file-exists-p) apply(#f(compiled-function (start end collection predicate) #) (18 31 read-file-name-internal file-exists-p)) #f(compiled-function (funs global args) #)(nil n= il (18 31 read-file-name-internal file-exists-p)) completion--in-region(18 31 read-file-name-internal file-exists-p) completion-in-region(18 31 read-file-name-internal file-exists-p) minibuffer-complete() funcall-interactively(minibuffer-complete) call-interactively(minibuffer-complete nil nil) command-execute(minibuffer-complete) read-from-minibuffer("Rename a.txt to: " "~/work/temp/" (keymap (keymap (= 32)) keymap (menu-bar keymap (minibuf "Minibuf" keymap (tab menu-item "Comp= lete" minibuffer-complete :help "Complete as far as possible") (space menu-= item "Complete Word" minibuffer-complete-word :help "Complete at most one w= ord") (63 menu-item "List Completions" minibuffer-completion-help :help "Di= splay all possible completions") "Minibuf")) (27 keymap (118 . switch-to-co= mpletions)) (prior . switch-to-completions) (63 . minibuffer-completion-hel= p) (32 . minibuffer-complete-word) (9 . minibuffer-complete) keymap (menu-b= ar keymap (minibuf "Minibuf" keymap (previous menu-item "Previous History I= tem" previous-history-element :help "Put previous minibuffer history elemen= t in the min...") (next menu-item "Next History Item" next-history-element = :help "Put next minibuffer history element in the minibuf...") (isearch-bac= kward menu-item "Isearch History Backward" isearch-backward :help "Incremen= tally search minibuffer history backward") (isearch-forward menu-item "Isea= rch History Forward" isearch-forward :help "Incrementally search minibuffer= history forward") (return menu-item "Enter" exit-minibuffer :key-sequence = "\15" :help "Terminate input and exit minibuffer") (quit menu-item "Quit" a= bort-recursive-edit :help "Abort input and exit minibuffer") "Minibuf")) (1= 0 . exit-minibuffer) (13 . exit-minibuffer) (7 . abort-recursive-edit) (C-t= ab . file-cache-minibuffer-complete) (9 . self-insert-command) (XF86Back . = previous-history-element) (up . previous-line-or-history-element) (prior . = previous-history-element) (XF86Forward . next-history-element) (down . next= -line-or-history-element) (next . next-history-element) (27 keymap (60 . mi= nibuffer-beginning-of-buffer) (114 . previous-matching-history-element) (11= 5 . next-matching-history-element) (112 . previous-history-element) (110 . = next-history-element))) nil file-name-history "~/work/temp/a.txt" nil) completing-read-default("Rename a.txt to: " read-file-name-internal file-= exists-p nil "~/work/temp/" file-name-history "~/work/temp/a.txt" nil) completing-read("Rename a.txt to: " read-file-name-internal file-exists-p= nil "~/work/temp/" file-name-history "~/work/temp/a.txt") read-file-name-default("Rename a.txt to: " "/Users/pankaj/work/temp/" "/U= sers/pankaj/work/temp/a.txt" nil nil nil) read-file-name("Rename a.txt to: " "/Users/pankaj/work/temp/" "/Users/pan= kaj/work/temp/a.txt" nil nil nil) ido-read-file-name("Rename a.txt to: " "/Users/pankaj/work/temp/" "/Users= /pankaj/work/temp/a.txt" nil nil nil) apply(ido-read-file-name ("Rename a.txt to: " "/Users/pankaj/work/temp/" = "/Users/pankaj/work/temp/a.txt" nil nil nil)) #f(advice-wrapper :override read-file-name-default ido-read-file-name)("R= ename a.txt to: " "/Users/pankaj/work/temp/" "/Users/pankaj/work/temp/a.txt= " nil nil nil) read-file-name("Rename a.txt to: " "/Users/pankaj/work/temp/" "/Users/pan= kaj/work/temp/a.txt") apply(read-file-name ("Rename a.txt to: " "/Users/pankaj/work/temp/" "/Us= ers/pankaj/work/temp/a.txt")) dired-mark-pop-up(nil move ("a.txt") read-file-name "Rename a.txt to: " "= /Users/pankaj/work/temp/" "/Users/pankaj/work/temp/a.txt") dired-mark-read-file-name("Rename %s to: " "/Users/pankaj/work/temp/" mov= e nil ("a.txt") "/Users/pankaj/work/temp/a.txt") dired-do-create-files(move dired-rename-file "Move" nil t "Rename") dired-do-rename(nil) funcall-interactively(dired-do-rename nil) call-interactively(dired-do-rename nil nil) command-execute(dired-do-rename) =3D=3D=3D=3D In GNU Emacs 27.0.50 (build 17, x86_64-apple-darwin19.0.0, NS appkit-1894.1= 0 Version 10.15.1 (Build 19B88)) of 2019-11-04 built on Pankajs-MacBook-Pro.local Repository revision: 84a3793b194efe92e2eb80cd0f625f3324bf4cae Repository branch: HEAD Windowing system distributor 'Apple', version 10.3.1894 System Description: Mac OS X 10.15.1 user-error: The mark is not set now, so there is no region Making completion list... Configured using: 'configure CPPFLAGS=3D-I/usr/local/opt/ruby/include LDFLAGS=3D-L/usr/local/opt/ruby/lib' Configured features: RSVG DBUS GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LC_CTYPE: UTF-8 value of $LANG: en_US locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 45311 7352) (symbols 48 6067 1) (strings 32 15289 1854) (string-bytes 1 502990) (vectors 16 10184) (vector-slots 8 129631 5746) (floats 8 19 44) (intervals 56 217 0) (buffers 1000 13)) --=20 Pankaj Jangid