From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: Prevent multi-line reformatting of embedded calc results Date: Thu, 05 Nov 2020 11:43:57 +0100 Message-ID: <87tuu4jd76.fsf@gmail.com> References: <87o8kctcqz.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13550"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eric S Fraga Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 05 11:44:55 2020 Return-path: Envelope-to: geh-help-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 1kaclD-0003QN-7v for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 05 Nov 2020 11:44:55 +0100 Original-Received: from localhost ([::1]:45698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaclC-0002DA-4P for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 05 Nov 2020 05:44:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kacks-0002Cz-Ka for help-gnu-emacs@gnu.org; Thu, 05 Nov 2020 05:44:34 -0500 Original-Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:53575) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kackr-0001D6-3H for help-gnu-emacs@gnu.org; Thu, 05 Nov 2020 05:44:34 -0500 Original-Received: by mail-wm1-x332.google.com with SMTP id p22so1084964wmg.3 for ; Thu, 05 Nov 2020 02:44:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version; bh=uswphLqiLQ4C8TeP81F3iuAworZo7c2FOQ5b3DP7gNQ=; b=j3ptWoe4825IPuxEUbiLS3Bd3CjIhqa0sc6AyvBvU9Yajh+AxWNsSiD8q6Su2a+S/Z VSHd0d0JA9HotCIrSeVP6AptMm7QLsD92KHvXFI4k/+XL043JTiwWamVh4kUwBhizgPV +1knPp05YgE1uormCrJiBG8Nts4tQJ1F+5bJHkAE0DO5cUdkSl0vFBY0C/I9OlKrvuGG F9AfctbSfRUN5P8AQ5HTJTBoEnL6sZ7v5JfcSdeGl1+P4/hUFurVvDrbPkIhUKTXpnes 51hFHCphRkHooRMxAiWq5hmt8UY2A31HwRiJVU4rlCWNsbg5ObhX89xOLR1M2SwbENyW 5q+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=uswphLqiLQ4C8TeP81F3iuAworZo7c2FOQ5b3DP7gNQ=; b=anxG14jbOMgrjHqVx07dfFtX902jgTHuDt1WkJZx+JKrfCp66wlYXJCvqemCAWBEfc nLRhWRzrJe87HEvazCIpjUj6uloA2i6DbgND3Oj3eTR3zsLXoeG0lz4QhK6Ta0U5ga1B vGtTzX8V9dgbXPlZV/A9vpJKUxkVTMh8bEc9JR/+6XWwuOcjYPBQY2xlKFJQgpWWou+M URBAgGWaJfnC/IgityIcrIycS5uRA2Rkg8qDYlzslz+xgiAKgktdjU1cutfi9mSxxH0N I6lS6r72QOp8WXjq06EPJtZpufHLAWHnFUQXs9ucW9mwkihBwbpjI1DyPEDOJZB1/yDr L0kQ== X-Gm-Message-State: AOAM533nPBmH8sAE1g6N9LFoHWQiSnCiaZSDcmcbq8yh7Ab02FWSZUbt LUwjOhxv7RbGj2oka1gASooyfZwNBBc= X-Google-Smtp-Source: ABdhPJynU7FqqUCgQaHZOH1ujCCtRaoUSHSVi9qqgfQ8BuR0UErWneu23kqrkxYIX0Kix9sz5Fo2Sg== X-Received: by 2002:a1c:ddd7:: with SMTP id u206mr1977407wmg.27.1604573071172; Thu, 05 Nov 2020 02:44:31 -0800 (PST) Original-Received: from rltb (vav06-1-78-207-202-134.fbx.proxad.net. [78.207.202.134]) by smtp.gmail.com with ESMTPSA id a15sm1898015wrn.75.2020.11.05.02.44.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 02:44:30 -0800 (PST) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <87o8kctcqz.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Thu, 05 Nov 2020 08:43:32 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=rpluim@gmail.com; helo=mail-wm1-x332.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125007 Archived-At: Eric S Fraga writes: > Hello all, > > TL;DR: how do I control (or prevent) the formatting of the evaluated > embedded Calc lines? > > I use embedded Calc quite a bit. In one of my use cases, I have a > specific format expected for the lines as the resulting document is > post-processed. In this case, I want all individual Calc expressions, > including with the => results, to be constrained to a single line each. > > If the overall line ends up longer than the window is wide, Calc > reformats to use multiple lines, breaking at obvious points. Normally, > this would be quite desirable but, in my use case, it breaks the > post-processing. > > I can make the window wider (I do have a very wide screen) but this is > fragile as equations & results get updated automatically and I may not > notice. You could override 'math-format-nice-expr' to not do that. Robert