From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: SES local variables to define printers Date: Sat, 25 May 2013 21:17:10 -0400 Message-ID: References: <80vc666ba5.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369531052 22245 80.91.229.3 (26 May 2013 01:17:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 May 2013 01:17:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Vincent =?iso-8859-1?Q?Bela=EFche?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 26 03:17:31 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UgPaS-0001f8-SS for ged-emacs-devel@m.gmane.org; Sun, 26 May 2013 03:17:28 +0200 Original-Received: from localhost ([::1]:49808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgPaS-00041b-FB for ged-emacs-devel@m.gmane.org; Sat, 25 May 2013 21:17:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgPaK-00041J-FM for emacs-devel@gnu.org; Sat, 25 May 2013 21:17:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UgPaC-0001BF-2z for emacs-devel@gnu.org; Sat, 25 May 2013 21:17:20 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:30663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgPaB-0001Az-Us for emacs-devel@gnu.org; Sat, 25 May 2013 21:17:12 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpZ3p/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IPAS-Result: Av4EABK/CFFFpZ3p/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="14467825" Original-Received: from 69-165-157-233.dsl.teksavvy.com (HELO pastel.home) ([69.165.157.233]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 25 May 2013 21:17:06 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 028426C0BC; Sat, 25 May 2013 21:17:10 -0400 (EDT) In-Reply-To: <80vc666ba5.fsf@gmail.com> ("Vincent =?iso-8859-1?Q?Bela=EFch?= =?iso-8859-1?Q?e=22's?= message of "Sat, 25 May 2013 22:43:14 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:159803 Archived-At: > 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