[ESS] problem with file extension recognition

Jack ostroffjh at sbcglobal.net
Fri Feb 11 13:50:31 CET 2005


On 2005.02.11 03:13, Martin Maechler wrote:
> >>>>> Jack <ostroffjh at sbcglobal.net> on Wed, 9 Feb 2005 20:14:44
>     Jack> I'm using GNU emacs 20.4.1 and ESSS 5.2.5 and ESS
>     Jack> automatically recognizes any .lst file as a SAS
>     Jack> listing, and makes the buffer read only.
>     Jack> Unfortunately, most of the .lst files I edit are
>     Jack> Oracls sql-plus spool files.  Is there an easy way to
>     Jack> get ESS to not mark a .lst file read only unless it
>     Jack> specifically opens it as the listing from a .sas file?
>     Jack> (I've tried some other versions of emacs and also
>     Jack> xemacs, and the behavior is identical.)  I know I can
>     Jack> toggle the 'read-only' attribute, but I'd rather not
>     Jack> need to.
> 
> Do you need SAS mode at all?
> If not, edit your copy of
>  ess-site.el  (and make sure there's no older version of
>  ess-site.elc )
> 
> by replacing lines 430-431
>   (ess-message "[ess-site:] require 'essd-sas ...")
>   (require 'essd-sas)
> 
> by
>   ;;N This changes ".lst" extension auto-mode:
>   ;;N (ess-message "[ess-site:] require 'essd-sas ...")
>   ;;N (require 'essd-sas)
> 
> If you use ESS for SAS, the solution is to modify
> essl-sas.el  (in a different way) but let's hope you don't need
> SAS anyway...
>
Martin - Thanks for the reply.  Unfortunately, I do use SAS mode
(actually more often than I use R).  However, if the change to
essl-sas.el is too complicated, I suppose I could create an alias to  
sas with and without including ess at all.




More information about the ESS-help mailing list