[ESS] skeleton-pair and XEmacs (Was: skeleton-pair and {})

Rodney Sparapani rsparapa at mcw.edu
Wed Aug 5 23:48:47 CEST 2009


Rodney Sparapani wrote:
> 
> And just for fun, you can make this concisely/elegantly:
> 
> (global-set-key "{" '(lambda ()
>  (interactive)
>  (insert "{")
>  (save-excursion (insert "}"))))

Aha!  Getting back to the original poster's question (sorry for the 
2-year wait Gregor)...  If you try the above in an ESS mode it
doesn't work.  That's because ESS, apparently, has re-defined "{"
as ess-electric-brace.  Similar problems surround "(".  However,
I have now checked in the fix for "(" since it is related to another
bug report with respect to skeleton-pair related breakage.  Not sure 
what to do about "{" yet.

Rodney



More information about the ESS-help mailing list