From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.bugs Subject: bug#19392: Emacs searches for dabbrevs in archive buffers Date: Tue, 16 Dec 2014 10:32:13 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113fbcc4b3506b050a5208af X-Trace: ger.gmane.org 1418722399 6562 80.91.229.3 (16 Dec 2014 09:33:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2014 09:33:19 +0000 (UTC) To: 19392@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 16 10:33:12 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y0oVD-00075y-6c for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Dec 2014 10:33:11 +0100 Original-Received: from localhost ([::1]:43702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0oVA-0007zy-Gy for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Dec 2014 04:33:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0oV6-0007zq-3R for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 04:33:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0oV5-0005tP-1Y for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 04:33:04 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0oV4-0005tL-UJ for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 04:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y0oV4-0000o7-LB for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 04:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Dec 2014 09:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19392 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14187223393050 (code B ref -1); Tue, 16 Dec 2014 09:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Dec 2014 09:32:19 +0000 Original-Received: from localhost ([127.0.0.1]:47432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0oUM-0000n8-Uc for submit@debbugs.gnu.org; Tue, 16 Dec 2014 04:32:19 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34327) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0oUK-0000my-OS for submit@debbugs.gnu.org; Tue, 16 Dec 2014 04:32:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0oUJ-0005hs-M7 for submit@debbugs.gnu.org; Tue, 16 Dec 2014 04:32:16 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0oUJ-0005hn-IP for submit@debbugs.gnu.org; Tue, 16 Dec 2014 04:32:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0oUI-0007Gi-Mv for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 04:32:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0oUH-0005hQ-MY for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 04:32:14 -0500 Original-Received: from mail-ig0-x22e.google.com ([2607:f8b0:4001:c05::22e]:62759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0oUH-0005hE-ID for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 04:32:13 -0500 Original-Received: by mail-ig0-f174.google.com with SMTP id hn15so6560816igb.1 for ; Tue, 16 Dec 2014 01:32:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=GvsuBBK4XWXCpfcjXO5lN9nZ5Ue1q1UP3egbB8hZdmU=; b=qewi+HxLylyiqkbTwX+tIJyJo+3ifhgFoi9kMfEyoxySj/szdmwLjAXiHgy0LO7Xfs gtirJe20aajV84fhpWCAhG6520SnmuEOq22CRq/Kh1HFaNk3DKj1uzjruPrhp7oPkQd5 gnyKlbI+Gy7THvoAfqZubuz2kYYRq2KlHeXRZiqWAZ9Ffj35azZoCaR6eAj6rvz6jels 1I+wIQMPIaPCQ9KBa2409eXayhbSdaGtKJFgFc4JH7sbBKOQ5NmwxJYBe6C9SDxNsmA0 XshTNura9Fs5H2OXXXRAguGfhXBnRr+QIadR7gqDSrj8kE6GCAdl+1JJbRocX54JIX6D cFNg== X-Received: by 10.107.128.138 with SMTP id k10mr33447607ioi.69.1418722333116; Tue, 16 Dec 2014 01:32:13 -0800 (PST) Original-Received: by 10.43.125.2 with HTTP; Tue, 16 Dec 2014 01:32:13 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:97375 Archived-At: --001a113fbcc4b3506b050a5208af Content-Type: text/plain; charset=UTF-8 Reproducible with 'emacs -q': * In a freshly started Emacs, open an archive, e.g. a .tar.gz file in a buffer. * Switch to another buffer, type a couple of letters and then start pressing 'M-/' (dabbrev-expand). * It is very likely you will hit a "very useful" dabbrev in binary form taken from the archive. E.g. I opened a large tarball, then switched to *scratch*, typed "tz", and the very first dabbrev I got was "tz\327r". Request: Emacs should ignore archive and other binary buffers when generating dabbrevs. There are some settings to ignore buffers by name, but this would rather ignore buffers by mode. Also, this should be the default because I cannot imagine binary dabbrevs being useful to more than maybe 0.01% of users. Reproduced on a recent Emacs trunk. Paul --001a113fbcc4b3506b050a5208af Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Reproducible with 'emacs -q':

* In a freshly started Emacs, open an archive, e.g. a .tar.gz = file in a buffer.
* Switch to another buffer, type a couple of let= ters and then start pressing 'M-/' (dabbrev-expand).
* It = is very likely you will hit a "very useful" dabbrev in binary for= m taken from the archive. E.g. I opened a large tarball, then switched to *= scratch*, typed "tz", and the very first dabbrev I got was "= tz\327r".

Request: Emacs should ignore archive and other = binary buffers when generating dabbrevs. There are some settings to ignore = buffers by name, but this would rather ignore buffers by mode. Also, this = should be the default because I cannot imagine binary dabbrevs being useful= to more than maybe 0.01% of users.

Reprodu= ced on a recent Emacs trunk.

Paul
--001a113fbcc4b3506b050a5208af--