From unknown Wed Jun 18 23:10:05 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#52169 <52169@debbugs.gnu.org> To: bug#52169 <52169@debbugs.gnu.org> Subject: Status: 28.0.60; "Args out of range" when completing shell command Reply-To: bug#52169 <52169@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:10:05 +0000 retitle 52169 28.0.60; "Args out of range" when completing shell command reassign 52169 emacs submitter 52169 K=C3=A9vin Le Gouguec severity 52169 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 28 16:38:38 2021 Received: (at submit) by debbugs.gnu.org; 28 Nov 2021 21:38:38 +0000 Received: from localhost ([127.0.0.1]:36467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrRsc-00058D-CK for submit@debbugs.gnu.org; Sun, 28 Nov 2021 16:38:38 -0500 Received: from lists.gnu.org ([209.51.188.17]:44142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrRsZ-000585-A8 for submit@debbugs.gnu.org; Sun, 28 Nov 2021 16:38:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrRsZ-0001db-49 for bug-gnu-emacs@gnu.org; Sun, 28 Nov 2021 16:38:35 -0500 Received: from [2a00:1450:4864:20::331] (port=33713 helo=mail-wm1-x331.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrRsW-0001oX-Ui for bug-gnu-emacs@gnu.org; Sun, 28 Nov 2021 16:38:34 -0500 Received: by mail-wm1-x331.google.com with SMTP id r9-20020a7bc089000000b00332f4abf43fso10062014wmh.0 for ; Sun, 28 Nov 2021 13:38:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=IW/vihWWz2Or2jp2Njc/MORQhrZkgNQ6byisbszMmPo=; b=YCHYvsi09BHi0lapmlOb7RC8waFmHTZ/ZlBWdLIT+UkOIgXxbjx2VBToI8YoxSemom I7JO5KSa/ufJlqyFkhJkrPry2YSg1+4ZSQXeKm/rxT7ZvE35VofiDlu6pIS86WTAbyuL XHyxWt9aJrNLg1gLNbEAcsPT2y/8xGX4QPFdQFdp8cNBJktvtrG7DoXuy1BNcS9lSLyy 82SYhVXClAa7c9Lfj3X/6bPX65EFMy/IKXLUOyhq9jWzKaO/qk4NiWaMeT4g87X2fPID npUTDzzVXlOwZkYuf0s2jHVXD90jpxUI9Rh7T9m4N5znbmnpXGKmpgCESXDn+C6Gf6nB cFOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=IW/vihWWz2Or2jp2Njc/MORQhrZkgNQ6byisbszMmPo=; b=0jLQKqd47rEWIwgMEx210klGedVa0qkZ4N82gtrKxxiO/DRWiqJMDFpnQzIMc9URfN BVjO2S/mLyhMHzmwhi4fdvt99E+kZyw/eVeqXI2FsefTfW/+ajA2z287xYqFg8oA4l27 GDR5P7i+aAqUhF3zI86wf2+pyRGRCcamNOFmwXNIbzoGDlWdRpSiai86SQf5p5Me4F1Z s/PEBAZ5/VKVgb9TuY5KwaQxY+oWq3k0iEePlTfx/78Vn2Hxw7BREW/NJINHaz0VqZh/ 03GRRgmNhlaEaofVBDIM60pn5VPZR2DNqCfkkWX1XOBU1SDzBMkf4moUYAJav/wYzETq GkjA== X-Gm-Message-State: AOAM532zXOoiiXV4OtKOtVxjFV0Pkmmxk5SJq7sLrLDZ4E+2FhbMKoRg PsCHPp1r7mki6Cowkz/hJbVgU9a/oyQ= X-Google-Smtp-Source: ABdhPJxUuZ4UV4OM+6wWrOLpOmwmhCsBRK2YyWn7a1D7BeDEcdM9kmiQN9b9x/QSR9vU9rxcmxMArA== X-Received: by 2002:a1c:6a04:: with SMTP id f4mr31716964wmc.56.1638135511174; Sun, 28 Nov 2021 13:38:31 -0800 (PST) Received: from hirondell ([109.190.253.16]) by smtp.gmail.com with ESMTPSA id l5sm18983897wms.16.2021.11.28.13.38.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Nov 2021 13:38:30 -0800 (PST) From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= To: bug-gnu-emacs@gnu.org Subject: 28.0.60; "Args out of range" when completing shell command Date: Sun, 28 Nov 2021 22:38:27 +0100 Message-ID: <87wnksx8oc.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::331 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=kevin.legouguec@gmail.com; helo=mail-wm1-x331.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Hello, This is sort of a garbage-in, garbage-out situation, so I'll just let the reproducer speak for itself: $ emacs -Q M-! ./nosuchcommand C-b TAB - In Emacs 27.1, this simply says "[No match]". - In Emacs 28.0.60, this errors out: > completion--some: Args out of range: "./nosuchcomma", 0, 14 I'm attaching the backtrace obtained with M-x toggle-debug-on-error. I'm not on the most ideal setup for compiling ATM, so I apologize for not bisecting this (and for not trying with 27.2; Debian stable only has 27.1); I'll get to it eventually if no-one beats me. AFAICT it's not a very impactful issue; however, since Emacs now throws an error where it didn't use to, I figure there's a somewhat subtle bug here with consequences I can't quite evaluate. Thanks for your time. --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=args-out-of-range.bt Content-Transfer-Encoding: quoted-printable Debugger entered--Lisp error: (args-out-of-range "./nosuchcomma" 0 14) completion-pcm--find-all-completions("./nosuchcomma" #f(compiled-function= (string pred action) #) nil 13 identity) completion-pcm--find-all-completions("./nosuchcomman" #f(compiled-functio= n (string pred action) #) nil 14 nil) completion-pcm-try-completion("./nosuchcomman" #f(compiled-function (stri= ng pred action) #) nil 14) #f(compiled-function (style) #)(partial-compl= etion) completion--some(#f(compiled-function (style) #) (basic partial-completion emacs22)) completion--nth-completion(1 "./nosuchcomman" #f(compiled-function (strin= g pred action) #) nil 14 (metadata (cycle-sort= -function . #f(compiled-function (comps) #)) (= category . file) (completion--unquote-requote . t))) completion-try-completion("./nosuchcomman" #f(compiled-function (string p= red action) #) nil 14 (metadata (cycle-sort-fu= nction . #f(compiled-function (comps) #)) (cat= egory . file) (completion--unquote-requote . t))) completion--do-completion(# 30) completion--in-region-1(# 30) #f(compiled-function (start end collection predicate) #)(# 30 #f(compiled-function (strin= g pred action) #) nil) apply(#f(compiled-function (start end collection predicate) #) (# 30 #f(compiled-function= (string pred action) #) nil)) #f(compiled-function (funs global args) #)(ni= l nil (# 30 #f(compiled-function (string pred= action) #) nil)) completion--in-region(# 30 #f(compiled-func= tion (string pred action) #) nil) completion-in-region(# 30 #f(compiled-funct= ion (string pred action) #) nil) completion-at-point() funcall-interactively(completion-at-point) call-interactively(completion-at-point nil nil) command-execute(completion-at-point) read-from-minibuffer("Shell command: " nil (keymap (9 . completion-at-poi= nt) keymap (menu-bar keymap (minibuf "Minibuf" keymap (previous menu-item "= Previous History Item" previous-history-element :help "Put previous minibuf= fer history element in the min...") (next menu-item "Next History Item" nex= t-history-element :help "Put next minibuffer history element in the minibuf= ...") (isearch-backward menu-item "Isearch History Backward" isearch-backwa= rd :help "Incrementally search minibuffer history backward") (isearch-forwa= rd menu-item "Isearch History Forward" isearch-forward :help "Incrementally= search minibuffer history forward") (return menu-item "Enter" exit-minibuf= fer :key-sequence "\15" :help "Terminate input and exit minibuffer") (quit = menu-item "Quit" abort-recursive-edit :help "Abort input and exit minibuffe= r") "Minibuf")) (13 . exit-minibuffer) (10 . exit-minibuffer) (7 . abort-mi= nibuffers) (C-tab . file-cache-minibuffer-complete) (9 . self-insert-comman= d) (XF86Back . previous-history-element) (up . previous-line-or-history-ele= ment) (prior . previous-history-element) (XF86Forward . next-history-elemen= t) (down . next-line-or-history-element) (next . next-history-element) (27 = keymap (60 . minibuffer-beginning-of-buffer) (114 . previous-matching-histo= ry-element) (115 . next-matching-history-element) (112 . previous-history-e= lement) (110 . next-history-element))) nil shell-command-history nil) apply(read-from-minibuffer "Shell command: " nil (keymap (9 . completion-= at-point) keymap (menu-bar keymap (minibuf "Minibuf" keymap (previous menu-= item "Previous History Item" previous-history-element :help "Put previous m= inibuffer history element in the min...") (next menu-item "Next History Ite= m" next-history-element :help "Put next minibuffer history element in the m= inibuf...") (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 "Increme= ntally search minibuffer history forward") (return menu-item "Enter" exit-m= inibuffer :key-sequence "\15" :help "Terminate input and exit minibuffer") = (quit menu-item "Quit" abort-recursive-edit :help "Abort input and exit min= ibuffer") "Minibuf")) (13 . exit-minibuffer) (10 . exit-minibuffer) (7 . ab= ort-minibuffers) (C-tab . file-cache-minibuffer-complete) (9 . self-insert-= command) (XF86Back . previous-history-element) (up . previous-line-or-histo= ry-element) (prior . previous-history-element) (XF86Forward . next-history-= element) (down . next-line-or-history-element) (next . next-history-element= ) (27 keymap (60 . minibuffer-beginning-of-buffer) (114 . previous-matching= -history-element) (115 . next-matching-history-element) (112 . previous-his= tory-element) (110 . next-history-element))) nil shell-command-history nil) read-shell-command("Shell command: " nil nil nil) byte-code("\306\10\203\16\0\307\310\311\11!\"\202\17\0\312\313\211\n\206\= 37\0\13\314=3D\205\37\0\315\313\316\"\211\205&\0\317\1!\262\1$\f\15E\207" [= shell-command-prompt-show-cwd default-directory buffer-file-name major-mode= current-prefix-arg shell-command-default-error-buffer read-shell-command f= ormat-message "Shell command in `%s': " abbreviate-file-name "Shell command= : " nil dired-mode dired-get-filename t file-relative-name] 7) call-interactively(shell-command nil nil) command-execute(shell-command) --=-=-= Content-Type: text/plain In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-11-26 built on hirondell Repository revision: 11860f89a593a8cfe7efb94e86370bbbe4318fba Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) Configured using: 'configure --with-xwidgets --with-cairo --with-gconf --with-xinput2' Configured features: ACL CAIRO DBUS FREETYPE GCONF GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 29 10:26:22 2021 Received: (at 52169) by debbugs.gnu.org; 29 Nov 2021 15:26:22 +0000 Received: from localhost ([127.0.0.1]:38905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mriXu-0006PH-HP for submit@debbugs.gnu.org; Mon, 29 Nov 2021 10:26:22 -0500 Received: from quimby.gnus.org ([95.216.78.240]:58942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mriXs-0006Ow-Bw for 52169@debbugs.gnu.org; Mon, 29 Nov 2021 10:26:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=1oKspPoqCa7Ay7gWXwYBGfiJYR4FNRzKbcVkbEYcuwY=; b=ZEAyZ+MZQ59pNldsWNWfCHGpt+ 1g39wlFKtIfYkhrJGFgOs3SWFbMXCk7Lry9QL8NXdVm7l5qzcEgWoH5Nq/sAv2PwqcZt9s09V90K/ 3MARlegU/f3t9xVdBV0YKnTsXjlVerSJPNl7rM33E7Hdpj1lZVa7VkuRVkgjdSL4fphE=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mriXf-0005Zv-47; Mon, 29 Nov 2021 16:26:12 +0100 From: Lars Ingebrigtsen To: =?utf-8?Q?K=C3=A9vin?= Le Gouguec Subject: Re: bug#52169: 28.0.60; "Args out of range" when completing shell command References: <87wnksx8oc.fsf@gmail.com> X-Now-Playing: Mia Doi Todd's _Music Life_: "Music Life (feat. Jeff Parker & Money Mark)" Date: Mon, 29 Nov 2021 16:26:05 +0100 In-Reply-To: <87wnksx8oc.fsf@gmail.com> (=?utf-8?Q?=22K=C3=A9vin?= Le Gouguec"'s message of "Sun, 28 Nov 2021 22:38:27 +0100") Message-ID: <87wnkrvv8y.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Kévin Le Gouguec writes: > $ emacs -Q > M-! ./nosuchcommand C-b TAB > > - In Emacs 27.1, this simply says "[No match]". > - In Emacs 28.0.60, this errors out: > >> completion--some: Args out of range: "./nosuchcomma", 0, 14 Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52169 Cc: 52169@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) K=C3=A9vin Le Gouguec writes: > $ emacs -Q > M-! ./nosuchcommand C-b TAB > > - In Emacs 27.1, this simply says "[No match]". > - In Emacs 28.0.60, this errors out: > >> completion--some: Args out of range: "./nosuchcomma", 0, 14 As far as I can tell, this comes from: (defun completion-basic-try-completion (string table pred point) [...] (let* ((suffix (substring afterpoint (cdr bounds))) (prefix (substring beforepoint 0 (car bounds))) But the length of beforepoint (i.e., "./nosuchcomma") is 13, while (car bounds) is 14. I'm not sure how this all connects up, so I've added Stefan to the CCs. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 29 17:56:16 2021 Received: (at 52169) by debbugs.gnu.org; 29 Nov 2021 22:56:16 +0000 Received: from localhost ([127.0.0.1]:39682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrpZI-0004M4-ER for submit@debbugs.gnu.org; Mon, 29 Nov 2021 17:56:16 -0500 Received: from mail-wr1-f48.google.com ([209.85.221.48]:41665) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrpZH-0004Ls-2x for 52169@debbugs.gnu.org; Mon, 29 Nov 2021 17:56:15 -0500 Received: by mail-wr1-f48.google.com with SMTP id a9so40152401wrr.8 for <52169@debbugs.gnu.org>; Mon, 29 Nov 2021 14:56:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=ozCklHiE/le+CUOjtLblN4RzC2I+JSUHpuf3SgobrFs=; b=lV6XXNcxOc/NN2oVxaSu7SwYINBf7TdgdhPMR8hnBVXOL4+xOBiSwb8eDS6R4JIMSI OJkijigEKFEi4wxODQ22yTVyRbYpKsKq4OqndrUdm4W6J6hCVYb/9h7gsQ9ccl+/LVNg nQsVzX0LGbeuez/Dj/asVVZZWRO9EUbDDhtzUF/QxoONLGLjQpGFMBHqPbc7xLpa0xeL i92l2sd4tF1RykxZ23ZpOgzX2+3DRXqVyBZzqitBmpIsDLebdKkqZrsFc6/xzvMYS8iM ZmDr3aCqcVr+e0vOyGLn8kfWpzb+zyFrIDgmpQcQoX8wqqIjLx07BXQZJvYsj5HjCDlf O1uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=ozCklHiE/le+CUOjtLblN4RzC2I+JSUHpuf3SgobrFs=; b=zZWX6nGh+7WkDB5jxpriL0NEFW7bdUkgm/EMWe8LX13aRt5xvttIlIr7lU5rx0ZKGV 0NPPtHWocIPNjbR+guVlQVagNAtp+7wEkRPKdXMPKbj0WIC8rMjEos6Vlq+4fRD/KF7a jUI8HJ9DRi0Er/rN1JtuMfceJ0BROKBzL29gyWJfDD5EWrQW5YfPCJET1h/amYeA/tos 1x0tzOzzzSMdnWUR+tFmDsRxaaEVdGrLHFO4dYt5equq9mDzFtnvaIIEzRi/8otPZE1J 76GZO5NMyYkhAs8HAm9BTaHNRTu9SNd/3Yq4qd0wGmihQRkUW8+CpqiVo/OKx38HVS6t ACDQ== X-Gm-Message-State: AOAM5323ql0Vz2zYv1W+Vfuw8sjFkiBKvqRZiLZXURAK+7obuMjunGno GfA+/3H8+3N93Kd+lyoZ0uU= X-Google-Smtp-Source: ABdhPJymKbNQnGcu1v3FnaSMOmryqTNaCHKNEMI0ZJ/l3tEalN6sf/AHha7ldTuun3c4dVGO1sC5Sg== X-Received: by 2002:a5d:54c5:: with SMTP id x5mr35117931wrv.607.1638226569024; Mon, 29 Nov 2021 14:56:09 -0800 (PST) Received: from hirondell (host.18.163.23.62.rev.coltfrance.com. [62.23.163.18]) by smtp.gmail.com with ESMTPSA id w2sm14384024wrn.67.2021.11.29.14.56.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 14:56:08 -0800 (PST) From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= To: 52169@debbugs.gnu.org Subject: Re: bug#52169: 28.0.60; "Args out of range" when completing shell command References: <87wnksx8oc.fsf@gmail.com> Date: Mon, 29 Nov 2021 23:56:07 +0100 In-Reply-To: <87wnksx8oc.fsf@gmail.com> (=?utf-8?Q?=22K=C3=A9vin?= Le Gouguec"'s message of "Sun, 28 Nov 2021 22:38:27 +0100") Message-ID: <87sfve7erc.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 52169 Cc: Philipp Stephani , Lars Ingebrigtsen , Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable K=C3=A9vin Le Gouguec writes: > Hello, > > This is sort of a garbage-in, garbage-out situation, so I'll just let > the reproducer speak for itself: > > $ emacs -Q > M-! ./nosuchcommand C-b TAB > > - In Emacs 27.1, this simply says "[No match]". > - In Emacs 28.0.60, this errors out: > >> completion--some: Args out of range: "./nosuchcomma", 0, 14 > > I'm attaching the backtrace obtained with M-x toggle-debug-on-error. > > I'm not on the most ideal setup for compiling ATM, so I apologize for > not bisecting this (and for not trying with 27.2; Debian stable only has > 27.1); I'll get to it eventually if no-one beats me. Alright, if I didn't botch the bisection, then we're looking at 2021-04-23 "Fix small bug in 'completion-table-subvert'." (3806d2168b). Bisection session attached, FWIW. --=-=-= Content-Type: text/plain Content-Disposition: attachment Bisect Log (11) git bisect start '6dabbddb5f' 'b702225619' 6dabbddb5f bad Merge from origin/emacs-27 b702225619 good Merge from origin/emacs-27 git bisect good 3c051db646b34995c144327ed462a92ffbb41f86 3c051db646 good * lisp/files-x.el: Use lexical-binding git bisect good c7555f037ae7194fc331fb65c34c280680028b80 c7555f037a good Fix :scale's affect on :width and :height (bug#47819) git bisect good aaf6b6bf80805d18180e1c16350e9473716f5915 aaf6b6bf80 good Ensure that argument to 'verify' is a constant expression. git bisect bad 21b3ceea3b0321559e9cbdcb034d9c66d3264d89 21b3ceea3b bad ; * etc/NEWS: Fix last change. git bisect bad 3995f0515ab0b0e359f9976d589eed45f38eaa6d 3995f0515a bad Expand documentation on nontrivial completion boundaries. git bisect good 522c34f0e80f60969861b0dc34bc7105249f9994 522c34f0e8 good Remove the binding for xref-quit-and-goto-xref git bisect good 344f769491a84b6d47ee3722054b214167572219 344f769491 good Add support for using a TLS client certificate with 'erc-tls' (bug#47788) git bisect good 804f5acda4bd947f058c6843e373797202314467 804f5acda4 good Revert "Remove the binding for xref-quit-and-goto-xref" git bisect bad 3806d2168bdc36796d2dfac5f743582f0ce71c72 3806d2168b bad Fix small bug in 'completion-table-subvert'. 3806d2168bdc36796d2dfac5f743582f0ce71c72 is the first bad commit --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 30 12:10:59 2021 Received: (at 52169) by debbugs.gnu.org; 30 Nov 2021 17:10:59 +0000 Received: from localhost ([127.0.0.1]:42295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ms6eh-0004Vl-9O for submit@debbugs.gnu.org; Tue, 30 Nov 2021 12:10:59 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:16148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ms6eb-0004VB-1E for 52169@debbugs.gnu.org; Tue, 30 Nov 2021 12:10:53 -0500 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 2530B4413B2; Tue, 30 Nov 2021 12:10:47 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id F333E4413AF; Tue, 30 Nov 2021 12:10:45 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1638292245; bh=p5kWZ1br2/rD/1DNBMmCQvPvn7mJmUr9K6cpXJnq7AY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=AW88oyw2SdSTxPttMMS1mkfzwH19npPcUrpMBCEqlsYrVvZYf+xYIfe2bFWg6p3H/ XKasWSZVCSMTCylCEofIzjJihS+a8GgenJM2HeIP3IcVGcvw6zScjghl30VqvKcEnb LLw4enDP67IPO66toOI+hr86KzTJ/qtUaPIp0DG5lH7eZY/GkdungCCZ4DBA4oFWoe olbqPwBbXZHfEOXVagXlafiPOUgL8ElPGb3N1nyjjvYSVktK1CW2zjbvxPc9mkQzP8 D2Pr6b85nISDNWCdX7fXxTshNcQ+a/bNSz9+56crhMq5cM4QpmDHCZNj7aa0YmwhxG lR0ihHY84+Qxg== Received: from alfajor (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E29DE1209C1; Tue, 30 Nov 2021 12:10:45 -0500 (EST) From: Stefan Monnier To: Lars Ingebrigtsen Subject: Re: bug#52169: 28.0.60; "Args out of range" when completing shell command Message-ID: References: <87wnksx8oc.fsf@gmail.com> <87wnkrvv8y.fsf@gnus.org> Date: Tue, 30 Nov 2021 12:10:45 -0500 In-Reply-To: <87wnkrvv8y.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 29 Nov 2021 16:26:05 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.161 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52169 Cc: 52169@debbugs.gnu.org, =?windows-1252?Q?K=E9vin?= Le Gouguec X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > I'm not sure how this all connects up, so I've added Stefan to the CCs. I'll try and look at it ASAP, Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 04 00:09:23 2021 Received: (at 52169) by debbugs.gnu.org; 4 Dec 2021 05:09:23 +0000 Received: from localhost ([127.0.0.1]:52767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtNIZ-0003Z6-Fr for submit@debbugs.gnu.org; Sat, 04 Dec 2021 00:09:23 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:51802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtNIU-0003Yq-CJ for 52169@debbugs.gnu.org; Sat, 04 Dec 2021 00:09:21 -0500 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 68E80440147; Sat, 4 Dec 2021 00:09:12 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 18099440037; Sat, 4 Dec 2021 00:09:11 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1638594551; bh=NoBh1avZvxshvZlWa4jNEPfcMwQtyS3ShCzv9L4QLPo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=bC1j/5OW3iQVRpUePjwHIfVwF6N8sEWjqm/8NDVpQmgMK7WNYkWS9e3cyj+YbUVEp 8SazadvsKXCUUlz0CWqSEQjDQSA2AAuSG1KiOViw10QrdY0MOB7YiqbJQomPiEqEUP HTDLvJQMFNJ5ZAl6pJtP1OlJkoij1vNc5TEw8QaYPlklLp6JFbfR9LH7VmsxcS8wrn TYk9JWaBb1E4UYwKOPgKa6LETOZudywFtNWEuc98T9YSeD6IzBg0xczjj+XdJO87/P RCzS1cDMMyXwCpXJV6v+IEpG4UTZcDt2NOJsa58k+6UWPVuLgELbg4jAxPd+Ph4OrV +DvmkwBepNiBg== Received: from pastel (unknown [216.154.30.173]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id C056612091C; Sat, 4 Dec 2021 00:09:10 -0500 (EST) From: Stefan Monnier To: Lars Ingebrigtsen Subject: Re: bug#52169: 28.0.60; "Args out of range" when completing shell command Message-ID: References: <87wnksx8oc.fsf@gmail.com> <87wnkrvv8y.fsf@gnus.org> Date: Sat, 04 Dec 2021 00:09:09 -0500 In-Reply-To: <87wnkrvv8y.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 29 Nov 2021 16:26:05 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.053 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52169 Cc: 52169@debbugs.gnu.org, =?windows-1252?Q?K=E9vin?= Le Gouguec X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >> $ emacs -Q >> M-! ./nosuchcommand C-b TAB >> >> - In Emacs 27.1, this simply says "[No match]". >> - In Emacs 28.0.60, this errors out: >> >> > completion--some: Args out of range: "./nosuchcomma", 0, 14 Yuck! This is one of those cases where the mismatch between the assumptions of pcomplete and the featureset of minibuffer.el clash: `pcomplete-stub` tells us we're completing "./nosuchcommand" but without telling us where that string comes from in the buffer, so we fail to find "./nosuchcommand" just before point (because the "d" is *after* point) and thus fall back on the worst-case handler which doesn't behave well at all here. I pushed to `master` a fix for the immediate cause of the `Args out of range` error, which seems to brings us back to Emacs-27's poor behavior. Maybe it's good enough for `emacs-28` as well, but I have to think about this problem a bit more. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 04 12:17:01 2021 Received: (at 52169) by debbugs.gnu.org; 4 Dec 2021 17:17:01 +0000 Received: from localhost ([127.0.0.1]:54823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtYej-0003Y7-BK for submit@debbugs.gnu.org; Sat, 04 Dec 2021 12:17:01 -0500 Received: from mail-wr1-f46.google.com ([209.85.221.46]:42549) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtYeh-0003Xu-Jr for 52169@debbugs.gnu.org; Sat, 04 Dec 2021 12:17:00 -0500 Received: by mail-wr1-f46.google.com with SMTP id c4so12734592wrd.9 for <52169@debbugs.gnu.org>; Sat, 04 Dec 2021 09:16:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=gh4rKKGJkL4bV2UKS6Deq7H3t+CGJWybvuPM6QQYZHA=; b=J/B0gDv/v7+MhDHuM8coD+xnwbX3Aur2buXx5sNqwM1ANkvP0HeVJeEYJrqjq9U9v7 +ULENkW1YGC4z+vZKoxTINibEGFIldOpDrFK2K+NWRBbDmUzZRWRMlNpW1lECco0p/lK jv329p2ODfx5L/4CQ5S1HAWWTwrOEwiaYL068CPkj5eGU68co7es0gdRR/6MZlzt0TVS 3IqfmisYtEvO9lXF9ZQ0+aOcpT9duE9D2zy4Bpx4YS68qv5IQjxj+/WimaOAZ3ampNb3 mueVpoyzxVgVv/WmjUHsEEfWRNpXkUmN6p9kaAp+W32RlMOckYMAKzGi9OOm9cFkO6wp +50w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=gh4rKKGJkL4bV2UKS6Deq7H3t+CGJWybvuPM6QQYZHA=; b=chenI7oUAK3FWRl69lX9En1dzs61nevkWFbmPdfmJvoLanqYtbQyDjVNB2Q0CUSe/l 0nsHEf+chXvLuU2iSqHzWVhXbJwJm6ttm7U/xB2umNLjfT1T/IuFPkhPR0ePzRI2FlAS oOAByEFm7XE0sOPT/Uo+X8s33Mh2jiBCatHGaPpY79milRZEwG2vJp0aH7cpab8VctBl 1N+p3mmdXYrYBpGpL1pvhqti5civkGKQ5AtGKmamE3XpNle9bx8sc7phYiBH39m0ledT PPbRXqc/JJe7mzQnWEl/Xq5jLprk12qkxiiY/B6Tp59I2AwdsjpV0XMJ4tSKsZ+k4Sur ZlFQ== X-Gm-Message-State: AOAM530DU1saAD9r6yRM3NE5ikb8nbmk8M9tvqTwbbDOUXNVDSVRY3RW iBJwlnPMnWGz1J6PsQKVz57sqHLMads= X-Google-Smtp-Source: ABdhPJzs8vqD+756WVFYDRWhUNQPHosYGJDikNG7SUWG2bPixB2NlKAym0pWqoA4bMEXHKVrn6MGog== X-Received: by 2002:adf:dc8c:: with SMTP id r12mr30968751wrj.510.1638638213684; Sat, 04 Dec 2021 09:16:53 -0800 (PST) Received: from hirondell (2a01cb040b3a3800520faa2f5792037c.ipv6.abo.wanadoo.fr. [2a01:cb04:b3a:3800:520f:aa2f:5792:37c]) by smtp.gmail.com with ESMTPSA id m14sm8720832wrp.28.2021.12.04.09.16.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Dec 2021 09:16:51 -0800 (PST) From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= To: Stefan Monnier Subject: Re: bug#52169: 28.0.60; "Args out of range" when completing shell command References: <87wnksx8oc.fsf@gmail.com> <87wnkrvv8y.fsf@gnus.org> Date: Sat, 04 Dec 2021 18:16:50 +0100 In-Reply-To: (Stefan Monnier's message of "Sat, 04 Dec 2021 00:09:09 -0500") Message-ID: <87czmcguil.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 52169 Cc: Lars Ingebrigtsen , 52169@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Monnier writes: > I pushed to `master` a fix for the immediate cause of the `Args out of > range` error, which seems to brings us back to Emacs-27's poor behavior. Can confirm, thanks! > Maybe it's good enough for `emacs-28` as well, but I have to think about > this problem a bit more. OK; leaving this open for the time being then. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 05 23:24:32 2021 Received: (at 52169) by debbugs.gnu.org; 6 Dec 2021 04:24:32 +0000 Received: from localhost ([127.0.0.1]:60214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mu5YG-0004BF-0z for submit@debbugs.gnu.org; Sun, 05 Dec 2021 23:24:32 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:62870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mu5YB-0004B0-V5 for 52169@debbugs.gnu.org; Sun, 05 Dec 2021 23:24:30 -0500 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id A98B980558; Sun, 5 Dec 2021 23:24:21 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 514E28051E; Sun, 5 Dec 2021 23:24:20 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1638764660; bh=KG5+64nEUh27FSNvcCMJDy3/5rvA8wscd37RT9L5Mk4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=VidRoWdU0cy5MYIiNae9Fm34cytGRJXQV7xAuDccYIL1ZmKt744B1M2lbuQPKyAFm IxUWKCc4I9tbOpT9P3vIi3oFdpAybocO9GMk1A6ge0I9fcUjkD5Pdz42EV5EXDK1fL XyuFi9ExXJsC2qSYRM/Pwv86W0PILuqqc3jbtbFmFsDOIp6zhHnkdXTjdcUfxNMBsq JajR+1AcoXqgAuSWAQbQ6Ec53cbVGlvxBAfp668ey/1wdQLs0xcnZXRIy9cgvqW3ME x9gGNWuVrAOHZP0nFSCWZScrCmjV9vItjeX9ixDZxzXD1gaoND5w1HTMvAaeieawyH WjNcUbBC0t+Cg== Received: from pastel (unknown [216.154.30.173]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1BB1B120BB1; Sun, 5 Dec 2021 23:24:20 -0500 (EST) From: Stefan Monnier To: Lars Ingebrigtsen Subject: Re: bug#52169: 28.0.60; "Args out of range" when completing shell command Message-ID: References: <87wnksx8oc.fsf@gmail.com> <87wnkrvv8y.fsf@gnus.org> <87czmcguil.fsf@gmail.com> Date: Sun, 05 Dec 2021 23:24:13 -0500 In-Reply-To: <87czmcguil.fsf@gmail.com> (=?windows-1252?Q?=22K=E9vin?= Le Gouguec"'s message of "Sat, 04 Dec 2021 18:16:50 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.090 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52169 Cc: 52169@debbugs.gnu.org, =?windows-1252?Q?K=E9vin?= Le Gouguec X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) K=E9vin Le Gouguec [2021-12-04 18:16:50] wrote: > Stefan Monnier writes: >> I pushed to `master` a fix for the immediate cause of the `Args out of >> range` error, which seems to brings us back to Emacs-27's poor behavior. > Can confirm, thanks! Thanks. >> Maybe it's good enough for `emacs-28` as well, but I have to think about >> this problem a bit more. > OK; leaving this open for the time being then. Hmm, I can't think of a good way to make it work correctly without significant changes to `pcomplete.el` and its API. For `emacs-28`, I propose the patch below, which is a slightly improved version of the patch currently on `master`. As before, it won't fix the real problem, but will avoid "Args out of range" and revert to the behavior we had in Emacs-27 (which was/is broken, but tends to be milder for the user). Any objection? Stefan diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index ca82b4a9e60..21d610fdf44 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -283,8 +283,9 @@ completion-table-subvert ((eq (car-safe action) 'boundaries) (let ((beg (or (and (eq (car-safe res) 'boundaries) (cadr res)) = 0))) `(boundaries - ,(max (length s1) - (+ beg (- (length s1) (length s2)))) + ,(min (length string) + (max (length s1) + (+ beg (- (length s1) (length s2))))) . ,(and (eq (car-safe res) 'boundaries) (cddr res))))) ((stringp res) (if (string-prefix-p s2 res completion-ignore-case) From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 06 00:15:48 2021 Received: (at 52169) by debbugs.gnu.org; 6 Dec 2021 05:15:48 +0000 Received: from localhost ([127.0.0.1]:60277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mu6Lr-0005Ya-UE for submit@debbugs.gnu.org; Mon, 06 Dec 2021 00:15:48 -0500 Received: from quimby.gnus.org ([95.216.78.240]:60348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mu6Lq-0005YN-2b for 52169@debbugs.gnu.org; Mon, 06 Dec 2021 00:15:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=XbULTv0jzBxIg5bB1SD3Fg+QsbGGAipar8BsQV1h1P0=; b=YhLdBrlBfVSed1xkweuzRE2r9X N0MyJh+xTo1O82Hb4MrCotFZijafUuXsP8454SJ1IJGQWlptVqy6D+sAheMxwGzkei00cuNOqmDp0 f1Sfwprs2sU7BFYYpVZxYCRk2hDHh1YwaZhHaZLZ/kuPYsP4EySIgIUMh+mIjVVYKDM0=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mu6Lg-0002Gh-9z; Mon, 06 Dec 2021 06:15:39 +0100 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#52169: 28.0.60; "Args out of range" when completing shell command References: <87wnksx8oc.fsf@gmail.com> <87wnkrvv8y.fsf@gnus.org> <87czmcguil.fsf@gmail.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEWjYJnVRnfUW6S5 PE/SiFNPNkbNprfn19v////QDqkyAAAAAWJLR0QIht6VegAAAAd0SU1FB+UMBgUPGhb3tRIAAAFz SURBVDjLldO9boMwEADgCxLJbKOSNTYqO5B0rhQegDZ1Z6sSZkUdzOv3sLExhKjKjXzcjzEHO0J4 UtVXvgpAINW5vlL/6CQaISILdV3PkAnh4LwAzHGlEK7lRo+kwig2oDJB7yCxUDwN1cYBCVs1cEAR GOfKxCIjK1muBhs6AJ6V+eBjmZF35qHsFhkIR/t2u4aP1FdaQ+ehDCApjnNG9ACG3wBeglIeGCPk dRsolkqVP7l2pTjFYmnnwWdw/LoEM1S3gHG4EWKl9oseZmpG03hvuuhB9tEMnKbSdtda9J8B8Hzq oXsh70D9A+2jUi08BT32eAhTD+pAG9CuOd4HDTKUEtDMF0WIhW6QCD6DVJfbm/0/Va9w/zhMgMv4 pe0BZRcj/EQWcBGKd4jHbW0Q8DufAHaUmSYXYaKR8Q1yZc8x/g4OcCZsoGTuDphUDsRNfI+1JuAM pmhFc8BJEPJww05g7hEhXC8DByUBHAQEOBngwH9ep/uqWyemngAAACV0RVh0ZGF0ZTpjcmVhdGUA MjAyMS0xMi0wNlQwNToxNToyNiswMDowMEKLw7EAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMTIt MDZUMDU6MTU6MjYrMDA6MDAz1nsNAAAAAElFTkSuQmCC X-Now-Playing: The Cure's _Three Imaginary Boys (1)_: "Grinding Halt" Date: Mon, 06 Dec 2021 06:15:35 +0100 In-Reply-To: (Stefan Monnier's message of "Sun, 05 Dec 2021 23:24:13 -0500") Message-ID: <87lf0ypb48.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: > For `emacs-28`, I propose the patch below, which is a slightly improved > version of the patch currently on `master`. As before, it won't fix the > real problem, but will avoid "Args out of range" a [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52169 Cc: 52169@debbugs.gnu.org, =?utf-8?Q?K=C3=A9vin?= Le Gouguec X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Monnier writes: > For `emacs-28`, I propose the patch below, which is a slightly improved > version of the patch currently on `master`. As before, it won't fix the > real problem, but will avoid "Args out of range" and revert to the > behavior we had in Emacs-27 (which was/is broken, but tends > to be milder for the user). Sounds good to me. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 06 07:56:47 2021 Received: (at 52169) by debbugs.gnu.org; 6 Dec 2021 12:56:48 +0000 Received: from localhost ([127.0.0.1]:60765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muDXz-0007WB-Oh for submit@debbugs.gnu.org; Mon, 06 Dec 2021 07:56:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muDXy-0007Vx-G2 for 52169@debbugs.gnu.org; Mon, 06 Dec 2021 07:56:46 -0500 Received: from [2001:470:142:3::e] (port=49746 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muDXt-0002Mi-3Q; Mon, 06 Dec 2021 07:56:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=uDRUWkr8KcjeB9BggQM/rXzzNcuPq2rl5RbtC7Hp0D8=; b=AMtjv6HKlWkAXbSL4Tb1 NJ7dE+EgL5Qz1wMqJMHMZjg5qjcA2EHSaHv1qkkvJh8qCIr1+jFZUg6IJHX0G6Kx3X33RkE6kOn4Y ZUAPHG+AoAsS6ZA2u8CB0Sb2dyROBAjwRlKKr3IPK59KWxH4RDdiCb4+w1Glj5ApfwNrwoiICtchj F5/jTFGvhwpIXmnpzrYYkwihET+eGaS5rdwlfauxuOK+U2w3g4lRuci84+A7Y2bhnxkSh+yJExAlE 4pIz4k3zeBBulzoe9uLasRJ6VwIjjU6Ig/KmeoAM/w3OTX1tVEi1xwpj0DRc8MgtECjnQG7lTKEqg QIj8BmjnGB75SA==; Received: from [87.69.77.57] (port=1899 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muDXs-0007W0-Sn; Mon, 06 Dec 2021 07:56:41 -0500 Date: Mon, 06 Dec 2021 14:56:38 +0200 Message-Id: <831r2p3n95.fsf@gnu.org> From: Eli Zaretskii To: Stefan Monnier In-Reply-To: (bug-gnu-emacs@gnu.org) Subject: Re: bug#52169: 28.0.60; "Args out of range" when completing shell command References: <87wnksx8oc.fsf@gmail.com> <87wnkrvv8y.fsf@gnus.org> <87czmcguil.fsf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52169 Cc: larsi@gnus.org, 52169@debbugs.gnu.org, kevin.legouguec@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: 52169@debbugs.gnu.org, > Kévin Le Gouguec > Date: Sun, 05 Dec 2021 23:24:13 -0500 > From: Stefan Monnier via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > For `emacs-28`, I propose the patch below, which is a slightly improved > version of the patch currently on `master`. As before, it won't fix the > real problem, but will avoid "Args out of range" and revert to the > behavior we had in Emacs-27 (which was/is broken, but tends > to be milder for the user). > > Any objection? Not from me, thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 06 09:45:26 2021 Received: (at 52169-done) by debbugs.gnu.org; 6 Dec 2021 14:45:26 +0000 Received: from localhost ([127.0.0.1]:60938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muFF8-0004Di-1x for submit@debbugs.gnu.org; Mon, 06 Dec 2021 09:45:26 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:49936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muFF7-0004DT-Cf for 52169-done@debbugs.gnu.org; Mon, 06 Dec 2021 09:45:25 -0500 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id BFA09805B1; Mon, 6 Dec 2021 09:45:19 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 8D464801B5; Mon, 6 Dec 2021 09:45:18 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1638801918; bh=1Hj3ZWqEP8po2RcvS4I4YJhg1HM8q3L9vffRJXOcSGI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=lmFnGvTlm4ZtlDHUE8hjAh2vMK3MCwIH0DlV6A3jigF7mj/wked+6bb4q6fw9cdK5 uG9xAO4pClokPsU1m5uhsBMBzHTOHanlDc7zTITFjv74LqRH6N/tFhn6a+mH3IsTcP og+YVEv3czW629vAKDPaI3z9WAHxXf5tz2LHCMVARMM1r5fpNEYkpyCUUbm3KAD/8I o6dTY3SpZCGqkYs+DOszkosxE+1aCIYfOBjM/dYBkqlSyq8AE5nHCDltVI7e1pF/FL 3QW8J7xrqskmcmTOQk9LaHgXqzRRUF3X8rYt0WvNddOSfHNrqWAZhHlmoKibRh29NC VkSZgfNTytVtQ== Received: from ceviche (unknown [216.154.30.173]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 5A79B1201B0; Mon, 6 Dec 2021 09:45:18 -0500 (EST) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#52169: 28.0.60; "Args out of range" when completing shell command Message-ID: References: <87wnksx8oc.fsf@gmail.com> <87wnkrvv8y.fsf@gnus.org> <87czmcguil.fsf@gmail.com> <831r2p3n95.fsf@gnu.org> Date: Mon, 06 Dec 2021 09:45:01 -0500 In-Reply-To: <831r2p3n95.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 06 Dec 2021 14:56:38 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.090 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52169-done Cc: larsi@gnus.org, 52169-done@debbugs.gnu.org, kevin.legouguec@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >> Any objection? > Not from me, thanks. Pushed, thanks, Stefan From unknown Wed Jun 18 23:10:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 04 Jan 2022 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator