Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37851075
en ru br
Репозитории ALT
S:13.1-alt1
5.1: 11.85-alt4.M51.1
4.1: 11.85-alt1
4.0: 11.84-alt1
3.0: 11.54-alt1
+backports:11.83-alt0.M30.1
www.altlinux.org/Changes

Группа :: Редакторы
Пакет: emacs-mode-auctex

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: auctex-11.87-printerlist.patch
Скачать


--- auctex/tex.el.orig	2013-01-24 12:50:59.184353563 +0400
+++ auctex/tex.el	2013-01-24 12:54:47.633486387 +0400
@@ -350,13 +350,12 @@
 ;; you only have one printer.
 
 (defcustom TeX-printer-list
-  '(("Default"
-     ;; Print to the (unnamed) default printer.  If there is a DVI
-     ;; file print via Dvips.  If not, pass the output file (which
-     ;; should then be a Postscript or PDF file) directly to lpr.
-     "{ test -e %s.dvi && %(o?)dvips -f %r %s | lpr; } || lpr %o"
-     ;; Show the queue for the (unnamed) default printer.
-     "lpq"))
+     ;; traditional ALT Linux patch
+     ;; Get first printer name from the list returned by lpstat
+     (car (read-from-string
+            (shell-command-to-string "[ -x /usr/bin/lpstat ] && { echo '('; for p in $(lpstat -p 2>/dev/null | cut -d' ' --fields=2); do echo -n \"(\\\"$p\\\")\"; done; echo ')'; } || echo nil")
+            )
+          )
   "List of available printers.
 
 The first element of each entry is the printer name.
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin