bug#40155: 27.0.90; `math-truc' called with `nil' during `calc-graph-fast' call

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

bug#40155: 27.0.90; `math-truc' called with `nil' during `calc-graph-fast' call

Narendra Joshi

`calc-graph-fast' with key binding `g f` fails in Emacs calc when
applied to two vectors on the Calc stack. This happens because it
causes `nil` to be passed to `math-trunc' somehow.

I have this configuration to make it work for myself. It seems to
be plotting correctly with this change.

#+begin_src emacs-lisp
(defun calc-math-trunc-nil-filter (arg)
    (when (null arg)
      (message "Warning: `math-trunc' called with `nil'."))
    arg)
(advice-add 'math-trunc :before-while
#'calc-math-trunc-nil-filter)
#+end_src


In GNU Emacs 27.0.90 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.5)
 of 2020-03-02 built on vicarie
Repository revision: fe1a447d52f548441d19af580ed11ef56d4459d2
Repository branch: emacs-27
Windowing system distributor 'The X.Org Foundation', version
11.0.12004000
System Description: Debian GNU/Linux 10 (buster)

Recent messages:
Git finished
Running git push -v gitlab refs/heads/master:refs/heads/master
Git finished
Unbound suffix: ‘- e’ (Use ‘C-g’ to abort, ‘?’ for help) [nil]
Running git push -v github master:master
Mark set
Git finished
Mark saved where search started
Loading /home/narendraj9/.emacs.d/calc.el (source)...done
Welcome to the GNU Emacs Calculator!  Press ‘?’ or ‘h’ for help,
‘q’ to quit
Quit
Configured using:
 'configure --prefix /home/narendraj9/.local/'
Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS GLIB NOTIFY
INOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF
XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD
PDUMPER
LCMS2 GMP
Important settings:
  value of $LANG: en_IN
  locale-coding-system: utf-8

Major mode: Emacs-Lisp

Minor modes in effect:
  global-git-commit-mode: t
  typo-global-mode: t
  projectile-mode: t
  beginend-global-mode: t
  beginend-prog-mode: t
  smartparens-global-mode: t
  erc-list-mode: t
  erc-menu-mode: t
  erc-ring-mode: t
  erc-pcomplete-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-netsplit-mode: t
  erc-autoaway-mode: t
  erc-notify-mode: t
  erc-notifications-mode: t
  erc-spelling-mode: t
  erc-services-mode: t
  erc-networks-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-match-mode: t
  erc-autojoin-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  aggressive-indent-mode: t
  paredit-mode: t
  eval-sexp-fu-flash-mode: t
  flyspell-mode: t
  subword-mode: t
  whitespace-mode: t
  recentf-mode: t
  wrap-region-global-mode: t
  wrap-region-mode: t
  crux-reopen-as-root-mode: t
  shell-dirtrack-mode: t
  volatile-highlights-mode: t
  company-statistics-mode: t
  midnight-mode: t
  async-bytecomp-package-mode: t
  global-auto-revert-mode: t
  yas-global-mode: t
  yas-minor-mode: t
  outline-minor-mode: t
  ivy-mode: t
  delete-selection-mode: t
  global-flycheck-mode: t
  flycheck-mode: t
  which-function-mode: t
  global-company-mode: t
  company-mode: t
  winner-mode: t
  eyebrowse-mode: t
  save-place-mode: t
  which-key-mode: t
  savehist-mode: t
  show-paren-mode: t
  display-battery-mode: t
  display-time-mode: t
  minibuffer-depth-indicate-mode: t
  auto-compile-on-save-mode: t
  auto-compile-mode: t
  override-global-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t
  auto-fill-function: yas--auto-fill
  transient-mark-mode: t
  abbrev-mode: t
  hs-minor-mode: t

