From: "Bruno Félix Rezende Ribeiro" <oitofelix@gnu.org>
To: Narendra Joshi <narendraj9@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: Patch for a simple nil check in `calc-graph-add-curve'
Date: Wed, 08 Apr 2020 11:47:53 -0300 [thread overview]
Message-ID: <87zhbmf2zq.fsf@oitofelix.com> (raw)
In-Reply-To: <CAHCj4z74z7P47XTN75jw_Yj2WGgkboocsTtjZ=39t13Uopdyvw@mail.gmail.com> (Narendra Joshi's message of "Sat, 21 Mar 2020 22:56:36 +0100")
[-- Attachment #1: Type: text/plain, Size: 1090 bytes --]
Hello,
FWIW, this has /not/ been integrated into master yet.
Narendra Joshi <narendraj9@gmail.com> writes:
> A simple `calc-graph-fast' call with the following values on Emacs
> Calc stack fails:
> 3: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
> 2: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
> 1: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
> <top of the stack>
> It fails because `calc-graph-fast` eventually calls `math-trunc` on
> the line and point style values which aren't set yet. Since they are
> `nil` we should avoid calling `math-trunc` on them and take a default
> value. The patch just adds a `nil` check for these variables `lstyles`
> (LineStyles) and `pstyles` (PointStyles).
> - Narendra
> On Sat, Mar 21, 2020 at 9:27 PM Eli Zaretskii <eliz@gnu.org> wrote:
>> > From: Narendra Joshi <narendraj9@gmail.com>
>> > Date: Sat, 21 Mar 2020 20:48:52 +0100
>> > Can someone please add this simple `nil' check in the attached patch?
>> Thanks, but could you please provide the rationale?
--
Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF]
<http://oitofelix.freeshell.org/>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]
next prev parent reply other threads:[~2020-04-08 14:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-21 19:48 Patch for a simple nil check in `calc-graph-add-curve' Narendra Joshi
2020-03-21 20:27 ` Eli Zaretskii
2020-03-21 21:56 ` Narendra Joshi
2020-04-08 14:47 ` Bruno Félix Rezende Ribeiro [this message]
2020-04-08 15:10 ` Eli Zaretskii
2020-04-08 15:27 ` Narendra Joshi
2020-04-10 14:07 ` Bruno Félix Rezende Ribeiro
2020-04-10 14:31 ` Robert Pluim
2020-04-10 15:33 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zhbmf2zq.fsf@oitofelix.com \
--to=oitofelix@gnu.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=narendraj9@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.