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 17:19:06 +0100 Message-ID: References: <83ppbjwqma.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113fbcc4e2a8fb050a57b7fe X-Trace: ger.gmane.org 1418746832 21309 80.91.229.3 (16 Dec 2014 16:20:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2014 16:20:32 +0000 (UTC) Cc: 19392@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 16 17:20:25 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 1Y0urE-0002qy-AG for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Dec 2014 17:20:20 +0100 Original-Received: from localhost ([::1]:45503 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0urD-00077H-QW for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Dec 2014 11:20:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0ur3-0006t4-E0 for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 11:20:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0uqx-0003La-3m for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 11:20:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0uqx-0003L7-0A for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 11:20:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y0uqw-00057Q-BB for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 11:20: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 16:20: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: Original-Received: via spool by 19392-submit@debbugs.gnu.org id=B19392.141874675119604 (code B ref 19392); Tue, 16 Dec 2014 16:20:02 +0000 Original-Received: (at 19392) by debbugs.gnu.org; 16 Dec 2014 16:19:11 +0000 Original-Received: from localhost ([127.0.0.1]:48027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0uq6-000568-HQ for submit@debbugs.gnu.org; Tue, 16 Dec 2014 11:19:10 -0500 Original-Received: from mail-ie0-f173.google.com ([209.85.223.173]:58826) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0uq3-00055y-Uw for 19392@debbugs.gnu.org; Tue, 16 Dec 2014 11:19:08 -0500 Original-Received: by mail-ie0-f173.google.com with SMTP id y20so13170712ier.18 for <19392@debbugs.gnu.org>; Tue, 16 Dec 2014 08:19:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=KyztjqMdKctodnr4hAwllJ8eS8kIqjgOG0qz99jW8IA=; b=gr0A44MsSBPTko8Nj3oIWrwtofK4JYsHty603mpOSpMXoXhX30xQLCUlNWXUfOKm5A bye3odDbjgyGgtUGB6joDCbTr4RlNtAV+yXmY5gpESDSNTxjSjj87E5+zz3o142j4nRx qJE4LM8fmqV1ZYNSb0kv89MTLBhmkS3Zeh6xYipjhEcLr6677OpfhC/UywIJDiqp8zFV 9uW4YBMFYRlEO2BQSezQP8mKlpnpsr/SDFUqwzWlf9TosLe8cvCl+a7OmVIvUY5fNiza sA2n14xzfY36SyzJS/4BUg4GHcjHP/zaIVHa2CBmQQaN5Y5dxOexmoP6W528U1Nw20gV qzxw== X-Received: by 10.107.128.138 with SMTP id k10mr35323648ioi.69.1418746747068; Tue, 16 Dec 2014 08:19:07 -0800 (PST) Original-Received: by 10.43.125.2 with HTTP; Tue, 16 Dec 2014 08:19:06 -0800 (PST) In-Reply-To: <83ppbjwqma.fsf@gnu.org> 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:97388 Archived-At: --001a113fbcc4e2a8fb050a57b7fe Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > What is the definition of "archive" for this purpose? I would say any buffer that has certain major mode, e.g. 'archive-mode' or 'tar-mode'. > Also, when you visit a .tar.gz file, isn't most of the buffer readable > text (because Emacs automatically decompresses the archive)?=E2=80=8B Yes, it appears readable, but dabbrev still comes with various "useful" binary data. Perhaps another approach would be to not search for abbrevs in hidden text, but I don't know how that is implemented internally and if it would be easy enough. Paul --001a113fbcc4e2a8fb050a57b7fe Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
> What is the definition of "archive" fo= r this purpose?

I would say any buffer that has certain major = mode, e.g. 'archive-mode' or 'tar-mode'.

> Also, when you visit a .tar.gz file, isn't most of the buffer = readable
> text (because Emacs automatically decompresses the archive= )?=E2=80=8B

Yes, it appears readable, but dabbrev still c= omes with various "useful" binary data. Perhaps another approach = would be to not search for abbrevs in hidden text, but I don't know how= that is implemented internally and if it would be easy enough.

Paul
--001a113fbcc4e2a8fb050a57b7fe--