From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: Re: ses-mode runs unsafe functions even if you say "n" when prompted Date: Sat, 22 Sep 2007 14:42:54 -0400 Message-ID: References: <46F2DB73.30908@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190486625 25176 80.91.229.12 (22 Sep 2007 18:43:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Sep 2007 18:43:45 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Michael Schierl Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 22 20:43:39 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IZ9x4-0000vD-0e for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2007 20:43:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZ9x1-0002a2-Of for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2007 14:43:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IZ9x0-0002Zr-2w for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2007 14:43:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IZ9wz-0002Zf-A3 for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2007 14:43:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZ9wz-0002ZZ-2R for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2007 14:43:33 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IZ9wy-0002c0-NL for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2007 14:43:32 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IZ9wM-0001b5-7z; Sat, 22 Sep 2007 14:42:54 -0400 X-Spook: Sears Tower MP5K-SD M-14 JSOFC3IP Aldergrove bullion X-Ran: q*RB]Jff"'>WOm]hVM=Rv<9! List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16597 Archived-At: Michael Schierl wrote: > Formula (progn A1 (kill-emacs) 11) > might be unsafe (function kill-emacs). Process it? (y or n) > > - Watch emacs to close anyway Thanks. Can you try this patch please (apply to ses.el, then byte-compile the file). *** lisp/ses.el 25 Jul 2007 04:47:03 -0000 1.30.2.3 --- lisp/ses.el 22 Sep 2007 02:47:02 -0000 *************** *** 628,635 **** (let ((oldval (ses-cell-value cell)) (formula (ses-cell-formula cell)) newval) ! (if (eq (car-safe formula) 'ses-safe-formula) ! (ses-set-cell row col 'formula (ses-safe-formula (cadr formula)))) (condition-case sig (setq newval (eval formula)) (error --- 628,636 ---- (let ((oldval (ses-cell-value cell)) (formula (ses-cell-formula cell)) newval) ! (when (eq (car-safe formula) 'ses-safe-formula) ! (setq formula (ses-safe-formula (cadr formula))) ! (ses-set-cell row col 'formula formula)) (condition-case sig (setq newval (eval formula)) (error