From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74090: 31.0.50; Problems with dabbrev-expand Date: Wed, 30 Oct 2024 15:03:17 +0200 Message-ID: <86zfml4uay.fsf@gnu.org> References: <878qu6j0tx.fsf@gmx.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16468"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74090@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 30 14:04: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 1t68NC-00045y-Uf for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Oct 2024 14:04:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t68Mn-0006En-O8; Wed, 30 Oct 2024 09:04:05 -0400 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 1t68Mk-0006Dq-Hk for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2024 09:04:02 -0400 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 1t68Mk-00081z-7w for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2024 09:04:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=He0ISJNwis9yi+QGyXbhjylEBno70OvUAJ8KhvJZOfA=; b=L9ElDu5rY8mhQoXtt4rLZg9WAayKTdBNI/TgC/kFPuGNaQaYrPBN2UUlFKwYIVIUW6JDTNbSylIvRUA3WRIa1y4qdjkFshJ5q3o0tSmi3mxvo5sZUWF0Zq6zJpzCI8zsOSZKVeLVazzlFU1j4fKTCtcTbGL0kowabCsXNxtvR5nbLuQiNPuVljt/2zPZ3eUUZwN9FFzmTtfx/LqEbSEu5MchEtQtZnSkj3Y9U5KLGyqAR6Bf2blsZXDRZClMLsuDeTPUYOVJGsIL+kzjWACkPtMi0HphpgGL7Xfz7wF8qJZO6l5qGipBsrY4e69raa73WRZCBwejtdyrph1ulMSOLA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t68Mk-0000ch-0K for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2024 09:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Oct 2024 13:04: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.17302934092377 (code B ref 74090); Wed, 30 Oct 2024 13:04:01 +0000 Original-Received: (at 74090) by debbugs.gnu.org; 30 Oct 2024 13:03:29 +0000 Original-Received: from localhost ([127.0.0.1]:34985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t68MD-0000cG-0Q for submit@debbugs.gnu.org; Wed, 30 Oct 2024 09:03:29 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t68MB-0000c4-4F for 74090@debbugs.gnu.org; Wed, 30 Oct 2024 09:03:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t68M5-0007wm-AX; Wed, 30 Oct 2024 09:03:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=He0ISJNwis9yi+QGyXbhjylEBno70OvUAJ8KhvJZOfA=; b=pFVJMXliMSV4 IR2ednl3hz+wweVvnd56JdTjIDEi6ryr7HGjrih+IA0F4yr2zJdiYjmk1VxmrtLnXFdZ3RPJdX/+X tr+wmVLF4AFVUSEmKh1YSCx9Ch/ePA660upAEpsMJDIP9164VHebtmFe25TPzBzCzP0eNxvl+FXGW tK6KRxLXPgrs8Qb1pigZXYhsh+djQb4RyiL3BgWuG5xfw9GAEBYFGAhDJqEw24uhYYoG7VXVmeUm+ 4rYSvhYHmsnBgHd/T7oQilO6bwQQlNK7zMGl05nc/6U98lGBS9gj/9sX0Nju6kXipLRsIjsNHNYZc RESNU0dUJWe7avOkqlOOfQ==; In-Reply-To: <878qu6j0tx.fsf@gmx.net> (bug-gnu-emacs@gnu.org) 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:294558 Archived-At: > Date: Tue, 29 Oct 2024 18:06:18 +0100 > From: Stephen Berman via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > >From my debugging of these problems, I think they arise because the code > in dabbrev-expand that sets up looking for an expansion (either > directly, or after a space, or as a replacement for the current > expansion) wrongly using positions in the buffer from which > dabbrev-expand was invoked instead of the buffer in which the expansion > is found. The attached patch fixes these problems, according to my > tests. The patch includes comments justifying or at least motivating > the changes. Thanks, feel free to install on the emacs-30 branch. > + ;; Comparing with point only makes sense in the buffer > + ;; where we called dabbrev-exand, but if that differs ^^^^^^^^^^^^^ Typo.