From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vincent =?UTF-8?Q?Bela=C3=AFche?= Newsgroups: gmane.emacs.bugs Subject: bug#26169: 25.1; ses.el string cell recalculate message Date: Wed, 26 Aug 2020 13:54:19 +0200 Message-ID: References: <87bmsx6era.fsf@blah.blah> <87ft8hqocs.fsf@gnus.org> <87364a4gjy.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39809"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Vincent =?UTF-8?Q?Bela=C3=AFche?= , Kevin Ryde , 26169@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 26 13:55: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 1kAu1F-000ACi-1d for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Aug 2020 13:55:09 +0200 Original-Received: from localhost ([::1]:59460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAu1E-0003FD-2V for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Aug 2020 07:55:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAu18-0003Eu-Sa for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2020 07:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54290) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kAu18-0001Dr-Jj for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2020 07:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kAu18-0003H2-HQ for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2020 07:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vincent =?UTF-8?Q?Bela=C3=AFche?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Aug 2020 11:55: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.159844287912549 (code B ref 26169); Wed, 26 Aug 2020 11:55:02 +0000 Original-Received: (at 26169) by debbugs.gnu.org; 26 Aug 2020 11:54:39 +0000 Original-Received: from localhost ([127.0.0.1]:37603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAu0k-0003GL-Ol for submit@debbugs.gnu.org; Wed, 26 Aug 2020 07:54:39 -0400 Original-Received: from mail-ej1-f68.google.com ([209.85.218.68]:35305) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAu0i-0003G7-Uj for 26169@debbugs.gnu.org; Wed, 26 Aug 2020 07:54:37 -0400 Original-Received: by mail-ej1-f68.google.com with SMTP id a26so2452915ejc.2 for <26169@debbugs.gnu.org>; Wed, 26 Aug 2020 04:54:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ZJw4FiF1Odovsq74hWBs0OdNd8Mq76U1YWjHaR5C09c=; b=e/mVk9AAtrc6y7XmC8t2hPPbsvf4SR/FLwY3H/Oy4iEBuU1jRRfiV5+61Wwx4HYdCL UntZZyUtUc67kFGNvLi9Scm0oCTqb8096oltF9ZBjNrD65Lp/Dwkz8TmreV90iCCN4tg G5Yq4JNH3dA7fBFTZl7XDhhkgU4LrA99wU/RFY4KDQXXt751DhW7BKfl6Jtnj+rfcsO6 jXkl0MsQl41pvIt0OLKFTOv99NcMoU9kkXNOyp62C04+vfBpAA2M2Pvg3+ZD1DxuPHG0 ZXWaRh/ydXL6Oc3a26QPDYgK3yz25mlrPcuqe8mEu2pMVpmd+dfP0aKgIIhv/CIRmH/y pO1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ZJw4FiF1Odovsq74hWBs0OdNd8Mq76U1YWjHaR5C09c=; b=HT85yZM9pD9IuIMXOiDef7HGlFeMVf6pVEInqYGe0oByIPxxHhBavLUxdzxrl4waYw AZJIsP6lqrpGRZH6crJl7/cA1B5Kw8vVufpEkT+sXruoI0IXuIw4FwIT2usn2xHBSc8m PRCWGvsEl9Tm/17dRh2XwN3p9Wdj7UJ1hltBrOS/3wcPoFH3j5h3KuV5bPy9PBl4pxbd xbcjZk8FiPa6ADC+ONoU0FtpbneTHKL+6F/J3NK1teAiGo5TiTEhAa5R0Vyc9trM2eL0 FDBN2PKMaPXJFKkgEOAw+VyTOWg2tS4chv63T64tTWoQfbn0NXOkBiK2zAFaBpaI9Bzj WuWw== X-Gm-Message-State: AOAM531cQZKXuavsVENVByyxKMUh/q1gY+aySm/4cgV49yzg+rXByIiB 8SIeZj3IGCNJ8eFjHj8Grpm32SStd+7K3TKxXDg= X-Google-Smtp-Source: ABdhPJzDlUmz0RYdhYaN1eWNPULw5kpU0EPTO2jJqjEMJP7um8q5IhC69/wiets/26Ipym/Qg65X5mP/0Z1aijSxGvw= X-Received: by 2002:a17:906:b156:: with SMTP id bt22mr1251726ejb.481.1598442871043; Wed, 26 Aug 2020 04:54:31 -0700 (PDT) In-Reply-To: <87364a4gjy.fsf@gnus.org> 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:186425 Archived-At: After some thought the extended format string seems better to me, it could be some separate package as that sort of need is not SES specific, and SES would check if the package is installed or not and use extended format strings if the package is installed. That would be a parameter in the sheet whether is uses extended format strings. So when you share a sheet using extended format with somebody else that do not have a extended formats, they would receive some warning that they need to install the package. V. Le mar. 25 ao=C3=BBt 2020 =C3=A0 22:27, Lars Ingebrigtsen = a =C3=A9crit : > > Vincent Bela=C3=AFche writes: > > > Or we could have some extended format string, like this: > > > > "%?n{%.7g%}%?s{%s%}%?*{%S%}" > > > > where whatever is between %?xxxx{ and %} is conditioned by some > > predicate xxxx that can be n for numberp, s for stringp, and * for > > "none of those at the same level", and some parser would compile this > > format string into > > > > (cond > > ((numberp x) (format "%.7g" x)) > > ((stringp x) (format "%s" x)) > > (t (format "%S" x)) > > Hm... or it could just be an alist like > > ((numberp "%.7g") > (stringp "%s") > (t "%S")) > > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no