unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Shuguang Sun" <shuguang79@qq.com>
To: "41285" <41285@debbugs.gnu.org>
Subject: bug#41285: 28.0.50; bibtex-Book not defined
Date: Sat, 16 May 2020 10:22:43 +0800	[thread overview]
Message-ID: <tencent_1AF895CE17D7C33965B2A281834C79E9BE09@qq.com> (raw)
In-Reply-To: <87zha9gzai.fsf@qq.com>

[-- Attachment #1: Type: text/plain, Size: 943 bytes --]

Hi,

It looks like the enclosing of the defalias and lamba is wrong. The body of th lambda is enclosed in the document.

Patch attached. Please review.

BR
Shuguang Sun


------------------ Original ------------------
Date: Fri, May 15, 2020 08:25 PM
To: "bug-gnu-emacs"<bug-gnu-emacs@gnu.org>;

Subject: 28.0.50; bibtex-Book not defined



Dear,

When I run bibtex-Book (C-c C-e b) in bibtex-mode buffer, it is said
"command-execute: Wrong type argument: commandp, bibtex-Book".
I think it happened after 	6bcf7912aad6312d4bd521a3b8b5d9638d83dfa1 (patch), where it uses defalias to replace defun.

BR
Shuguang Sun



In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.17.3)
 of 2020-05-15 built on lilydjwg
Repository revision: 779bc886f9bc2e3188bf2577c3df2ae662ca1b98
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12008000
System Description: Manjaro Linux

[-- Attachment #2: bibtex_book-entry_bracket.diff --]
[-- Type: application/octet-stream, Size: 832 bytes --]

warning: LF will be replaced by CRLF in lisp/textmodes/bibtex.el.
The file will have its original line endings in your working directory
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el
index fa82227f36..63abd19b6d 100644
--- a/lisp/textmodes/bibtex.el
+++ b/lisp/textmodes/bibtex.el
@@ -3559,9 +3559,9 @@ bibtex-set-dialect
               (lambda ()
                 (:documentation
                  (format "Insert a template for a @%s entry; see also `bibtex-entry'."
-                         entry)
+                         entry))
                  (interactive "*")
-                 (bibtex-entry entry)))))
+                 (bibtex-entry entry))))
           ;; Menu entries
           (define-key menu-map (vector fname)
             `(menu-item ,(or (nth 1 elt) (car elt)) ,fname))))

  reply	other threads:[~2020-05-16  2:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-15 12:25 bug#41285: 28.0.50; bibtex-Book not defined Shuguang Sun
2020-05-16  2:22 ` Shuguang Sun [this message]
2020-05-16  7:05   ` Eli Zaretskii
2020-05-16 13:09     ` Stefan Monnier
2020-05-16  7:34   ` Andreas Schwab

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=tencent_1AF895CE17D7C33965B2A281834C79E9BE09@qq.com \
    --to=shuguang79@qq.com \
    --cc=41285@debbugs.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.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).