Package: a2ps
Version: 1:4.15.8-1
Severity: normal
Emacs barfs at startup when loading /etc/emacs/site-start.d/50a2ps.el
These two changes cure it for me:
--- /dev/fd/63 2026-10-21 03:37:30.527154598 +0200
+++ /etc/emacs/site-start.d/50a2ps.el 2026-10-21 03:31:01.140875466 +0200
@@ -12,7 +12,7 @@
;; installed in a subdirectory of the respective site-lisp directory.
;; We have to add this to the load-path:
(setq load-path (cons (concat "/usr/share/"
- (symbol-name flavor)
+ (symbol-name debian-emacs-flavor)
"/site-lisp/a2ps") load-path))
;; a2ps
(autoload 'a2ps-mode "a2ps" nil t)
@@ -39,9 +39,8 @@
(progn
(global-set-key [f22] 'a2ps-buffer)
(global-set-key [S-f22] 'a2ps-region-1)
- (define-key-after menu-bar-files-menu [a2ps-print]
+ (define-key-after menu-bar-file-menu [a2ps-print]
'(menu-item "a2ps" a2ps-buffer :help "Print with a2ps")
'ps-print-region)
)
)
-- System Information:
Debian Release: forky/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable-security'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 7.1.3+deb14-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages a2ps depends on:
ii file 1:5.47-4
ii libc6 2.43-7
ii libgc1 1:8.2.12-1
ii libpaper2 2.2.5-0.4
ii psutils 3.3.14-1
Versions of packages a2ps recommends:
ii bzip2 1.0.8-6+b2
ii cups-bsd [lpr] 2.4.18-1
ii cups-client 2.4.18-1
ii wdiff 1.2.3-1
Versions of packages a2ps suggests:
ii emacsen-common 3.0.8
ii ghostscript 10.08.0~dfsg-2
ii groff 1.24.2-2
ii gv 1:3.7.4-3.2
ii html2ps 1.0b7-7
ii imagemagick 8:7.1.2.31+dfsg1-1
ii imagemagick-7.q16 [imagemagick] 8:7.1.2.31+dfsg1-1
ii t1-cyrillic 5+really1.0.7pre40-2
ii texlive-binaries [texlive-base-bin] 2026.20260303.78225+ds-5
-- Configuration Files:
/etc/emacs/site-start.d/50a2ps.el changed:
;; -*-emacs-lisp-*-
;;
;; Emacs startup file for the Debian a2ps package
;;
;; Originally contributed by Nils Naumann <[email protected]>
;; Modified by Dirk Eddelbuettel <[email protected]>
;; Adapted for dh-make by Jim Van Zandt <[email protected]>
;; The a2ps package follows the Debian/GNU Linux 'emacsen' policy and
;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
;; xemacs19, emacs20, xemacs20...). The compiled code is then
;; installed in a subdirectory of the respective site-lisp directory.
;; We have to add this to the load-path:
(setq load-path (cons (concat "/usr/share/"
(symbol-name debian-emacs-flavor)
"/site-lisp/a2ps") load-path))
;; a2ps
(autoload 'a2ps-mode "a2ps" nil t)
(setq auto-mode-alist
(cons '(".*\\.a2ps$" . a2ps-mode)
auto-mode-alist))
;; a2ps-print
(autoload 'a2ps-buffer "a2ps-print"
"Print buffer contents as with Unix command `a2ps'.
`a2ps-switches' is a list of extra switches (strings) to pass to a2ps."
t)
(autoload 'a2ps-region "a2ps-print"
"Print region contents as with Unix command `a2ps'.
`a2ps-switches' is a list of extra switches (strings) to pass to a2ps."
t)
(if (featurep 'xemacs)
(progn
(global-set-key 'f22 'a2ps-buffer)
(global-set-key '(shift f22) 'a2ps-region-1)
(add-menu-button '("File") ["a2ps-print" a2ps-buffer "--"])
)
(progn
(global-set-key [f22] 'a2ps-buffer)
(global-set-key [S-f22] 'a2ps-region-1)
(define-key-after menu-bar-file-menu [a2ps-print]
'(menu-item "a2ps" a2ps-buffer :help "Print with a2ps")
'ps-print-region)
)
)
-- no debconf information