From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#74090: 31.0.50; Problems with dabbrev-expand Date: Fri, 29 Nov 2024 09:51:57 +0200 Organization: LINKOV.NET Message-ID: <87h67q4gv6.fsf@mail.linkov.net> References: <878qu6j0tx.fsf@gmx.net> <86zfml4uay.fsf@gnu.org> <87cyjgwq1a.fsf@gmx.net> <87ttbq7eie.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4929"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , 74090@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 29 08:55:31 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tGvqd-00016H-EC for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Nov 2024 08:55:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGvqG-0003I3-A6; Fri, 29 Nov 2024 02:55:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tGvqA-0003FM-Fa for bug-gnu-emacs@gnu.org; Fri, 29 Nov 2024 02:55:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tGvqA-0008Jn-6Y for bug-gnu-emacs@gnu.org; Fri, 29 Nov 2024 02:55:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=cLgSo/Dg+tS/IPpWjZGPgPblMAyBszE7QGsCpcUCxJM=; b=C39ARoHPolUt8nqeWaiOYYg11NTCEt1/I7qRSNUPqovr2zYl77MotmN0ufvkThAvILiCrTyFSrTc7xQjSMRaONTs/4sF000mEMxil3Y1ivrsO6W/3VMRsvwgJ4cqQIirYUjckmkEKMkIGZ8kR2OREhMcZyzE+vbsoRZZzJTnGZvqf+BxG6YrcaA2G4uMCmp346jryLjE0oVlmsHWlw6T9zyXCY7vNpRlBMFpkr5OZ11P9asUvwFnqg1uI8CF4GLLnDtG2I8Hd2b7CIwVxl1uHQUlzlecDoiyOOMY6JsnhnR002Th1Qj5L2Z+Fuxz5cyxgRUPf/xBlapJv+uHsEe+Ww==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tGvqA-0000R8-0Z for bug-gnu-emacs@gnu.org; Fri, 29 Nov 2024 02:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Nov 2024 07:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74090 X-GNU-PR-Package: emacs Original-Received: via spool by 74090-submit@debbugs.gnu.org id=B74090.17328668971662 (code B ref 74090); Fri, 29 Nov 2024 07:55:01 +0000 Original-Received: (at 74090) by debbugs.gnu.org; 29 Nov 2024 07:54:57 +0000 Original-Received: from localhost ([127.0.0.1]:40798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGvq4-0000Qj-VA for submit@debbugs.gnu.org; Fri, 29 Nov 2024 02:54:57 -0500 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:46203) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGvq3-0000QI-86 for 74090@debbugs.gnu.org; Fri, 29 Nov 2024 02:54:55 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id B904CE0006; Fri, 29 Nov 2024 07:54:28 +0000 (UTC) In-Reply-To: <87ttbq7eie.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 29 Nov 2024 08:14:33 +0200") X-GND-Sasl: juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296081 Archived-At: > I don't remember seeing such backtrace before this change. > But now occasionally an error is raised on typing 'M-/': > > Debugger entered--Lisp error: (error "Selecting deleted buffer") > set-buffer(#) > (save-current-buffer (set-buffer buf) (if (and (or (eq (current-buffer) dabbrev--last-buffer) ... > dabbrev-expand(nil) > funcall-interactively(dabbrev-expand nil) > command-execute(dabbrev-expand) > > because can't set the killed buffer 'buf' here: > > (with-current-buffer buf > (if (and (or (eq (current-buffer) dabbrev--last-buffer) > (null dabbrev--last-buffer) > (buffer-live-p dabbrev--last-buffer)) > (numberp dabbrev--last-expansion-location) > (and (> dabbrev--last-expansion-location (point)))) > (setq dabbrev--last-expansion-location > (copy-marker dabbrev--last-expansion-location)))) > > It's difficult to debug because the buffer is already killed at this point. > But looking at the logic of backtrace, here is a reproducible test case: > > 0. emacs-29 -Q > 1. C-x b foo RET > 2. Type: abc SPC abd > 3. C-x b *scratch* RET > 4. Type: ab M-/ > 5. C-x k foo RET > 6. Type: SPC ab M-/ Sorry, I meant emacs-30, not emacs-29.