unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 1/1] emacs/notmuch.el: remove instruction to (require 'notmuch) in ~/.emacs
@ 2013-03-31 17:52 Tomi Ollila
  2013-03-31 19:52 ` David Bremner
  0 siblings, 1 reply; 3+ messages in thread
From: Tomi Ollila @ 2013-03-31 17:52 UTC (permalink / raw)
  To: notmuch; +Cc: tomi.ollila

The (require 'notmuch) is unnecessary to be added to ~/.emacs for
M-x notmuch or emacs -f notmuch to start it.

If (require 'notmuch) is added to ~/.emacs it is loaded to every
instance of emacs although it may not be used in majority of
those instances (but if needed M-x notmuch will load it).

Preloading notmuch would speed up M-x notmuch a bit -- for
emacs -f notmuch it doesn't bring any startup speed increase
(if that would have mattered).
---
 emacs/notmuch.el | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index e58c51d..ae9becd 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -34,12 +34,7 @@
 ;;
 ;; to install it.
 ;;
-;; Then, to actually run it, add:
-;;
-;;	(require 'notmuch)
-;;
-;; to your ~/.emacs file, and then run "M-x notmuch" from within emacs,
-;; or run:
+;; Then, to actually run it, run "M-x notmuch" from within emacs, or run:
 ;;
 ;;	emacs -f notmuch
 ;;
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] emacs/notmuch.el: remove instruction to (require 'notmuch) in ~/.emacs
  2013-03-31 17:52 [PATCH 1/1] emacs/notmuch.el: remove instruction to (require 'notmuch) in ~/.emacs Tomi Ollila
@ 2013-03-31 19:52 ` David Bremner
  2013-03-31 19:59   ` Tomi Ollila
  0 siblings, 1 reply; 3+ messages in thread
From: David Bremner @ 2013-03-31 19:52 UTC (permalink / raw)
  To: Tomi Ollila, notmuch; +Cc: tomi.ollila

Tomi Ollila <tomi.ollila@iki.fi> writes:

> The (require 'notmuch) is unnecessary to be added to ~/.emacs for
> M-x notmuch or emacs -f notmuch to start it.
>
> If (require 'notmuch) is added to ~/.emacs it is loaded to every
> instance of emacs although it may not be used in majority of
> those instances (but if needed M-x notmuch will load it).

Hi Tomi;

Isn't an autoload needed if there is no require?

d

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] emacs/notmuch.el: remove instruction to (require 'notmuch) in ~/.emacs
  2013-03-31 19:52 ` David Bremner
@ 2013-03-31 19:59   ` Tomi Ollila
  0 siblings, 0 replies; 3+ messages in thread
From: Tomi Ollila @ 2013-03-31 19:59 UTC (permalink / raw)
  To: David Bremner, notmuch

On Sun, Mar 31 2013, David Bremner <david@tethera.net> wrote:

> Tomi Ollila <tomi.ollila@iki.fi> writes:
>
>> The (require 'notmuch) is unnecessary to be added to ~/.emacs for
>> M-x notmuch or emacs -f notmuch to start it.
>>
>> If (require 'notmuch) is added to ~/.emacs it is loaded to every
>> instance of emacs although it may not be used in majority of
>> those instances (but if needed M-x notmuch will load it).
>
> Hi Tomi;
>
> Isn't an autoload needed if there is no require?

Oh yes, you're right... A big thinko! Marked the patch 'obsolete'.
I'll play with the autoload version...

> d

Thanks,

Tomi

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-31 19:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-31 17:52 [PATCH 1/1] emacs/notmuch.el: remove instruction to (require 'notmuch) in ~/.emacs Tomi Ollila
2013-03-31 19:52 ` David Bremner
2013-03-31 19:59   ` Tomi Ollila

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).