emacs-devel
[Top][All Lists]
Advanced

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

Re: SES local variables to define printers


From: Stefan Monnier
Subject: Re: SES local variables to define printers
Date: Sat, 25 May 2013 21:17:10 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> Here is an example "example.ses", if you open it with the current SES it
> will generate an error "Invalid printer" while it used to work --- don't
> remember with which version, but that sort of thing was working one year
> or so ago.

It doesn't work with any of Debian's Emacs-24.1, Emacs-23.4, or
Emacs-22.3.  It must have been something different.

> If you take my patch (attached as ses.el.gz) and configure
> ses-enable-local-variables you will have desired printing.

How 'bout:

You add to your .emacs

   (defun my-checked-time (x)
     (let ((calc-float-format '(fix 1)) (calc-hms-format "%sh %sm %ss"))
       (math-format-value x)))
   (defun my-tbc-time (x)
     (let ((calc-float-format '(fix 1))(calc-hms-format "?? %sh %sm %ss"))
       (math-format-value x)))

and then you can use those printer functions in your ses files.

It's simple and safe, and it works without any changes.


        Stefan



reply via email to

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