all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lute Kamstra <Lute.Kamstra@cwi.nl>
Subject: Re: Coding Convections - Enabling a feature by loading a file
Date: Thu, 05 Jun 2003 18:24:38 +0200	[thread overview]
Message-ID: <sgdptlscx15.fsf@occarina.pna.cwi.nl> (raw)
In-Reply-To: <mailman.7309.1054754086.21513.help-gnu-emacs@gnu.org> (Peter S. Galbraith's message of "Wed, 04 Jun 2003 14:51:46 -0400")

Peter S Galbraith <psg@debian.org> writes:

[...]

> But what is the rationale behind the loading of a package having no
> visisble effect?  If the only purpose of a package is to enable a
> feature (say changing the cursor to a bar), why ask users to do:
>
>      (require 'bar-cursor)
>      (bar-cursor-mode 1)
>
> instead of only:
>
>      (require 'bar-cursor)
>
> ?
>
> I am perfect happy for packages to install themselves correctly once
> loaded without having to go through more hoops.

I'm not familiar with bar-cursor.el, but in general a library can
implement more than one feature.  In such a case, it is usually not
obvious which feature to turn on.  It is best to turn nothing on
automatically and let the user choose which of the features to use by
explicitly turning them on.  Even if a library contains only one
feature now, features might be added in future versions.  Such changes
won't surprise the user if nothing is turned on upon loading the
library.

Furthermore, some other library could (require 'bar-cursor) to use
some function that is defined in bar-cursor.el.  In such a case, you
usually do not want bar-cursor-mode to be turned on.

Lute.

-- 
(spook) => "unclassified Montenegro Serbian"
(insert-file-contents "~/.signature") => (error "`~/.signature' too rude")

  parent reply	other threads:[~2003-06-05 16:24 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.7309.1054754086.21513.help-gnu-emacs@gnu.org>
2003-06-04 21:13 ` Coding Convections - Enabling a feature by loading a file Stefan Monnier
     [not found]   ` <mailman.7337.1054774167.21513.help-gnu-emacs@gnu.org>
2003-06-05  1:02     ` Stefan Monnier
2003-06-05 16:24 ` Lute Kamstra [this message]
2003-06-04 18:51 Peter S Galbraith
  -- strict thread matches above, loose matches on Subject: below --
2003-05-02  3:12 off-topic? James D
2003-05-02  5:44 ` off-topic? Lute Kamstra
2003-05-02 19:41   ` off-topic? James D
2003-05-02 20:39     ` off-topic? Roodwriter
2003-05-03  3:08       ` off-topic? Oliver Scholz
2003-05-02 22:00     ` off-topic? Lute Kamstra
2003-05-03 21:13       ` off-topic? Alexander Nikolov
2003-05-03 21:21       ` off-topic? Alexander Nikolov
     [not found]       ` <Lute.Kamstra@cwi.nl>
2003-05-03  3:27         ` off-topic? Peter S Galbraith
2003-06-08  0:58         ` Coding Convections - Enabling a feature by loading a file Peter S Galbraith
     [not found] <mailman.227.1039966739.19936.help-gnu-emacs@gnu.org>
2002-12-15 18:56 ` Customize a checklist Klaus Berndl
     [not found] <mailman.1037389349.31174.help-gnu-emacs@gnu.org>
2002-11-16 18:55 ` Any standard function to prompt for multiple comma-separated items? Kai Großjohann
2002-11-17 14:03   ` Peter S Galbraith
     [not found]   ` <mailman.1037542582.16549.help-gnu-emacs@gnu.org>
2002-11-18 15:52     ` Stefan Monnier <foo@acm.com>
2002-11-17  9:27 ` Klaus Berndl
     [not found]   ` <Klaus.Berndl@sdm.de>
2002-11-17 14:08     ` Peter S Galbraith
2002-12-15 20:44     ` Customize a checklist Peter S Galbraith
2002-11-17 16:39 ` Any standard function to prompt for multiple comma-separated items? Kai Großjohann
2002-11-18 15:53   ` Stefan Monnier <foo@acm.com>
2002-10-24 23:52 the real file-attributes function Kin Cho
2002-10-25  0:24 ` Barry Margolin
     [not found]   ` <nqn0p3m2g6.fsf@alcatel.de>
2002-10-25 23:30     ` Kin Cho
2002-10-25 14:23 ` Stefan Monnier <foo@acm.com>
     [not found]   ` <foo@acm.com>
     [not found]     ` <monnier+gnu.emacs.help/news/@flint.cs.yale.edu>
2002-10-25 15:17       ` Peter S Galbraith
2002-10-25 18:51       ` Activating Mousewheel Peter S Galbraith
2002-11-18 18:23       ` Any standard function to prompt for multiple comma-separated items? Peter S Galbraith
2003-06-05  0:47       ` Coding Convections - Enabling a feature by loading a file Peter S Galbraith
2002-10-24 17:20 Activating Mousewheel Florian Lindner
2002-10-24 19:06 ` Daniel Jensen
2002-10-24 20:01 ` Robert Marshall
2002-10-25 15:47 ` Kolya Poganini
2002-10-25 18:22   ` Stefan Monnier <foo@acm.com>

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sgdptlscx15.fsf@occarina.pna.cwi.nl \
    --to=lute.kamstra@cwi.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.