all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Hongyi Zhao <hongyi.zhao@gmail.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Symbol's function definition is void: mathpix-app-id
Date: Wed, 9 Jun 2021 11:53:38 +0300	[thread overview]
Message-ID: <YMCBksXr8uNDjncy@protected.localdomain> (raw)
In-Reply-To: <CAGP6POJnvxKm2BHU32rMdAAfR3jp7=LsFcV6ocP_Jnrp+sEAAg@mail.gmail.com>

* Hongyi Zhao <hongyi.zhao@gmail.com> [2021-06-09 11:40]:
> I try to test the mathpix.el package located at
> <https://github.com/jethrokuan/mathpix.el>, using Emacs git master
> version on Ubuntu 20.04 with the following methods:
> 
> # Clone the github repo:
> $ cd .emacs.d/elpa
> $ git clone https://github.com/jethrokuan/mathpix.el.git mathpix.el.git
> 
> Add the following code snippet into ~/.emacs.d/init.el:
> 
> (load-file "~/.emacs.d/elpa/mathpix.el.git/mathpix.el")
> (mathpix-app-id "app_id")
> (mathpix-app-key "app_key")
> 
> Start Emacs and run the following command to do the test:
> 
> "M-x mathpix-screenshot RET"
> 
> Then I meet the following error:
> 
> Warning (initialization): An error occurred while loading
> ‘/home/apollo/.emacs.d/init.el’:
> 
> Symbol's function definition is void: mathpix-app-id
> 
> To ensure normal operation, you should investigate and remove the
> cause of the error in your initialization file.  Start Emacs with
> the ‘--debug-init’ option to view a complete error backtrace. Disable
> showing Disable logging

(load-file "~/.emacs.d/elpa/mathpix.el.git/mathpix.el")
(mathpix-app-id "app_id")
(mathpix-app-key "app_key")

At first place in a list within parenthesis comes the instruction on
what to do with the list:

Recommended is to evaluate the below:
(info "(eintr) Run a Program")

As in this case `mathpix-app-id' should be instruction to evaluate
something. That instruction is defined as a function usually.

(mathpix-app-id "app_id")

Because the function `mathpix-app-pid' does not exist, there is error.

Instead, what you need most probably is:

(setq mathpix-app-id "app_id")

as then the instruction `set' or "Set quoted" means to assign the
value "app_id" to variable `mathpix-app-id'.


-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



  reply	other threads:[~2021-06-09  8:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-09  8:39 Symbol's function definition is void: mathpix-app-id Hongyi Zhao
2021-06-09  8:53 ` Jean Louis [this message]
2021-06-09  9:21   ` Hongyi Zhao
2021-06-09 11:03     ` Jean Louis

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=YMCBksXr8uNDjncy@protected.localdomain \
    --to=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    --cc=hongyi.zhao@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.