🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #1540

Bug#1151501: a2ps: emacs init file contains obsolete language

#1540
From: Francesco Potortì
Date: Wed, 21 Oct 2026 01:50
117 lines
6693 bytes
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 <naumann@unileoben.ac.at>
;; Modified by Dirk Eddelbuettel <edd@debian.org>
;; Adapted for dh-make by Jim Van Zandt <jrv@vanzandt.mv.com>
;; 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
Technical Details
Message-ID: <NQtCN-6SMi-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Francesco Potortì <Potorti@isti.cnr.it>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1151501: a2ps: emacs init file contains obsolete language
Date: Wed, 21 Oct 2026 03:50:01 +0200
Message-ID: <NQtCN-6SMi-5@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Wed Oct 21 01:41:12 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.45
Reply-To: Francesco Potortì <Potorti@isti.cnr.it>, 1151501@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: Potorti@isti.cnr.it, packages@qa.debian.org
X-Debian-Pr-Message: report 1151501
X-Debian-Pr-Package: a2ps
X-Debian-Pr-Source: a2ps
Arc-Seal: i=1; a=rsa-sha256; d=isti.cnr.it; s=arc-smtp-clients1;
	t=1792546726; cv=none; b=AhH4a0eh4x8BwjumNXm3K3cB3CLreEFB/luESWbmVZsgUoWN6v1t1fPx8GGx7lQ6j5DD9ILTgz8WD7/coMi9V5fpU3DB1VxOkv9IBkeRsKDZXAXRiXWSELk7+QvPF9lewU35hDA36MBm2s2puF6RgKgIR2FNPpierqmG87puLM0=
Arc-Message-Signature: i=1; a=rsa-sha256; d=isti.cnr.it; s=arc-smtp-clients1;
	t=1792546726; c=relaxed/relaxed;
	bh=0Q7yoYk8bxocoEwE/3w+d2XiOZLnz8ghPt91kJhJpMQ=;
	h=DKIM-Filter:DKIM-Signature:X-Virus-Status:X-Virus-Scanned:
	 Received:Date:From:To:Subject:X-Debbugs-CC:MIME-Version:
	 Content-Type:Organization:X-fingerprint:Message-Id; b=eqkyhDiFdaf0qeRzAoe3citeFFx7yZHuTYuf1zq88/6hl75qKXHedkVTfO7ba9EgrTn8o7DTqxfa2PX98YoiVgKQ9djDfgFOmJ5SUw1sEVIciYPHtZSFbvnfqB/3LbQfRMdfsyqcmxkxhshW1ExnQ1xxKz79rhG75HE+FGjfsWg=
Arc-Authentication-Results: i=1; smtp-clients1.isti.cnr.it; none
Dkim-Filter: OpenDKIM Filter v2.11.0 smtp-clients1.isti.cnr.it 9B03E9F8E0
X-Virus-Status: Clean
MIME-Version: 1.0
Content-Type: text/plain
Organization: ISTI-CNR, via Moruzzi 1, www.isti.cnr.it
X-Fingerprint: 4B02 6187 5C03 D6B1 2E31  7666 09DF 2DC9 BE21 6115
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1997839
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 117
Sender: robomod@news.nic.it
X-Original-Date: Wed, 21 Oct 2026 03:38:46 +0200
X-Original-Message-ID: <E1xJLHy-000000076CD-2EGn@tucano.isti.cnr.it>