Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37732986
en ru br
ALT Linux repositórios
S:13.1-alt1
5.0: 11.85-alt1
4.1: 11.85-alt1
4.0: 11.84-alt1
3.0: 11.54-alt1
+backports:11.83-alt0.M30.1

Group :: Editores
RPM: emacs-mode-auctex

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: auctex-11.87-printerlist.patch
Download


--- 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.
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009