From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Symbol's function definition is void: mathpix-app-id Date: Wed, 9 Jun 2021 17:21:51 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8008"; mail-complaints-to="usenet@ciao.gmane.io" To: Hongyi Zhao , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 09 11:22:31 2021 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 1lquPv-0001rY-P2 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 09 Jun 2021 11:22:31 +0200 Original-Received: from localhost ([::1]:39486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lquPt-0008LL-VI for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 09 Jun 2021 05:22:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60338) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lquPX-0008LC-Fl for help-gnu-emacs@gnu.org; Wed, 09 Jun 2021 05:22:07 -0400 Original-Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]:35573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lquPV-0003Wj-6B for help-gnu-emacs@gnu.org; Wed, 09 Jun 2021 05:22:07 -0400 Original-Received: by mail-lf1-x12e.google.com with SMTP id i10so36941076lfj.2 for ; Wed, 09 Jun 2021 02:22:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=biKVJoX8UviDTdc4FwTpZIyJQUxnQ7g8msfA5lv+f8M=; b=Bl8HQv/iISKmQ/5/Nn1SAFzGUOTofsaiA5iLFf1063R9i2+yDy+foYrfF+VkqDLEsn IinbZl9a034a4z3s0uFN3DAE6jEAW9hXUf/UiJsLa0eLOmb8bEzM1+FMfArBEK12uyoW FbWLOEJeWYvJjkXHSxCB7BikkT1D9aKYnYtH8kc9Oy39tLmrGOBAlyedvWT8z8HYZLR6 AO+cDmZAuJNZKB/poxEbn2GvQ7ef58kTjFu844Xz8FmTZWbGI9lhdggpLBVOhK39rqyL ogjkk608qx3AF/+ezEZrCUikknkWt9/a0b0O5tjwhOKvbNl9Pef3SHEQFszmtvI4KiDc Znsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=biKVJoX8UviDTdc4FwTpZIyJQUxnQ7g8msfA5lv+f8M=; b=WYf9wtXHJ4V5Dl7YGeomop7TTPxN9wvIIgJQSEkVE334Dxi1n85OwI54NPKjIwgtGa m0hbRb5LQqQELAMHvzNA4QqDboGTGSpaDJ5v+oNNqH1LA4mJGJa4ei2VO6gCK6rxV7hy o2ks4/o4xNOAoIpYaPZJ3n2XqTzp4jr3nPJZDe2jsJKlI4mMHsBbdbZmgCNIoCQ1kA5I upTDhhoBif2hRowFauaVeP88nCC2oIWzQgB/mkTlBhcEhrlYk1NpUunSkPc361TnBaK0 ip2S6RGd41eMgh+TSZj9zNzP0ArKdiY9z45OB9XBG27c8vKvEs0zxR4BW/TTmMDfPQyN TJdg== X-Gm-Message-State: AOAM533yLfgrT1RpGg0GoEen5nYInW3rrMY9z4ME9xvprOusbcgJDwHg wsZ06MFqYtrXl9wUiEzby6mXMPgtwpo7UVPzbNU= X-Google-Smtp-Source: ABdhPJyyjm6HjZ5+Ugri36fXPKnUQ27vGSGBE9ZzkaSWKDqblzLgr4MW7ufkJT850nlqw5LZ5OnwIqHxyHHz7RPeeYk= X-Received: by 2002:a05:6512:1144:: with SMTP id m4mr19080202lfg.390.1623230523145; Wed, 09 Jun 2021 02:22:03 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x12e.google.com 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:130668 Archived-At: On Wed, Jun 9, 2021 at 4:56 PM Jean Louis wrote: > > * Hongyi Zhao [2021-06-09 11:40]: > > I try to test the mathpix.el package located at > > , 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 > > =E2=80=98/home/apollo/.emacs.d/init.el=E2=80=99: > > > > 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 =E2=80=98--debug-init=E2=80=99 option to view a complete error back= trace. 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'. > According to your above comment, I adopt with the following settings: (load-file "~/.emacs.d/elpa/mathpix.el.git/mathpix.el") (setq mathpix-app-id "my_app_id") (setq mathpix-app-key "my_app_key") But I still can't do the conversion successfully and will meet the following info in the *Messages* buffer: Public/repo/github.com/jwiegley/use-package.git/bind-key.el: Warning: Use keywords rather than deprecated positional arguments to `define-minor-mode' Loading /home/apollo/.emacs.d/elpa/mathpix.el.git/mathpix.el (source)...don= e .emacs.d/init.el: Warning: (lambda nil \.\.\.) quoted with ' rather than wi= th #' For information about GNU Emacs and the GNU system, type C-h C-a. Content not found [2 times] Regards --=20 Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering NO. 552 North Gangtie Road, Xingtai, China