From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SQHjNLyR118DcwAA0tVLHw (envelope-from ) for ; Mon, 14 Dec 2020 16:24:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mJAfMLyR11/TXAAA1q6Kng (envelope-from ) for ; Mon, 14 Dec 2020 16:24:28 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 628919402D4 for ; Mon, 14 Dec 2020 16:24:28 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id D280528C03; Mon, 14 Dec 2020 11:24:11 -0500 (EST) Received: from mail.hostpark.net (mail.hostpark.net [212.243.197.30]) by mail.notmuchmail.org (Postfix) with ESMTPS id 4D02028535 for ; Mon, 14 Dec 2020 11:24:05 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id 6AF3A165EC for ; Mon, 14 Dec 2020 17:24:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bernoul.li; h= content-transfer-encoding:mime-version:x-mailer:message-id:date :date:subject:subject:from:from:received:received; s=sel2011a; t=1607963042; bh=Jac6HkUA39xLX2XZ3hvQKLoZ7Nhlb6LO580vS4Vktfg=; b= hUUjnD8E519ADzcapXy9GskF3J50r5cWKNxNkeFvWaSeym2xISGaHVn+N2wWgQDZ 9uGxIpj90yL0gFHhRD24r3jKDOAL3HKWwO6zCBA/ULwwxPJJgYy/TzqdfI+f2TAP 2/QS181y+mqPEYuxxUol7ndjPrmlpDAXBxDKv0SgK1I= X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail0.hostpark.net [127.0.0.1]) (amavisd-new, port 10224) with ESMTP id 0p4ihqrWiPH9 for ; Mon, 14 Dec 2020 17:24:02 +0100 (CET) Received: from customer (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id 2C14E165C7 for ; Mon, 14 Dec 2020 17:24:02 +0100 (CET) From: Jonas Bernoulli To: notmuch@notmuchmail.org Subject: [PATCH 00/32] [emacs] Add outline headings and switch to lexical scope Date: Mon, 14 Dec 2020 17:23:29 +0100 Message-Id: <20201214162401.19569-1-jonas@bernoul.li> X-Mailer: git-send-email 2.29.1 MIME-Version: 1.0 Message-ID-Hash: UDUMWQ55QLKJM3FOXBGCCHVFZPB562T5 X-Message-ID-Hash: UDUMWQ55QLKJM3FOXBGCCHVFZPB562T5 X-MailFrom: jonas@bernoul.li X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 1.73 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=bernoul.li header.s=sel2011a header.b=hUUjnD8E; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 628919402D4 X-Spam-Score: 1.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5Diz3VR0hDM/ Hello, This patch serious changes a number of things, including boring cleanup, but the big changes are the following. The respective commits are also marked in the list below. See these commits for longer descriptions. 1. Split all libraries into sections by adding new headings or formatting existing headings properly to be compatible with outline-minor-mode. 2. Use lexical-scope in all libraries. This is potentially faster and is recommended for all new code (and old code someone cares about enough). It also has the advantage that it can reveal subtle bugs. Among the many more commits that do not concern these two big changes, there are a few that might need special attention. (Again see the commits for details.) 3. No longer use Ido in notmuch-mua-prompt-for-sender. Might be controversial. 4. Stop using unnecessary let-bindings, though how "unnecessary" these bindings are is somewhat subjective. Cheers, Jonas PS: Don't worry. I do NOT have another large patch series waiting after this. Future changes should be more focused or even come in the form of independent extensions. Jonas Bernoulli (32): emacs: use setq instead of set emacs: sanitize dedicated widget action/notify functions emacs: define new notmuch-search-item widget type emacs: notmuch-start-notmuch: remove backward compatibility code emacs: notmuch-start-notmuch-error-sentinel: assert buffer is alive emacs: notmuch-start-notmuch-sentinel: assert buffer is alive emacs: notmuch-start-notmuch: avoid storing process buffer twice emacs: avoid passing around some redundant information emacs: avoid killing process buffer when process is still alive 1 emacs: make headings outline-minor-mode compatible 2 emacs: use lexical-bindings in all libraries " emacs: deal with unused lexical arguments and variables " emacs: notmuch-tag--get-formats: silence byte-compiler emacs: inline notmuch-sexp-eof into only caller emacs: notmuch-wash-region-to-button: remove unused MSG argument emacs: silence compiler wrt notmuch-show-insert-part-text/plain emacs: define notmuch-message-queued-tag-changes as buffer-local emacs: notmuch-message-apply-queued-tag-changes: cosmetics emacs: notmuch-wash.el: require diff-mode at beginning of code 3 emacs: notmuch-mua-prompt-for-sender: don't force Ido on users emacs: notmuch-mua.el: move all options into "Options" section emacs: notmuch-crypto-status-button-type: fix potential bug emacs: various cosmetic improvements emacs: various comment improvements emacs: various doc-string improvements emacs: remove variable notmuch-search-disjunctive-regexp emacs: define a few variables as automatically buffer-local emacs: notmuch-search-stash-thread-id: use notmuch-search-query-string emacs: reorder notmuch.el a bit 4 emacs: avoid unnecessary let-bindings emacs: use string-empty-p emacs: notmuch-tree-get-match: No longer define as command emacs/coolj.el | 14 +- emacs/make-deps.el | 2 +- emacs/notmuch-address.el | 65 +++++---- emacs/notmuch-company.el | 1 - emacs/notmuch-compat.el | 4 +- emacs/notmuch-crypto.el | 14 +- emacs/notmuch-draft.el | 23 +++- emacs/notmuch-hello.el | 228 +++++++++++++++--------------- emacs/notmuch-jump.el | 14 +- emacs/notmuch-lib.el | 198 +++++++++++++------------- emacs/notmuch-maildir-fcc.el | 112 +++++++-------- emacs/notmuch-message.el | 21 ++- emacs/notmuch-mua.el | 123 +++++++++-------- emacs/notmuch-parser.el | 18 +-- emacs/notmuch-print.el | 16 ++- emacs/notmuch-query.el | 21 ++- emacs/notmuch-show.el | 127 ++++++++++------- emacs/notmuch-tag.el | 100 ++++++++------ emacs/notmuch-tree.el | 59 ++++---- emacs/notmuch-wash.el | 54 ++++---- emacs/notmuch.el | 260 +++++++++++++++++++---------------- emacs/rstdoc.el | 2 +- test/test-lib.el | 4 +- 23 files changed, 786 insertions(+), 694 deletions(-) -- 2.29.1