* browse-url-generic-program not reporting stdout
@ 2004-12-10 22:55 Dan Jacobson
0 siblings, 0 replies; 2+ messages in thread
From: Dan Jacobson @ 2004-12-10 22:55 UTC (permalink / raw)
I did (setq browse-url-generic-program "wwwoffle")
but do not see wwwoffle's "Requesting: http://bla.bla..."
message which I expect in the minibuffer.
I suppose stdout isn't interesting to it.
OK, I suppose it detaches etc. so can't talk anymore.
(I was wanting a way to register urls for later fetching.)
It would be neat if I was asked to confirm I want to requst the URL too.
A confirm varible that would trigger a y-or-no p.
Because these ffap days, it's so easy to do find-file on an URL.
Wait, I should be able to give differnt lettered responses depending
on if I want to browse it with firefly, flowerfox or whatever, or
register it with wwwoffle, or chicken out.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: browse-url-generic-program not reporting stdout
[not found] <mailman.5288.1102809530.27204.bug-gnu-emacs@gnu.org>
@ 2004-12-13 19:29 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2004-12-13 19:29 UTC (permalink / raw)
Dan Jacobson wrote:
> I did (setq browse-url-generic-program "wwwoffle")
> but do not see wwwoffle's "Requesting: http://bla.bla..."
> message which I expect in the minibuffer.
> I suppose stdout isn't interesting to it.
>
> OK, I suppose it detaches etc. so can't talk anymore.
> (I was wanting a way to register urls for later fetching.)
Well, it's definitely intentional: browse-url-generic calls
browse-url-generic-program via start-process and specifies nil as the
BUFFER argument. In fact, all the browse-url- commands that call
start-process do the same.
You could simply replace those occurrences of nil with a buffer name
that you could display. And since almost all those commands return the
process object, you could write an after advice that sets the process
filter to a simple function to display the output via message.
Emacs could easily be enhanced with a couple new variables for the user
to customize: browse-url-process-buffer and -filter.
> It would be neat if I was asked to confirm I want to requst the URL too.
> A confirm varible that would trigger a y-or-no p.
> Because these ffap days, it's so easy to do find-file on an URL.
That is something that is trivial for a power user like yourself:
(defadvice browse-url-generic (around y-or-n-p activate)
"Query the user for confirmation before loading the URL."
(and (y-or-n-p (format "Load <url:%s>? " (ad-get-arg 0)))
ad-do-it))
> Wait, I should be able to give differnt lettered responses depending
> on if I want to browse it with firefly, flowerfox or whatever, or
> register it with wwwoffle, or chicken out.
That would require a little more hacking.
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-13 19:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.5288.1102809530.27204.bug-gnu-emacs@gnu.org>
2004-12-13 19:29 ` browse-url-generic-program not reporting stdout Kevin Rodgers
2004-12-10 22:55 Dan Jacobson
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).