all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [Bruce Ingalls] browse-url patch
@ 2004-02-05 15:49 Dave Love
  0 siblings, 0 replies; only message in thread
From: Dave Love @ 2004-02-05 15:49 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 57 bytes --]

This is clearly bogus, but I guess I should pass it on.


[-- Attachment #2: Type: message/rfc822, Size: 3694 bytes --]

From: Bruce Ingalls <bingalls@nj.rr.com>
To: fx@gnu.org
Subject: browse-url patch
Date: Mon, 26 Jan 2004 12:02:31 -0500
Message-ID: <40154827.4080309@nj.rr.com>

Hi.
In the process of maintaining <url: http://emacro.sourceforge.net/ > I 
wrote some code, which may be useful to include into browse-url.el.
If you do have time to review the code that I've written in 
e-browser.el; it may be that I am writing unnecessary code, as it was 
started before browse-url got to be as good as it currently is.
Essentially, e-browser.el tries to be a little more user-friendly, by 
check the PATH to the browser, and choosing one.

I noticed that you do look somewhat at the gnome default browser, in 
browse-url, but this may be better code.
This snippet of code sets "use-browser" to the default under Gnome (or w32)

  (let ((e-def-browser (shell-command-to-string
     "gconftool-2 --get /desktop/gnome/url-handlers/http/command")))
  (cond
;;   ((string-match "w32" (symbol-name window-system))
;;    (defconst use-browser 'default))    ;w32 supports a default browser
;;Else assume this is Gnome v2, and check for default browser
   (e-def-browser
    (defconst use-browser        ;Trim any typical " %s" off end
      (substring e-def-browser 0 (string-match "[ \t]%s" e-def-browser))))

Does this get synched automatically with Emacs, or do I have to send 
this patch seperately to the maintainer of browse-url.el for FSF/Gnu Emacs?

I also include code in e-browser, such as
      (defconst browse-url-browser-function 'browse-url-netscape)
      (defconst browse-url-netscape-program "MozillaFirebird")))
However, this leads to an annoying message at the bottom
    "Starting Netscape..."
How can I override this?

I would like to support other text-mode browsers, such as links and 
elinks, but lynx is hard coded and not overridable in browse-url.

Thanks for this wonderful piece of software!



[-- Attachment #3: Type: text/plain, Size: 148 bytes --]

_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-02-05 15:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-05 15:49 [Bruce Ingalls] browse-url patch Dave Love

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.