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: Tue, 28 May 2013 00:57:41 -0400 Message-ID: References: <808v2z3ei3.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369717090 22476 80.91.229.3 (28 May 2013 04:58:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 May 2013 04:58:10 +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 Tue May 28 06:58:09 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 1UhBz6-0002oX-Fx for ged-emacs-devel@m.gmane.org; Tue, 28 May 2013 06:58:08 +0200 Original-Received: from localhost ([::1]:40856 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhBz6-0000g0-7F for ged-emacs-devel@m.gmane.org; Tue, 28 May 2013 00:58:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhByt-0000fr-Bt for emacs-devel@gnu.org; Tue, 28 May 2013 00:58:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhByj-0002n4-2Q for emacs-devel@gnu.org; Tue, 28 May 2013 00:57:55 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:31604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhByi-0002lL-Ub for emacs-devel@gnu.org; Tue, 28 May 2013 00:57:45 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFMCpOt/2dsb2JhbABEvw4Xc4IfAQVWIxALNBIUGA0kiCSxH5AOjRqDcAOkeoFegxOBSw X-IPAS-Result: Av4EABK/CFFMCpOt/2dsb2JhbABEvw4Xc4IfAQVWIxALNBIUGA0kiCSxH5AOjRqDcAOkeoFegxOBSw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="14785187" Original-Received: from 76-10-147-173.dsl.teksavvy.com (HELO pastel.home) ([76.10.147.173]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 28 May 2013 00:57:38 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id D29DD67B0B; Tue, 28 May 2013 00:57:41 -0400 (EDT) In-Reply-To: <808v2z3ei3.fsf@gmail.com> ("Vincent =?iso-8859-1?Q?Bela=EFch?= =?iso-8859-1?Q?e=22's?= message of "Tue, 28 May 2013 06:38:44 +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:159849 Archived-At: > - the user would call some ses-define-local-printer interactive command, > and would enter some symbol and body Not even. He could just use the normal `p' (ses-read-cell-printer) command and enter a lambda expression. In response SES would offer to give it a name and ask the user what name to use. > - the symbol to function would be saved in some hashmap or alist, or > somthing like that, and saved in some special slot in the sheet, like > at the end of the sheet where you can column count and row count, or > like in a file local variable (second is probably the simplest, let us > not re-invent the wheel). I'd add it to the file as a (ses-define-local-printer ..) call alongside the various (ses-cell ...) calls. But if you want to use a file-local variable, that's fine as well (tho there might be size-limit issues with using file-local variables). Stefan