Load-path shadows:
/home/narendraj9/.emacs.d/packages/lisp/ox-rss hides
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ox-rss
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-sed
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-sed
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-lua
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-lua
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-octave
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-octave
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-protocol
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-protocol
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-ditaa
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-ditaa
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-stan
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-stan
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-python
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-python
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-shen
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-shen
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ol-w3m
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ol-w3m
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-vala
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-vala
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-capture
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-capture
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ol-eshell
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ol-eshell
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-attach-git
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-attach-git
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-gnuplot
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-gnuplot
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ol-mhe
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ol-mhe
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-lint
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-lint
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ox-icalendar
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ox-icalendar
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-table
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-table
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-latex
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-latex
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-macro
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-macro
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ox-odt
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ox-odt
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ol
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ol
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-habit
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-habit
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-mobile
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-mobile
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-num
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-num
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-element
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-element
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-C
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-C
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-table
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-table
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-lisp
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-lisp
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ol-irc
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ol-irc
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-sass
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-sass
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-mouse
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-mouse
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ol-rmail
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ol-rmail
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-org
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-org
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-core
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-core
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-ocaml
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-ocaml
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-sql
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-sql
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-tangle
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-tangle
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-ledger
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-ledger
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-eshell
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-eshell
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-plantuml
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-plantuml
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-hledger
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-hledger
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ox-man
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ox-man
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-ebnf
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-ebnf
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-dot
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-dot
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-datetree
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-datetree
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-shell
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-shell
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-compat
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-compat
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-lob
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-lob
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-archive
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-archive
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-emacs-lisp
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-emacs-lisp
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-clock
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-clock
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-asymptote
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-asymptote
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ox-beamer
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ox-beamer
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-feed
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-feed
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-io
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-io
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-perl
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-perl
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-maxima
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-maxima
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ox
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ox
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-fortran
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-fortran
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-css
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-css
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-attach
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-attach
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-colview
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-colview
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ox-publish
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ox-publish
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-ruby
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-ruby
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-macs
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-macs
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-mscgen
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-mscgen
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-picolisp
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-picolisp
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-sqlite
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-sqlite
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-timer
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-timer
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-faces
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-faces
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-comint
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-comint
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-src
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-src
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-J
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-J
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-indent
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-indent
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ox-md
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ox-md
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ox-org
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ox-org
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ol-bbdb
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ol-bbdb
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-haskell
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-haskell
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-coq
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-coq
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-js
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-js
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ol-eww
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ol-eww
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-matlab
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-matlab
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-list
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-list
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-agenda
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-agenda
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ox-html
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ox-html
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-abc
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-abc
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-exp
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-exp
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-java
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-java
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-screen
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-screen
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ox-latex
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ox-latex
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ol-docview
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ol-docview
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-pcomplete
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-pcomplete
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-loaddefs
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-loaddefs
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-scheme
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-scheme
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-R
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-R
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-clojure
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-clojure
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ol-gnus
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ol-gnus
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-version
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-version
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-plot
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-plot
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-keys
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-keys
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-calc
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-calc
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-lilypond
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-lilypond
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-entities
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-entities
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-awk
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-awk
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ox-texinfo
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ox-texinfo
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-footnote
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-footnote
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-crypt
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-crypt
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-inlinetask
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-inlinetask
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-processing
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-processing
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-ctags
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-ctags
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-duration
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-duration
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-forth
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-forth
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-ref
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-ref
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-id
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-id
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-tempo
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-tempo
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-makefile
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-makefile
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ol-info
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ol-info
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-goto
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-goto
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-eval
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-eval
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob
hides /home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ol-bibtex
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ol-bibtex
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ob-groovy
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ob-groovy
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/ox-ascii
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/ox-ascii
/home/narendraj9/.emacs.d/packages/elpa/org-plus-contrib-20200309/org-install
hides
/home/narendraj9/.local/share/emacs/27.0.90/lisp/org/org-install

