unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* ps-print-buffer does not print
@ 2006-02-25 11:00 Nellinux
  2006-03-01 10:33 ` Peter Dyballa
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Nellinux @ 2006-02-25 11:00 UTC (permalink / raw)


I have this problem:
all commands involving postscript printing in Emacs do not work.

I have this components:
 - Slackware 10.2
 - GNU Emacs 21.4.2
 - CUPS 1.1.23
 - ESP Ghostscript 815.00

I have no customization printing commands in file dot-emacs (see at the
bottom).

Other applications (Firefox, OpenOffice, lpr, a2ps) print properly.

I have that both at home and at office;  with older Slackware and Emacs
version all commands worked.

Have you any idea ?

Thanks

  Nello Sola


------------------------------------------------------------------------------------------------------------------
dot-emcs
------------------------------------------------------------------------------------------------------------------
(custom-set-variables
 '(case-fold-search t)
 '(current-language-environment "Latin-1")
 '(default-input-method "latin-1-prefix")
 '(diary-file "~/.diary" t)
 '(global-font-lock-mode t nil (font-lock))
 '(tool-bar-mode nil nil (tool-bar)))
(custom-set-faces
 '(default ((t (:stipple nil :background "black" :foreground "white"
:inverse-video nil :box nil :strike-through nil :overline nil
:underline nil :slant normal :weight normal :height 110 :width normal :
family "adobe-courier")))))
(setq default-major-mode 'text-mode)
(define-key global-map "\C-\M-l" 'goto-line)
(setq load-path (cons "~/.elisp" load-path))
(autoload 'html-helper-mode "html-helper-mode" "Yay HTML" t)
(setq auto-mode-alist (cons '("\\.html?$" . html-helper-mode)
auto-mode-alist))
(autoload 'php-mode "php-mode" "PHP editing mode" t)
(add-to-list 'auto-mode-alist '("\\.php\\'" . php-mode))
------------------------------------------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ps-print-buffer does not print
  2006-02-25 11:00 ps-print-buffer does not print Nellinux
@ 2006-03-01 10:33 ` Peter Dyballa
  2006-03-01 18:56 ` Eli Zaretskii
  2006-03-07 19:55 ` Jean-Pierre Moreau
  2 siblings, 0 replies; 5+ messages in thread
From: Peter Dyballa @ 2006-03-01 10:33 UTC (permalink / raw)
  Cc: Emacs help


Am 25.02.2006 um 12:00 schrieb Nellinux:

> all commands involving postscript printing in Emacs do not work.

Could you be a bit more specific?


Can you use the commands ps-print-buffer or ps-print-region (or ps- 
print-buffer-with-faces or ps-print-region-with-faces)?

Do you see entries in some printer queue afterwards?

What do you see in the *Messages* buffer?

What happens when you invoke ps-spool-buffer or ps-spool-region (or  
ps-spool-buffer-with-faces or ps-spool-region-with-faces)?

Can you save the created *PostScript* buffer to a (PS) file and print  
that file from the command line?

If you succeed: can you create a PRINTER environment variable in some  
shell and start GNU Emacs or tell GNU Emacs what PRINTER is when you  
launch it? What happens now?


--
Greetings

   Pete

The future will be much better tomorrow.
   -- George W. Bush

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ps-print-buffer does not print
  2006-02-25 11:00 ps-print-buffer does not print Nellinux
  2006-03-01 10:33 ` Peter Dyballa
@ 2006-03-01 18:56 ` Eli Zaretskii
  2006-03-04  3:07   ` Ian Zimmerman
  2006-03-07 19:55 ` Jean-Pierre Moreau
  2 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2006-03-01 18:56 UTC (permalink / raw)


> From: "Nellinux" <nello.sola@libero.it>
> Date: 25 Feb 2006 03:00:16 -0800
> 
> all commands involving postscript printing in Emacs do not work.
> 
> I have this components:
>  - Slackware 10.2
>  - GNU Emacs 21.4.2
>  - CUPS 1.1.23
>  - ESP Ghostscript 815.00
> 
> I have no customization printing commands in file dot-emacs (see at the
> bottom).
> 
> Other applications (Firefox, OpenOffice, lpr, a2ps) print properly.

