Package: develock-el
Version: 0.35-1
Severity: normal
File: /etc/emacs/site-start.d/50develock-el.el
Tags: patch
Currently, develock (and global font lock mode) is enabled for all
users. When a multi-user system has both develock and non-develock
users, this annoys the non-develock users -- they have to put extra
code in their emacs to *disable* the feature. I believe this is quite
difficult because develock creates advice and eval-after-load hooks.
It is more common for Debian site-start files to only set up load-path
and autoloads; I suggest develock-el follow this approach. To do so,
change
(cond ((featurep 'xemacs)
(require 'develock)
;; `turn-on-develock' is equivalent to `turn-on-font-lock',
;; except that it does not highlight the startup screen.
(add-hook 'lisp-interaction-mode-hook 'turn-on-develock)
(add-hook 'mail-setup-hook 'turn-on-font-lock))
((>= emacs-major-version 20)
(require 'develock)
(global-font-lock-mode t)))
to
(autoload 'develock-mode "develock"
"Toggle Develock mode.
With ARG, turn Develock on if and only if ARG is positive.
In Develock mode, highlighting leading and trailing whitespace,
long lines and oddities."
t)
(autoload 'turn-on-develock-mode "develock"
"Turn on font-lock after splashing the startup screen under XEmacs.
This function is used for `lisp-interaction-mode-hook' exclusively.")
...and in README.Debian and debian/changelog suggest users who *do*
want develock to add the following to their .emacs:
(when (locate-library "develock")
(require 'develock)
(if (featurep 'xemacs)
(setq font-lock-auto-fontify t)
(global-font-lock-mode +1)))
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.22-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages develock-el depends on:
ii emacs [emacsen] 22.1+1-2 The GNU Emacs editor (metapackage)
ii emacs21 [emacsen] 21.4a+1-5.1 The GNU Emacs editor
ii emacs22 [emacsen] 22.1+1-2 The GNU Emacs editor
ii xemacs21-gnome-mule [emacsen 21.4.20-2 highly customizable text editor --
ii xemacs21-gnome-mule-canna-wn 21.4.20-2 highly customizable text editor --
ii xemacs21-gnome-nomule [emacs 21.4.20-2 highly customizable text editor --
ii xemacs21-mule [emacsen] 21.4.20-2 highly customizable text editor --
ii xemacs21-mule-canna-wnn [ema 21.4.20-2 highly customizable text editor --
ii xemacs21-nomule [emacsen] 21.4.20-2 highly customizable text editor --
develock-el recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]