Features:
(shadow sort gnus-config gnus-agent gnus-srvr gnus-score
score-mode
nnvirtual gnus-cache nnir smtpmail gnus-async nntp gnus-msg
gnus-art
mm-uu mml2015 mm-view mml-smime smime dig bbdb-gnus bbdb-mua
bbdb-com
counsel-bbdb bbdb bbdb-site timezone mail-extr emacsbug sendmail
calc-ext calc-menu calc-misc calc calc-loaddefs calc-macs
symbol-overlay
misearch multi-isearch magit-extras bug-reference magit-bookmark
magit-submodule magit-obsolete magit-blame magit-stash
magit-reflog
magit-bisect magit-push magit-pull magit-fetch magit-clone
magit-remote
magit-commit magit-sequence magit-notes magit-worktree magit-tag
magit-merge magit-branch magit-reset magit-files magit-refs
magit-status
magit magit-repos magit-apply magit-wip magit-log magit-diff
smerge-mode
diff magit-core magit-autorevert magit-margin magit-transient
magit-process magit-mode git-commit magit-git magit-section
magit-utils
crm log-edit pcvs-util add-log with-editor typo projectile grep
ibuf-ext
ibuffer ibuffer-loaddefs beginend smartparens epa-file gnutls
erc-list
erc-menu erc-ring erc-pcomplete erc-button erc-fill erc-stamp
erc-netsplit erc-autoaway erc-notify erc-desktop-notifications
erc-spelling erc-config erc-services erc-networks erc-track
erc-match
erc-join erc-goodies erc erc-backend erc-compat erc-loaddefs
aggressive-indent paredit eval-sexp-fu highlight flyspell ispell
cap-words superword subword whitespace recentf bookmark+
bookmark+-key
bookmark+-1 thingatpt+ gnus-sum shr svg dom gnus-group gnus-undo
gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo
gnus-spec gnus-int gnus-range message rfc822 mml mml-sec epa
derived epg
epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev
gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail
rmail-loaddefs rfc2047 rfc2045 ietf-drums mm-util mail-prsvr
bookmark+-bmu org-config org-blog ox-rss ox-gfm ox-md ox-odt
rng-loc
rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse
nxml-ns
nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table
ox-ascii
ox-publish ox org-element avl-tree org-attach org-id org-clock
org-habit
ob-haskell ob-go ob-elixir ob-awk ob-shell ob-C ob-clojure
ob-gnuplot
ob-ruby ob-R ob-ipython python tramp-sh ob-python ob-lisp ob-sql
ob-ditaa picture org-agenda counsel xdg swiper ag vc-svn
find-dired
dired-x dired dired-loaddefs org ob ob-tangle ob-ref ob-lob
ob-table
ob-exp org-macro org-footnote org-src ob-comint org-pcomplete
org-list
org-faces org-entities org-version ob-emacs-lisp ob-core ob-eval
org-table ol org-keys org-compat org-macs org-loaddefs cal-menu
calendar
cal-loaddefs bookmark+-lit bookmark+-mac bookmark
text-property-search
pp view alert log4e notifications dbus xml gntp secrets
quoted-scratch
pulse wrap-region crux tramp tramp-loaddefs trampver
tramp-integration
files-x tramp-compat shell pcomplete parse-time iso8601 time-date
ls-lisp volatile-highlights company-statistics init midnight
server
git-timemachine transient vc-git diff-mode pos-tip info-lookmore
info-look cc-config lsp-ui-flycheck lsp-ui-doc goto-addr
lsp-ui-imenu
lsp-ui-peek lsp-ui-sideline lsp-ui company-lsp helm helm-source
eieio-compat helm-multi-match helm-lib async-bytecomp async
lsp-java
request autorevert mail-utils url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-domsuf mailcap lsp lsp-mode
yasnippet-snippets yasnippet url-util tree-widget wid-edit spinner
network-stream puny nsm rmc markdown-mode thingatpt bicycle
hideshow
noutline outline inline ht filenotify ewoc em-glob esh-util
dash-functional compile comint bindat cc-mode cc-fonts cc-guess
cc-menus
cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ivy-hydra ivy
colir
color ivy-overlay smex ido delsel flycheck ansi-color find-func rx
smart-jump dumb-jump popup f which-func imenu company-oddmuse
company-keywords company-etags etags fileloop generator xref
project
company-gtags company-dabbrev-code company-dabbrev company-files
company-capf company-cmake company-xcode company-clang
company-semantic
company-eclim company-template company-bbdb company winner
eyebrowse
format-spec dash saveplace which-key goto-line-preview vcursor
savehist
hydra ring lv region-bindings-mode paren battery time
minibuffer-command-history mb-depth win-switch windmove appearance
mode-line-config jazz-theme no-littering defs s repeat posframe
cl-extra
help-mode auto-compile packed benchmark-init advice diminish
use-package
pcase cl bind-key easy-mmode finder-inf tex-site kotl-autoloads
proof-site proof-autoloads slime-autoloads edmacro kmacro info
package
easymenu browse-url url-handlers url-parse auth-source cl-seq
eieio
eieio-core cl-macs eieio-loaddefs password-cache json subr-x map
url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs
cl-lib
tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type
mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset
image
regexp-opt fringe tabulated-list replace newcomment text-mode
elisp-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow
isearch
timer select scroll-bar mouse jit-lock font-lock syntax facemenu
font-core term/tty-colors frame minibuffer cl-generic cham
georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote threads dbusbind
inotify lcms2 dynamic-setting system-font-setting
font-render-setting
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 949033 142414)
 (symbols 48 65281 11)
 (strings 32 281662 23502)
 (string-bytes 1 9123122)
 (vectors 16 110308)
 (vector-slots 8 2095071 206222)
 (floats 8 916 1451)
 (intervals 56 4332 1744)
 (buffers 1000 41))

