[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [h-e-w] print-NT.el
From: |
Jeff Rancier |
Subject: |
RE: [h-e-w] print-NT.el |
Date: |
Wed, 10 Oct 2001 16:13:02 -0400 |
The weird thing is that if I kill *scratch* and try it, it will fail the
same way as before.
Jeff
-----Original Message-----
From: Jeff Rancier [mailto:address@hidden
Sent: Wednesday, October 10, 2001 3:52 PM
To: Jeff Rancier; address@hidden; Emacs Help (Windows)
Subject: RE: [h-e-w] print-NT.el
I changed the buffer name from *remote print* to *scratch* and it works.
Strange. The only thing I lose is the name of the file.
Jeff
-----Original Message-----
From: address@hidden
[mailto:address@hidden Behalf Of Jeff Rancier
Sent: Wednesday, October 10, 2001 2:48 PM
To: address@hidden; Emacs Help (Windows)
Subject: RE: [h-e-w] print-NT.el
I don't think so. I think it may have something to do with ange-ftp. I'm
sure there is a hook of sorts in the print stuff. Here is my current
function. It works fine on a buffer that isn't using ange-ftp. Otherwise,
it trys to use rsh, which was the whole reason I started this endeavour!
It's like somehow the properties (i.e. being visited via ange-ftp) of
CURRBUFF are getting passed to TMPBUFF. It creates the buffer correctly???
(defun jbr-print-remote-file()
"Allow printing of remote files locally.
Use when no rshd exists or is not active on the remote system."
(interactive)
(save-excursion
(let ((tmpname "*remote print*") (start 0) (end 0))
(if (and transient-mark-mode (not mark-active))
(progn
(setq start (point-min))
(setq end (point-max)))
(progn
(set 'start (point))
(set 'end (mark))))
(let ((currbuff (current-buffer)))
(set-buffer (get-buffer-create tmpname))
(erase-buffer)
(insert-buffer-substring currbuff start end)
(message "Printing %s ..." tmpname)
(nt-ps-print-buffer)))))
-----Original Message-----
From: address@hidden [mailto:address@hidden
Sent: Wednesday, October 10, 2001 2:20 PM
To: Jeff Rancier
Subject: Re: [h-e-w] print-NT.el
Does nt-ps-print-buffer somehow use rsh? If not, I don't see any
way that rsh would get invoked from this code. Forgive the obvious
question...are you sure the code you posted is actually getting called?
I've sometimes changed a defun and either forgot to re-eval it or
re-evaled it but didn't notice it had an error and never took the
place of the old code.
If not, are you saying that simply invoking jbr-print-remote-file
somehow invokes rsh? Very strange indeed...
--
----------------------------------------------------------------------------
--
Christopher J. White
address@hidden
----------------------------------------------------------------------------
--
- RE: [h-e-w] print-NT.el, Jeff Rancier, 2001/10/10
- RE: [h-e-w] print-NT.el, Jeff Rancier, 2001/10/10
- RE: [h-e-w] print-NT.el,
Jeff Rancier <=
- Re: [h-e-w] print-NT.el, Jason Rumney, 2001/10/10
- RE: [h-e-w] print-NT.el, Jeff Rancier, 2001/10/10
- Re: [h-e-w] print-NT.el, Jason Rumney, 2001/10/10
- RE: [h-e-w] print-NT.el, Jeff Rancier, 2001/10/11
- Re: [h-e-w] print-NT.el, Alexander G. Burchell, 2001/10/11
- RE: [h-e-w] print-NT.el, Jeff Rancier, 2001/10/11
- Re: [h-e-w] print-NT.el, Jason Rumney, 2001/10/11
- [h-e-w] Ignoring certain directories in command-completion, Jeff Finger, 2001/10/11
- Re: [h-e-w] Ignoring certain directories in command-completion, Jason Rumney, 2001/10/11
- RE: [h-e-w] print-NT.el, Jeff Rancier, 2001/10/11