emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Colin Baxter <m43cap@yandex.com>
To: emacs-orgmode@gnu.org
Subject: Re: wrong-type-argument stringp nil
Date: Fri, 19 Feb 2021 16:31:12 +0000	[thread overview]
Message-ID: <87k0r4aujz.fsf@yandex.com> (raw)
In-Reply-To: <875z2oukqu.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Fri, 19 Feb 2021 15:42:49 +0000")

Dear Eric,
>>>>> Eric S Fraga <e.fraga@ucl.ac.uk> writes:

    > On Friday, 19 Feb 2021 at 14:11, Colin Baxter wrote:
    >> I getting the Lisp error: (wrong-type-argument stringp nil) when
    >> I 'C-c C-c' the babel gnuplot source code "poynting", even though
    >> the pdf graph is produced correctly. Any help at debugging would
    >> be much appreciated.

    > Works fine for me.  No error.  I initially I thought maybe you
    > needed a horizontal line dividing the headings from the numbers
    > but works fine without.

    > What version of org are you using?

    > You could "M-x toggle-debug-on-error RET" to see where the error
    > happens?

Found the error! In my ~/.emacs, I have a defun

#+begin_src elisp
(defun cb/display-inline-images ()
  (condition-cl-case nil
      (org-display-inline-images)
    (error nil)))
#+end_src

Changing the 'condition-cl-case' to 'condition-case' removed the
error. Interestingly, debug on error using emacs-27.1 configured for
the lucid pointed explicitly to the defun, whereas emacs-27.1 configured
for gtk3 didn't! Any idea why that should be?

Best wishes,

Colin.


      reply	other threads:[~2021-02-19 16:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-19 14:11 wrong-type-argument stringp nil Colin Baxter
2021-02-19 15:42 ` Eric S Fraga
2021-02-19 16:31   ` Colin Baxter [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k0r4aujz.fsf@yandex.com \
    --to=m43cap@yandex.com \
    --cc=emacs-orgmode@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).