[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where is the variable "flavor" defined?

OHASHI Akira <bg66@koka-in.org> wrote:

> Hi developers,
> I want to close Bug#140866.
> The variable "flavor" is certainly used in startup file for some
> packages. However, unfortunately I can't figure out where this
> strange variable is defined at. What's more, emacs says "Symbol's
> value as variable is void: flavor" for "M-: flavor". I can't
> understand what's going on. Could anyone give some advice for this
> stupid variable for me?

It is a bit confusing.

For example, /usr/share/emacs/21.1/lisp/startup.el runs this on Emacs
              (debian-startup debian-emacs-flavor)

This function is found in /usr/share/emacs/site-lisp/debian-startup.el :

(defun debian-startup (flavor)

This in turn evals the various files under /etc/emacs/site-start.d/.
So 'flavor exists locally at that time, in the context of being run at
startup by debian-startup.

Since it's value is the same as as debian-emacs-flavor, which is defined
at all times, shouldn't we be using debian-emacs-flavor instead in
/etc/emacs scripts?  That way they could be reloaded at a later time
without problem.


To UNSUBSCRIBE, email to debian-emacsen-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: