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 B108D431E84 for ; Wed, 25 Jan 2012 05:48:40 -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 n4Yb4v+tUfZt for ; Wed, 25 Jan 2012 05:48:40 -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 31D2B431FBC for ; Wed, 25 Jan 2012 05:48:40 -0800 (PST) Received: by werb10 with SMTP id b10so4429801wer.26 for ; Wed, 25 Jan 2012 05:48:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.131.210 with SMTP id m60mr4806210wei.47.1327499318920; Wed, 25 Jan 2012 05:48:38 -0800 (PST) Received: from hotblack-desiato.hh.sledj.net (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25]) by mx.google.com with ESMTPS id n3sm1626083wiz.9.2012.01.25.05.48.37 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Jan 2012 05:48:38 -0800 (PST) Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) id 1E5B89FEEC; Wed, 25 Jan 2012 13:48:36 +0000 (GMT) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH 2/3] emacs: Don't mark messages as "unsaved" when printing. Date: Wed, 25 Jan 2012 13:48:33 +0000 Message-Id: <1327499314-7887-3-git-send-email-dme@dme.org> X-Mailer: git-send-email 1.7.8.3 In-Reply-To: <1327499314-7887-1-git-send-email-dme@dme.org> References: <1327496913-4946-1-git-send-email-dme@dme.org> <1327499314-7887-1-git-send-email-dme@dme.org> X-Gm-Message-State: ALoCoQnfn2JISU3iyRnAhPdo39+7c8xmGGk95zStW/HAQpTA0ireifHkT/lj+QXcCDM7CVgRh/6o 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, 25 Jan 2012 13:48:40 -0000 `ps-print-buffer' notes that a buffer is unsaved unless `buffer-modified-p' returns `nil', so ensure that it does. --- emacs/notmuch-print.el | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-print.el b/emacs/notmuch-print.el index f96ccbe..83eb525 100644 --- a/emacs/notmuch-print.el +++ b/emacs/notmuch-print.el @@ -80,6 +80,7 @@ Optional OUTPUT allows passing a list of flags to muttprint." (defun notmuch-print-message (msg) "Print a message using the user-selected mechanism." + (set-buffer-modified-p nil) (funcall notmuch-print-mechanism msg)) (provide 'notmuch-print) -- 1.7.8.3