Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E0715431FB6 for ; Wed, 18 Jan 2012 05:50:24 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HKIZYmCpDqsB for ; Wed, 18 Jan 2012 05:50:24 -0800 (PST) Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 22F26431FAF for ; Wed, 18 Jan 2012 05:50:24 -0800 (PST) Received: by werp13 with SMTP id p13so1416865wer.26 for ; Wed, 18 Jan 2012 05:50:23 -0800 (PST) Received: by 10.180.85.4 with SMTP id d4mr36418162wiz.0.1326894623024; Wed, 18 Jan 2012 05:50:23 -0800 (PST) Received: from localhost ([109.131.97.13]) by mx.google.com with ESMTPS id dm10sm5465725wib.4.2012.01.18.05.50.21 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 Jan 2012 05:50:22 -0800 (PST) From: Pieter Praet To: David Edmondson , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: Truncate lines and do not enable visual-line-mode in notmuch-show buffers. In-Reply-To: <1326723202-4328-1-git-send-email-dme@dme.org> References: <1326723202-4328-1-git-send-email-dme@dme.org> User-Agent: Notmuch/0.11+86~g67f4140 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-unknown-linux-gnu) Date: Wed, 18 Jan 2012 14:48:34 +0100 Message-ID: <87pqehp1e5.fsf@praet.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jan 2012 13:50:25 -0000 On Mon, 16 Jan 2012 14:13:22 +0000, David Edmondson wrote: > Enable the truncation of lines in `notmuch-show-mode' to avoid visual > noise caused by the wrapping of the header lines. > > Don't enable `visual-line-mode' because it disables line truncation. > > The benefits of `visual-line-mode' were that it wrapped long lines > in received messages. With `notmuch-wash-wrap-long-lines' now default > behaviour, this is no longer required. > --- > emacs/notmuch-show.el | 6 ++---- > 1 files changed, 2 insertions(+), 4 deletions(-) > > diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el > index 1a250a3..797f94b 100644 > --- a/emacs/notmuch-show.el > +++ b/emacs/notmuch-show.el > @@ -873,9 +873,6 @@ buffer." > > (jit-lock-register #'notmuch-show-buttonise-links) > > - ;; Act on visual lines rather than logical lines. > - (visual-line-mode t) > - > (run-hooks 'notmuch-show-hook)) > > ;; Move straight to the first open message > @@ -987,7 +984,8 @@ All currently available key bindings: > (use-local-map notmuch-show-mode-map) > (setq major-mode 'notmuch-show-mode > mode-name "notmuch-show") > - (setq buffer-read-only t)) > + (setq buffer-read-only t > + truncate-lines t)) > > (defun notmuch-show-move-to-message-top () > (goto-char (notmuch-show-message-top))) > -- > 1.7.7.3 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch +1 Peace -- Pieter