From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.bugs Subject: bug#19392: Emacs searches for dabbrevs in archive buffers Date: Tue, 13 Jul 2021 23:16:44 +0200 Message-ID: References: <871r82qe5v.fsf@gnus.org> <878s2aowlm.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e2f06605c707c1af" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25584"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 19392@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 13 23:18:17 2021 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 1m3PnF-0006ST-6J for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Jul 2021 23:18:17 +0200 Original-Received: from localhost ([::1]:49660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3PnC-00077n-Qi for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Jul 2021 17:18:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3Pn0-00076v-QP for bug-gnu-emacs@gnu.org; Tue, 13 Jul 2021 17:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58902) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3Pn0-000675-He for bug-gnu-emacs@gnu.org; Tue, 13 Jul 2021 17:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m3Pn0-0001Bs-BM for bug-gnu-emacs@gnu.org; Tue, 13 Jul 2021 17:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Jul 2021 21:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19392 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 19392-submit@debbugs.gnu.org id=B19392.16262110234509 (code B ref 19392); Tue, 13 Jul 2021 21:18:02 +0000 Original-Received: (at 19392) by debbugs.gnu.org; 13 Jul 2021 21:17:03 +0000 Original-Received: from localhost ([127.0.0.1]:42215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3Pm2-0001Af-Mf for submit@debbugs.gnu.org; Tue, 13 Jul 2021 17:17:02 -0400 Original-Received: from mail-ed1-f53.google.com ([209.85.208.53]:41609) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3Pm0-0001A7-KO for 19392@debbugs.gnu.org; Tue, 13 Jul 2021 17:17:01 -0400 Original-Received: by mail-ed1-f53.google.com with SMTP id w14so88806edc.8 for <19392@debbugs.gnu.org>; Tue, 13 Jul 2021 14:17:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1I67rtH4UhBalyYVYIizKbjFuN9d/WTNC8mUiPeWxME=; b=LQHBCBE0uLuwRwjJdojAPraDS97W9ngFGZs5kG5maS1NfC+iZYmgH87IbI1E3c8chV AvE6Vic7UrirX0MgK9SeU894rrNc8hzehQEtLcw4yq+hyQ+eBjzOD30Bd9Je7ZbdSNHs hNbYxBcuuLv+1Y5l9xt8/2ZgqOvE3gtJg2Q3r/dC25LkKK0/3hI8Ht4S+Ad++ZofLSum ukc/RIVXWFrJy390PnmEnnIrslburbxAPQCvSw0qh8ZShAnupejXeZJ/ubI1z/yvybnl EDraPskrYHU7tzu4/gIpJ5ckodkHUcbUfoGZBBN3vdpVEa7XJRvqWl9OVct0z/nVAqij zWhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1I67rtH4UhBalyYVYIizKbjFuN9d/WTNC8mUiPeWxME=; b=AkDgCaBI2NzoB4LOjmH0b7azJmAkJtoaN7HOeezD5BLEbn8J63BgcMfsrdaFDjwUb5 /Nwz3Yyr0RZ2ZVaB0KX7HLkA3SLLi2vdbxheTnDO7pnlGTd5sRXHnr+WIeQthkchanvn MO6odcRPCryMyhJwwOf5MDCFu3jtQqXUxVZs194uJfTj9IIjPkv7JZge/ksNLeTxJ8Ca RnCJ9keNWvrJyVCcRg7s9GL+7+c6rcvbfc4lFdXoCk5ElLE5kLaCUrUzHBUBgCNzN5WQ sIhvQ4IWksWc200xTXSFLqydbvyZjBDlZgliD96IWM77vPh9QG81K8LJBN6XYmD1RRln JuDQ== X-Gm-Message-State: AOAM533h5RnXuUPUsLclPtDhxpOG/1Bi1AlFcIkjL79qisQr5qbC0mAL hJN5SISxWUZM0ND79A76rQw7ThQtvcnAdrsbGQ== X-Google-Smtp-Source: ABdhPJx1xmp/xaI1CxSr+OWqGe0KVsv5eG7iy6eIrvWfski/3bTJy26nt7M/EvZ8Z60zxkYwi/QX9Vdod4sx8Dr8znA= X-Received: by 2002:a05:6402:48f:: with SMTP id k15mr8370578edv.262.1626211015126; Tue, 13 Jul 2021 14:16:55 -0700 (PDT) In-Reply-To: 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" Xref: news.gmane.io gmane.emacs.bugs:209883 Archived-At: --000000000000e2f06605c707c1af Content-Type: text/plain; charset="UTF-8" Zipping binary data was not a good idea, but at least string "PK" doesn't come from the archived "random.bin". You can create another test `.zip' file by archiving a text file, to be sure. Paul On Tue, 13 Jul 2021 at 23:12, Paul Pogonyshev wrote: > $ emacs -Q random.zip > > 1. Switch to buffer "*scratch*" > 2. Type "P" (without quotes) > 3. Press M-/ > 4. Here it finds expansion "PK" from buffer "random.zip". Cycling > with M-/ finds a few more, which are more binary-like. > > On Tue, 13 Jul 2021 at 21:14, Lars Ingebrigtsen wrote: > >> Paul Pogonyshev writes: >> >> > Apparently not from tarballs anymore, but still e.g. from a `.zip' >> > archive. Though I have Emacs 27.1 here, not 28. >> >> I tried visiting a zip file here now (in Emacs 27.1), but I was unable >> to make dabbrev-expand expand to any of the strings in the raw zip file. >> >> Do you have a recipe, starting from "emacs -Q", to reproduce the bug? >> (Including a test zip file, I guess.) >> >> -- >> (domestic pets only, the antidote for overdose, milk.) >> bloggy blog: http://lars.ingebrigtsen.no >> > --000000000000e2f06605c707c1af Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Zipping binary data was not a good idea, but at least stri= ng "PK" doesn't come from the archived "random.bin"= . You can create another test `.zip' file by archiving a text file, to = be sure.

Paul

=
On Tue, 13 Jul 2021 at 23:12, Paul Po= gonyshev <pogonyshev@gmail.com> wrote:
$ emacs -Q random.zip

1. Switch to buffer "*scratch*"
2. Type = "P" (without quotes)
3. Press M-/
4. Here it finds expansio= n "PK" from buffer "random.zip".=C2=A0 Cycling
=C2= =A0 =C2=A0with M-/ finds a few more, which are more binary-like.
<= /div>
Paul Pogonyshev <pogonyshev@gmail.com> w= rites:

> Apparently not from tarballs anymore, but still e.g. from a `.zip'=
> archive. Though I have Emacs 27.1 here, not 28.

I tried visiting a zip file here now (in Emacs 27.1), but I was unable
to make dabbrev-expand expand to any of the strings in the raw zip file.
Do you have a recipe, starting from "emacs -Q", to reproduce the = bug?
(Including a test zip file, I guess.)

--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no
--000000000000e2f06605c707c1af--