--
Narendra Joshi



Reply | Threaded
Open this post in threaded view
|

bug#40155: 27.0.90; `math-truc' called with `nil' during `calc-graph-fast' call

Mattias Engdegård-2
Thanks for the report. Explanation:

The graph code does

(and (Math-num-integerp lstyle) (math-trunc lstyle))

but Math-num-integerp returns true for nil, and math-trunc returns the argument if it satisfies Math-integerp, which used to return true for nil as well. Thus, the expression above 'works' (ie, returns nil) when lstyle is nil as well.

However, Math-integerp was changed in Emacs 27 to use native bignums, and no longer returns true for nil, resulting in the error. Changing Math-num-integerp to return false for nil would make the code work again, this time in the way originally intended.

Would you try this patch? (Please try various other operations as well, in case the change had unintended consequences.)


0001-Calc-don-t-treat-nil-as-an-integer-bug-40155.patch (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

bug#40155: 27.0.90; `math-truc' called with `nil' during `calc-graph-fast' call

Narendra Joshi
Hi Mattias,

Thanks for the explanation. The patch fixes the original issue and
other calculations I tried didn't seem to be affected.

I found out that `calc` doesn't set the LineStyles (and maybe
PointStyles as well but I am not sure how to hand those over to
gnuplot command) properly for the gnuplot command. I think it should
do something similar to the patch I have attached.

Best,
Narendra

On Fri, Mar 27, 2020 at 6:37 PM Mattias Engdegård <[hidden email]> wrote:

>
> Thanks for the report. Explanation:
>
> The graph code does
>
> (and (Math-num-integerp lstyle) (math-trunc lstyle))
>
> but Math-num-integerp returns true for nil, and math-trunc returns the argument if it satisfies Math-integerp, which used to return true for nil as well. Thus, the expression above 'works' (ie, returns nil) when lstyle is nil as well.
>
> However, Math-integerp was changed in Emacs 27 to use native bignums, and no longer returns true for nil, resulting in the error. Changing Math-num-integerp to return false for nil would make the code work again, this time in the way originally intended.
>
> Would you try this patch? (Please try various other operations as well, in case the change had unintended consequences.)
>

0001-Fix-setting-linestyle-in-calc-graph-fns.patch (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

bug#40155: 27.0.90; `math-truc' called with `nil' during `calc-graph-fast' call

Narendra Joshi
Thanks Mattias. I think it never worked because the code is supposed
to add "ls <the number stored in LineStyles variable" into the buffer
but there seems to be no place which adds "ls" to the command. I will
open a new bug report for this.

Best,
Narendra

On Sat, Mar 28, 2020 at 2:35 PM Mattias Engdegård <[hidden email]> wrote:

>
> 27 mars 2020 kl. 21.54 skrev Narendra Joshi <[hidden email]>:
>
> > Thanks for the explanation. The patch fixes the original issue and
> > other calculations I tried didn't seem to be affected.
>
> Much appreciated -- pushed to emacs-27.
>
> > I found out that `calc` doesn't set the LineStyles (and maybe
> > PointStyles as well but I am not sure how to hand those over to
> > gnuplot command) properly for the gnuplot command. I think it should
> > do something similar to the patch I have attached.
>
> Thank you, but I'm not sure if it's quite that easy. The function (calc-graph-set-styles) seems to parse a plot command in order to modify it. Has this code never worked, or is it just Gnuplot's syntax that has changed?
>
> In any case, I'm closing this bug since the math-trunc error is fixed. You can open a separate bug for the LineStyles and PointStyles problems, and describe what it's all about.
>