From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#26169: 25.1; ses.el string cell recalculate message Date: Thu, 20 Aug 2020 18:22:11 +0200 Message-ID: <87ft8hqocs.fsf@gnus.org> References: <87bmsx6era.fsf@blah.blah> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11517"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Vincent =?UTF-8?Q?Bela=C3=AFche?= , 26169@debbugs.gnu.org To: Kevin Ryde Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 20 18:23:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k8nLK-0002pj-OO for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Aug 2020 18:23:10 +0200 Original-Received: from localhost ([::1]:39456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k8nLJ-0002Q3-G6 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Aug 2020 12:23:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k8nLC-0002Pt-Qw for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2020 12:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60344) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k8nLC-0000bh-Hl for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2020 12:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k8nLC-0006DP-D2 for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2020 12:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Aug 2020 16:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26169 X-GNU-PR-Package: emacs Original-Received: via spool by 26169-submit@debbugs.gnu.org id=B26169.159794054623834 (code B ref 26169); Thu, 20 Aug 2020 16:23:02 +0000 Original-Received: (at 26169) by debbugs.gnu.org; 20 Aug 2020 16:22:26 +0000 Original-Received: from localhost ([127.0.0.1]:43657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8nKc-0006CL-LI for submit@debbugs.gnu.org; Thu, 20 Aug 2020 12:22:26 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:59536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8nKY-0006C7-QI for 26169@debbugs.gnu.org; Thu, 20 Aug 2020 12:22:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6bokyMgXGhRwVezYe8pneVXtySSab2gl0Gt+plQSRTw=; b=etjws74Zx0itEFgpWQw3JaFBdA F6hJ8B/9MLpP1qXed4G4HAlCE3YycUvOL+O3FOZxpc7ssa6d5Tf21cZKjCHJpyd1zhEQsGT2maL+q d9TxpnMcHA0D9+FpWNHqie0pcfcfxtCCGsa6/EbiTwiHteZPlY/5+D0IrBKM/93YmCCE=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k8nKP-0006hA-Mi; Thu, 20 Aug 2020 18:22:16 +0200 X-Now-Playing: The Declining Winter's _Endless Scenery_: "Alsager Commerce" In-Reply-To: <87bmsx6era.fsf@blah.blah> (Kevin Ryde's message of "Sun, 19 Mar 2017 16:02:01 +1100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:185717 Archived-At: Kevin Ryde writes: > In debian packaged emacs 25.1.1, starting "emacs -Q /tmp/foo.ses" > > " Ret # create a cell with a string > hello Ret # the string content > C-p # move point to that cell > c # ses-recalculate-cell > => > Format specifier doesn't match argument type: A1 > > I expected recalc on a string cell to leave it unchanged. > The message looks like a caught error, but I don't know if it's > something bad or merely unsightly. The same happens in emacs 24. > > Occasionally I've had c on a string cell clear it to nil. I'll see if I > can make something reproducable for that, if it could be related. I had a peek at ses.el (a package I don't use regularly), and something like the following fixes the problem, but is probably totally the wrong solution. I've Cc'd the maintainer on this -- Vincent? diff --git a/lisp/ses.el b/lisp/ses.el index 96b219fc60..e396cc72ac 100644 --- a/lisp/ses.el +++ b/lisp/ses.el @@ -1231,7 +1231,9 @@ ses-print-cell (ses--col col)) (ses-call-printer (or printer (ses-col-printer col) - ses--default-printer) + (if (stringp value) + "%7s" + ses--default-printer)) value))) (if (consp ses-call-printer-return) ;; Printer returned an error. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no