Does your printer support PostScript?  If not, then you do need to
have certain customizations in .emacs to print via Ghostscript.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ps-print-buffer does not print
  2006-03-01 18:56 ` Eli Zaretskii
@ 2006-03-04  3:07   ` Ian Zimmerman
  0 siblings, 0 replies; 5+ messages in thread
From: Ian Zimmerman @ 2006-03-04  3:07 UTC (permalink / raw)



Eli> Does your printer support PostScript?  If not, then you do need to
Eli> have certain customizations in .emacs to print via Ghostscript.

He said he had CUPS, which presumably already takes care of piping
through Ghostscript.

I run CUPS too, here are my related customizations:

 '(lpr-add-switches nil)
 '(lpr-command "lp" t)
 '(lpr-printer-switch "-d")
 '(printer-name "lp" t)


-- 
A true pessimist won't be discouraged by a little success.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ps-print-buffer does not print
  2006-02-25 11:00 ps-print-buffer does not print Nellinux
  2006-03-01 10:33 ` Peter Dyballa
  2006-03-01 18:56 ` Eli Zaretskii
@ 2006-03-07 19:55 ` Jean-Pierre Moreau
  2 siblings, 0 replies; 5+ messages in thread
From: Jean-Pierre Moreau @ 2006-03-07 19:55 UTC (permalink / raw)



"Nellinux" <nello.sola@libero.it>, 25 Feb 2006 03:00:16 -0800:

> all commands involving postscript printing in Emacs do not work.

My problem is not printing itself, it is gv. I reply here in
case this can help, I just found this problem 3 hours ago.
Probably I will formulate a question for alt.os.linux.slackware.

I have these softwares/systems, similar to OP:

  - Slackware 10.2+ (slackware-current 2006-01-??, not far from 10.2)
  - GNU Emacs 21.4.2
  - CUPS 1.1.23
  - ESP Ghostscript 8.15rc4 (slack package espgs-8.15rc4...)
  - gv-3.5.8
  - HP LaserJet 4m (PostScript) printer (second hand).

I have *similar* problem, not same, with slackware-10.2 emacs
and gv to view, using gv, PostScript files from
emacs ps print to file (ps-print-region / ps-print-buffer.)

In fact, I suppose (who can be sure in this complex world?)
this is Slackware-10.2 gv (gv-3.5.8), not emacs, that has or
from which comes my problem.

Slackware-10.1 gv (gv-3.5.8, *same* version) does NOT have
this problem.

Here the creation and display of PS files:

  slack-10.1$ emacs # C-u M-x ps-print-region ; TO emacs-slack-10.1.ps
  slack-10.1$ gv emacs-slack-10.1.ps #> no problem

Similarly for an emacs PS file created on Slackware-10.2,
gv on Slack-10.1 displays it correctly :

  slack-10.1$ gv emacs-slack-10.2.ps #> no problem

However these ps files from slack-10.1 or 10.2 emacs ps-print commands
have problems in gv of slackware-10.2.

First, these ps files are printed (on paper!) correctly:

  slack-10.2$ lpr emacs-slack-10.1.ps #> Ok.

However gv on Slack-10.2+ has the problem :

 slack-10.2$ gv emacs-slack-10.1.ps #> PROBLEM:

This is postscript page 1 showing the error (NOT a msg box!):

  # ERROR: configurationerror
  # OFFENDING COMMAND: setpagedevice

  # STACK:

  - dictionary -

  # ERRORINFO:

  false
  /ManualFeed

Hope this bring some light (umm... possibly darkens too!).

-- 
Jean-Pierre Moreau
nouser@inexistant (s/nouser/jpmoreau/ ; s/inexistant/gmail.com)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-03-07 19:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-25 11:00 ps-print-buffer does not print Nellinux
2006-03-01 10:33 ` Peter Dyballa
2006-03-01 18:56 ` Eli Zaretskii
2006-03-04  3:07   ` Ian Zimmerman
2006-03-07 19:55 ` Jean-Pierre Moreau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).