From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Vincent_Bela=EFche?= Newsgroups: gmane.emacs.devel Subject: Re: SES local variables to define printers Date: Sun, 26 May 2013 22:25:58 +0200 Message-ID: <801u8tcwtl.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1369600015 28467 80.91.229.3 (26 May 2013 20:26:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 May 2013 20:26:55 +0000 (UTC) To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 26 22:26:52 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 1UghWm-00077R-FR for ged-emacs-devel@m.gmane.org; Sun, 26 May 2013 22:26:52 +0200 Original-Received: from localhost ([::1]:39013 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UghWl-0005Ei-UA for ged-emacs-devel@m.gmane.org; Sun, 26 May 2013 16:26:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UghWg-0005ER-Vp for emacs-devel@gnu.org; Sun, 26 May 2013 16:26:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UghWb-0007dC-9n for emacs-devel@gnu.org; Sun, 26 May 2013 16:26:46 -0400 Original-Received: from smtp03.smtpout.orange.fr ([80.12.242.125]:25771 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UghWb-0007d8-4S for emacs-devel@gnu.org; Sun, 26 May 2013 16:26:41 -0400 Original-Received: from CHOUNEK ([92.135.235.217]) by mwinf5d38 with ME id gkSe1l0074i6Ly403kSedF; Sun, 26 May 2013 22:26:40 +0200 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.12.242.125 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:159813 Archived-At: Stefan Monnier a =E9crit : >> Well, it also means that your .emacs will grow endlessly as you create >> new sheets, and also that you cannot archive the sheet+printer in the >> same batch easily. > > I find it odd that the set of printer functions would grow endlessly > with the number of sheets; I'd expect there to be a fairly limited > number of them, but maybe they differ in "minor" details. > Well, mainly some surounding of the information, some number formatting, etc... as you have a great number of possible combinations, that would really make things grow endlessly. In fact I think that the simplest/safest way would be if the printer would be some string, that SES would interprete to build the function. The thing is that I need to extend the format %d %f and on on to cover Calc objects. This is something which I had already being thinking about for some time, but I have not yet dared go into it. > But it sounds like you'd want to extend SES so that you can store/share > definitions of functions in the SES file. > > E.g. when you do `p (lambda (...)) RET' SES could immediately ask you to > name that function and save the result somewhere in the file. > That would not really make it safer because any hacker could find the `somewhere in the file' and put some malicious definition there. >> border effect and without any loop structure. > > Actually, loop structure doesn't sound problematic w.r.t safety. > > My concern was more about getting the system stuck, but you still have the C-g > Stefan > Vincent.