[buug] Quick Emacs Macro?

Bob Read unixjavabob at yahoo.com
Tue Jul 6 10:35:26 PDT 2004


?w ?h ? o ?i ?n ?v ?e ?n ?t ?e ?d ?t ?h ?i ?s
?c ?r ?a ?p ?p ?y ?s ?y ?n ? ?a ?x ??

--- Ian Zimmerman <itz at buug.org> wrote:
> 
> Joseph> On Fri, 2004-07-02 at 22:42, Ian Zimmerman
> wrote: Foo bar baz
> Joseph> and turn it into
> 
> Joseph> <a name="Foo_bar_baz"><b>Foo bar baz</b></a>
> 
> Joseph> either prompting for the string to be
> processed or by selecting
> Joseph> it as a region and then using the macro.
> 
> (fset 'xmlize-region
>    [?\M-x ?e ?n ?a ?b ?l ?e ?- ?c ?o ?m ?m ?a ?n ?d
> return
>     ?n ?a ?r ?r ?o ?w ?- ?t ?o ?- ?r ?e ?g ?i ?o ?n
> return 
>     ?\C-x ?\C-x ?\C-x ?\C-x ?\M-w ?\C-x ?\C-x ?< ?/
> ?b ?> 
>     ?< ?/ ?a ?> ?\C-x ?\C-x ?< ?b ?> left left left
> ?< ?> 
>     left ?a ?  ?n ?a ?m ?e ?= ?" ?" left ?\C-y ?\C-x
> ?\C-x 
>     ?\M-x ?n ?a ?r ?r ?o ?w ?- ?t ?o ?- ?r ?e ?g ?i
> ?o ?n return 
>     ?\M-% ?r ?e ?p ?l ?a ?c ?e ?- ?s ?t ?r ?i ?n ?g
> return ?  
>     return ?\M-x ?r ?e ?p ?l ?a ?c ?e ?- ?s ?t ?r ?i
> ?n ?g return ?  
>     return ?_ return ?\M-x ?w ?i ?d ?e ?n return])
> 
> This inserts the literal tags <a> and <b>, which is
> likely not what you
> really wanted :-)
> 
> -- 
> "It's not true or not."  A reality show producer
> (real quote)
> _______________________________________________
> Buug mailing list
> Buug at weak.org
> http://www.weak.org/mailman/listinfo/buug
> 


=====
-----------------------------------------
Bob Read
Exit Code Incorporated
cell (510)-703-1634
unixjavabob at yahoo.com
-----------------------------------------


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail



More information about the buug mailing list