emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

23.0.60; Allow ELinks in Emacs frames, or, Generalizing browse-url.el's


From: Gwern Branwen
Subject: 23.0.60; Allow ELinks in Emacs frames, or, Generalizing browse-url.el's browse-url-lynx-emacs
Date: Tue, 16 Oct 2007 17:55:18 -0400
User-agent: Mutt/1.5.16 (2007-06-09)

Browse-url.el offers a neat function browse-url-lynx-emacs which opens up a 
Lynx browser within the current Emacs frame; this is very nice for binding so 
you can quickly follows hyperlinks and works very will with documentation and 
stuff like email in Gnus.

But I don't use Lynx, don't have it installed; looking through the source, 
there doesn't seem to be anything truly Lynx specific about it, and in fact, 
just substituting 'elinks' for 'lynx' (and removing one or two superfluous 
lines) seems to work fine.

Even better would be a general function which just runs a specified text 
browser (since there are a lot more than just ELinks and Lynx out there).  It 
wouldn't be terribly difficult to do - add a parameter to it, replace 
browse-url-lynx-emacs with a specialization of the generalization and you are 
more or less done (although I don't know how one would handle the various 
variables tweaking browse-url-lynx-emacs); I've attached a sort of example.

--
gwern
tiger Bubba plutonium Fiel Cross quarter Tangimoana Vale president M72750

--text follows this line--
 Please write in English if possible, because the Emacs maintainers usually do 
not have translators to read other languages for them.  In GNU Emacs 23.0.60.1 
(x86_64-unknown-linux-gnu, GTK+ Version 2.12.0)  of 2007-10-15 on craft 
Windowing system distributor `The X.Org Foundation', version 11.0.10400000 
configured using `configure  '--with-gtk' '--enable-font-backend' '--with-xft' 
'--with-gif=no'' Important settings:   value of $LC_ALL: en_US.utf8   value of 
$LC_COLLATE: nil value of $LC_CTYPE: nil   value of $LC_MESSAGES: nil   value 
of $LC_MONETARY: nil value of $LC_NUMERIC: nil   value of $LC_TIME: nil   value 
of $LANG: nil   value of $XMODIFIERS: nil   locale-coding-system: utf-8-unix 
default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes 
in effect:   change-cursor-mode: t   recentf-mode: t   display-time-mode: t 
msb-mode: t   icomplete-mode: t   iswitchb-mode: t   show-paren-mode: t 
tooltip-mode: t mouse-wheel-mode: t   file-name-shadow-mode: t 
global-font-lock-mode: t font-lock-mode: t   blink-cursor-mode: t 
global-auto-composition-mode: t auto-composition-mode: t auto-compression-mode: 
t   column-number-mode: t line-number-mode: t transient-mark-mode: t Recent 
input: M-x r e p o r - <backspace> t - e <tab> <return> B  r o w s <backspace> 
<backspace> <backspace> <backspace>  <backspace> B r <backspace> <backspace> A 
l l o w SPC  e <backspace> E l <backspace> L i n k s SPC i n SPC  f r 
<backspace> <backspace> E m a c s SPC f r a m e  s , SPC o r , SPC G e n e r a 
l i z i n g SPC b r o  w s e = <backspace> - u r l . e l ' s SPC M-e <left>  
<left> <end> M-c <left> <end> b r o w s e - u r l -  l y n x - e m a c s 
<return> B r o w s e - u r l .  e l SPC i n c l u d e s SPC a SPC n i f t y SPC 
f u  n c t i o n SPC <next> <prior> <insert> C-g <return> a a a a <down> <down> 
<down> <up> <right> <up> <right>  <right> <right> <right> <right> <right> 
<right> <right>  <right> <right> <right> <right> <right> <right> <right>  
<right> <right> <right> C-/ C-/ C-/ C-/ C-/ C-/ C-/  C-x k <return> C-x k 
<return> C-x 0 C-x k <return>  M-x <up> <return> Recent messages: Loading 
dupwords...done Loading recentf...done Starting new Ispell process [default] 
... Beginning idle-require Auto-saving... Type y, n, ! or SPC (the space bar):  
Quit Auto-saving...done Undo! [5 times] undo-more: No further undo information 
undo-more: No further undo information

Attachment: browse-url
Description: Text document

Attachment: pgpxT3qrdfXou.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]