all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: 36066@debbugs.gnu.org
Subject: bug#36066: 27.0.50; Error for C-h f in help-fns--first-release
Date: Mon, 03 Jun 2019 04:09:40 +0200	[thread overview]
Message-ID: <87tvd7to63.fsf@web.de> (raw)


Hello,

for some functions I can't show *Help* with C-h f because I get an error
like this:

Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
  add-text-properties(nil nil (button (t) category #:help-news-button help-args nil) nil)
  make-text-button(nil nil type help-news help-args nil)
  help-fns--first-release(my-edebug-setup-hook-fun)
  help-fns--mention-first-release(my-edebug-setup-hook-fun)
  run-hook-with-args(help-fns--mention-first-release my-edebug-setup-hook-fun)
  describe-function-1(my-edebug-setup-hook-fun)
  describe-function(my-edebug-setup-hook-fun)

Seems the variable "first" is never set and ends up nil, thus the error.
It often happens to functions in my init file FWIW.

BTW, the calculation/heuristic also seems not very clever in some cases.
E.g. in emacs -Q I define

(defun f () nil)

C-h f f

    f is a Lisp closure.

    (f)

      Probably introduced at or before Emacs version 1.6.

(defun test () nil)

C-h f test

    test is a Lisp closure.

    (test)

      Probably introduced at or before Emacs version 15.

Etc.  Shouldn't it be obvious to Emacs that I defined the functions?


TIA,

Michael







             reply	other threads:[~2019-06-03  2:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-03  2:09 Michael Heerdegen [this message]
2019-06-03  2:14 ` bug#36066: 27.0.50; Error for C-h f in help-fns--first-release Eric Abrahamsen
2019-06-03  2:33   ` Michael Heerdegen
2019-06-03  2:27 ` Eric Abrahamsen
2019-06-03  2:37   ` Michael Heerdegen
2019-06-03  2:46     ` Eric Abrahamsen
2019-06-03 15:17       ` npostavs

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=87tvd7to63.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=36066@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 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.