GNU bug report logs - #39682
describe-package disabled by help-fns+.elc compiled in older Emacs

Previous Next

Package: emacs;

Reported by: Tim Johnson <tim <at> tj49.com>

Date: Wed, 19 Feb 2020 23:05:02 UTC

Severity: normal

Tags: notabug

Found in version 26.3

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 39682 in the body.
You can then email your comments to 39682 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#39682; Package emacs. (Wed, 19 Feb 2020 23:05:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tim Johnson <tim <at> tj49.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 19 Feb 2020 23:05:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tim Johnson <tim <at> tj49.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.3; Help window for list-packages disabled
Date: Wed, 19 Feb 2020 13:23:32 -0900
Alternate email address is tim <at> akwebsoft.com

;; -------------------------------------------------------------
Problem:
When the following occurs
1) dired+ is loaded
2) package is loaded
3) package is initialized
No *Help* window is opened and the error message: "No Package
Specified" is displayed in the minibuffer.

Test Case:
loading both dired+ and packages AND initializing packages seems to
cause this problem when an abbreviated init.el is used.
If packages is not initialized
OR
dired+ is not loaded
the list-packages *Help* window will be displayed for package info

Code for the test init.el follows:

;; code begins
(add-to-list 'load-path "~/.emacs.d/elisp") ;; edit for your path to dired+
(require 'package)
;; if the following is executed and dired+ is also loaded
;; the list-packages *Help* window will be disabled
(package-initialize)
;; if dired+ is loaded and (package-initialize) is also executed
;; the list-packages *Help* window will be disabled
(require 'dired+)
;; code ends

;; It appears to me that if either of the two cases occur
;; 1) dired+ is NOT loaded
;; 2) package is NOT initialized
;; Then the *Help* window WILL be displayed

;; -------------------------------------------------------------


In GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.30)
of 2020-02-17 built on linus
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description: Ubuntu 16.04.6 LTS

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
scroll-up-command: End of buffer

Configured features:
XPM JPEG TIFF GIF PNG SOUND GSETTINGS GLIB NOTIFY ACL GNUTLS LIBXML2
FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 XDBE XIM THREADS

Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t

Load-path shadows:
/home/tim/.emacs.d/elpa/bm-20190807.1217/bm hides ~/.emacs.d/elisp/bm
~/.emacs.d/elisp/newcomment hides 
/usr/local/share/emacs/26.3/lisp/newcomment

Features:
(shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa
epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair edmacro
kmacro easy-mmode derived advice dired+ image-dired image-mode
format-spec image-file help-fns+ wid-edit help-fns radix-tree help-mode
dired-x dired-aux dired dired-loaddefs cl finder-inf
dired-single-autoloads idomenu-autoloads iodine-theme-autoloads info
mark-tools-autoloads molokai-theme-autoloads show-marks-autoloads
fm-autoloads simpleclip-autoloads visible-mark-autoloads package
easymenu epg-config url-handlers url-parse auth-source cl-seq eieio
eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt
gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads inotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 174874 7573)
(symbols 48 25419 1)
(miscs 40 95 146)
(strings 32 45594 1867)
(string-bytes 1 1401206)
(vectors 16 18756)
(vector-slots 8 554228 11294)
(floats 8 67 93)
(intervals 56 265 0)
(buffers 992 13)
(heap 1024 23260 1613))

-- 
Tim Johnson
http://www.tj49.com

-- 
Tim
tj49.com





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39682; Package emacs. (Thu, 20 Feb 2020 00:48:01 GMT) Full text and rfc822 format available.

Message #8 received at 39682 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Tim Johnson <tim <at> tj49.com>
Cc: 39682 <at> debbugs.gnu.org
Subject: Re: bug#39682: 26.3; Help window for list-packages disabled
Date: Wed, 19 Feb 2020 19:47:19 -0500
retitle 39682 26.3; Help window for list-packages disabled when dired+ is loaded
tags 39682 + unreproducible
quit

Tim Johnson <tim <at> tj49.com> writes:

> ;; code begins
> (add-to-list 'load-path "~/.emacs.d/elisp") ;; edit for your path to dired+
> (require 'package)
> ;; if the following is executed and dired+ is also loaded
> ;; the list-packages *Help* window will be disabled
> (package-initialize)
> ;; if dired+ is loaded and (package-initialize) is also executed
> ;; the list-packages *Help* window will be disabled
> (require 'dired+)
> ;; code ends
>
> ;; It appears to me that if either of the two cases occur
> ;; 1) dired+ is NOT loaded
> ;; 2) package is NOT initialized
> ;; Then the *Help* window WILL be displayed

You mean the one that pops up when pressing '?' in the *Packages*
buffer?  Seems to work for me regardless of whether or not dired+ is
loaded.




Changed bug title to '26.3; Help window for list-packages disabled when dired+ is loaded' from '26.3; Help window for list-packages disabled' Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 20 Feb 2020 00:48:02 GMT) Full text and rfc822 format available.

Added tag(s) unreproducible. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 20 Feb 2020 00:48:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39682; Package emacs. (Thu, 20 Feb 2020 01:53:01 GMT) Full text and rfc822 format available.

Message #15 received at 39682 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Noam Postavsky <npostavs <at> gmail.com>, Tim Johnson <tim <at> tj49.com>
Cc: 39682 <at> debbugs.gnu.org
Subject: RE: bug#39682: 26.3; Help window for list-packages disabled
Date: Wed, 19 Feb 2020 17:50:12 -0800 (PST)
> retitle 39682 26.3; Help window for list-packages disabled when dired+ is
> loaded
> tags 39682 + unreproducible
> quit

Give it any title you like, of course.

But I think this title may be misleading.
IIUC, the problem arises also without Dired+
- with el-get.el instead, for example.

https://lists.gnu.org/archive/html/help-gnu-emacs/2020-02/msg00101.html




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39682; Package emacs. (Thu, 20 Feb 2020 02:03:02 GMT) Full text and rfc822 format available.

Message #18 received at 39682 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 39682 <at> debbugs.gnu.org, Tim Johnson <tim <at> tj49.com>
Subject: Re: bug#39682: 26.3; Help window for list-packages disabled
Date: Wed, 19 Feb 2020 21:01:57 -0500
Drew Adams <drew.adams <at> oracle.com> writes:

>> retitle 39682 26.3; Help window for list-packages disabled when dired+ is
>
> Give it any title you like, of course.
>
> But I think this title may be misleading.
> IIUC, the problem arises also without Dired+
> - with el-get.el instead, for example.
>
> https://lists.gnu.org/archive/html/help-gnu-emacs/2020-02/msg00101.html

As far as I understood that thread, it was el-get in addition to
dired+.  This bug report doesn't mention el-get though.  And so far I
haven't been able to reproduce problem anyway.

Tim, could you post what M-: (tabulated-list-get-id) RET gives when this
problem happens?  (That seems to be important part of
package-menu-describe-package, which is what '?' calls.)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39682; Package emacs. (Thu, 20 Feb 2020 17:00:07 GMT) Full text and rfc822 format available.

Message #21 received at 39682 <at> debbugs.gnu.org (full text, mbox):

From: Tim Johnson <tim <at> tj49.com>
To: Noam Postavsky <npostavs <at> gmail.com>, Drew Adams <drew.adams <at> oracle.com>
Cc: 39682 <at> debbugs.gnu.org
Subject: Re: bug#39682: 26.3; Help window for list-packages disabled
Date: Thu, 20 Feb 2020 07:52:39 -0900
On 2/19/20 5:01 PM, Noam Postavsky wrote:
> Drew Adams <drew.adams <at> oracle.com> writes:
>
>>> retitle 39682 26.3; Help window for list-packages disabled when dired+ is
>> Give it any title you like, of course.
>>
>> But I think this title may be misleading.
>> IIUC, the problem arises also without Dired+
>> - with el-get.el instead, for example.
>>
>> https://lists.gnu.org/archive/html/help-gnu-emacs/2020-02/msg00101.html
> As far as I understood that thread, it was el-get in addition to
> dired+.  This bug report doesn't mention el-get though.  And so far I
> haven't been able to reproduce problem anyway.
>
> Tim, could you post what M-: (tabulated-list-get-id) RET gives when this
> problem happens?  (That seems to be important part of
> package-menu-describe-package, which is what '?' calls.)
>
Sorry about that Drew. The conclusions from the thread were as you 
describe them. While following code from el-get I found that the error 
manifested at the point of a sexp that loaded packages with additional 
arguments. I.E. in

el-get-elpa.el  -> (require 'package nil t) or something like that.

I'm operating with a bare minimum of elisp knowledge AND I've been 
retired for 5 years. ... :)

Here is *Messages* and tabulated-list-get-id

For information about GNU Emacs and the GNU system, type C-h C-a.
Importing package-keyring.gpg...done
Package refresh done
No package specified
Quit
#s(package-desc ace-window (0 9 0) "Quickly switch windows." ((avy (0 2 
0))) single "gnu" nil ((:keywords "window" "location") (:authors ("Oleh 
Krehel" . "ohwoeowho <at> gmail.com")) (:maintainer "Oleh Krehel" . 
"ohwoeowho <at> gmail.com") (:url . "https://github.com/abo-abo/ace-window")) 
nil)

HTH

-- 
Tim
tj49.com





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39682; Package emacs. (Thu, 20 Feb 2020 17:13:02 GMT) Full text and rfc822 format available.

Message #24 received at 39682 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Tim Johnson <tim <at> tj49.com>, Noam Postavsky <npostavs <at> gmail.com>
Cc: 39682 <at> debbugs.gnu.org
Subject: RE: bug#39682: 26.3; Help window for list-packages disabled
Date: Thu, 20 Feb 2020 09:12:15 -0800 (PST)
Thanks for clarifying. And congratulations (!) on retiring.

> Sorry about that Drew. The conclusions from the thread were as you
> describe them. While following code from el-get I found that the error
> manifested at the point of a sexp that loaded packages with additional
> arguments. I.E. in
> 
> el-get-elpa.el  -> (require 'package nil t) or something like that.
> 
> I'm operating with a bare minimum of elisp knowledge AND I've been
> retired for 5 years. ... :)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39682; Package emacs. (Thu, 20 Feb 2020 17:54:01 GMT) Full text and rfc822 format available.

Message #27 received at 39682 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Tim Johnson <tim <at> tj49.com>
Cc: 39682 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#39682: 26.3; Help window for list-packages disabled
Date: Thu, 20 Feb 2020 12:53:17 -0500
Tim Johnson <tim <at> tj49.com> writes:

> Here is *Messages* and tabulated-list-get-id
>
> For information about GNU Emacs and the GNU system, type C-h C-a.
> Importing package-keyring.gpg...done
> Package refresh done
> No package specified
> Quit
> #s(package-desc ace-window (0 9 0) "Quickly switch windows." ((avy (0
> 2 0))) single "gnu" nil ((:keywords "window" "location") (:authors
> ("Oleh Krehel" . "ohwoeowho <at> gmail.com")) (:maintainer "Oleh Krehel"
> . "ohwoeowho <at> gmail.com") (:url
> . "https://github.com/abo-abo/ace-window")) nil)

Hmm, that seems like it should be okay.  What about

    M-: (package-desc-p (tabulated-list-get-id)) RET

Also try (setq debug-on-message "No package specified") and then trigger
the error again.  Perhaps the resulting backtrace will give some hints
as to what is happening.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39682; Package emacs. (Thu, 20 Feb 2020 20:13:01 GMT) Full text and rfc822 format available.

Message #30 received at 39682 <at> debbugs.gnu.org (full text, mbox):

From: Tim Johnson <tim <at> tj49.com>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 39682 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#39682: 26.3; Help window for list-packages disabled
Date: Thu, 20 Feb 2020 11:12:49 -0900
Following Noam's instructions, here is a dump of *Messages*

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

For information about GNU Emacs and the GNU system, type C-h C-a.
Importing package-keyring.gpg...done
Package refresh done
No package specified
t
No package specified
previous-line: Beginning of buffer
t
"No package specified"
No package specified
Entering debugger...

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

I note that

(package-desc-p (tabulated-list-get-id))
just returns t

below is dump of *Backtrace* using different methods
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Debugger entered--Lisp error: "No package specified"
  message("No package specified")
  describe-package(#s(package-desc :name ack :version (1 8) :summary "interface to ack-like tools" :reqs nil :kind tar :archive "gnu" :dir nil :extras ((:url . "https://github.com/leoliu/ack-el") (:maintainer "João Távora" . "joaotavora <at> gmail.com") (:authors ("Leo Liu" . "sdl.web <at> gmail.com")) (:keywords "tools" "processes" "convenience")) :signed nil))
  package-menu-describe-package()
  funcall-interactively(package-menu-describe-package)
  call-interactively(package-menu-describe-package nil nil)
  command-execute(package-menu-describe-package)
  recursive-edit()
  debug(error "No package specified")
  message("No package specified")
  describe-package(#s(package-desc :name ack :version (1 8) :summary "interface to ack-like tools" :reqs nil :kind tar :archive "gnu" :dir nil :extras ((:url . "https://github.com/leoliu/ack-el") (:maintainer "João Távora" . "joaotavora <at> gmail.com") (:authors ("Leo Liu" . "sdl.web <at> gmail.com")) (:keywords "tools" "processes" "convenience")) :signed nil))
  package-menu-describe-package()
  funcall-interactively(package-menu-describe-package)
  call-interactively(package-menu-describe-package nil nil)
  command-execute(package-menu-describe-package)
  recursive-edit()
  debug(error "No package specified")
  message("No package specified")
  describe-package(#s(package-desc :name ace-window :version (0 9 0) :summary "Quickly switch windows." :reqs ((avy (0 2 0))) :kind single :archive "gnu" :dir nil :extras ((:keywords "window" "location") (:authors ("Oleh Krehel" . "ohwoeowho <at> gmail.com")) (:maintainer "Oleh Krehel" . "ohwoeowho <at> gmail.com") (:url . "https://github.com/abo-abo/ace-window")) :signed nil))
  package-menu-describe-package(#<marker (moves after insertion) at 8 in *Packages*>)
  button-activate(#<marker (moves after insertion) at 8 in *Packages*> t)
  push-button(8 t)
  push-button((mouse-2 (#<window 6 on *Packages*> 8 (65 . 11) 260014406 nil 8 (7 . 0) nil (2 . 11) (9 . 17))))
  funcall-interactively(push-button (mouse-2 (#<window 6 on *Packages*> 8 (65 . 11) 260014406 nil 8 (7 . 0) nil (2 . 11) (9 . 17))))
  call-interactively(push-button nil nil)
  command-execute(push-button)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

On 2/20/20 8:53 AM, Noam Postavsky wrote:
> (setq debug-on-message "No package specified")
Thanks

-- 
Tim
tj49.com





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39682; Package emacs. (Thu, 20 Feb 2020 20:23:02 GMT) Full text and rfc822 format available.

Message #33 received at 39682 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Tim Johnson <tim <at> tj49.com>
Cc: 39682 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#39682: 26.3; Help window for list-packages disabled
Date: Thu, 20 Feb 2020 15:22:23 -0500
Tim Johnson <tim <at> tj49.com> writes:

> (package-desc-p (tabulated-list-get-id))
> just returns t

>   message("No package specified")
>   describe-package(#s(package-desc :name ack :version (1 8) :summary...
>   package-menu-describe-package()

Hmm, very strange.  Could you step through describe-package with edebug,
and see how this condition is getting taken, even though package-desc-p
should apparently be returning t?

  (if (not (or (package-desc-p package) (and package (symbolp package))))
      (message "No package specified")





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39682; Package emacs. (Thu, 20 Feb 2020 21:17:01 GMT) Full text and rfc822 format available.

Message #36 received at 39682 <at> debbugs.gnu.org (full text, mbox):

From: Tim Johnson <tim <at> tj49.com>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 39682 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#39682: 26.3; Help window for list-packages disabled
Date: Thu, 20 Feb 2020 12:16:41 -0900
Noam, I am not familiar with edebug.

Can you give me some more code examples?

On 2/20/20 11:22 AM, Noam Postavsky wrote:
> Tim Johnson <tim <at> tj49.com> writes:
>
>> (package-desc-p (tabulated-list-get-id))
>> just returns t
>>    message("No package specified")
>>    describe-package(#s(package-desc :name ack :version (1 8) :summary...
>>    package-menu-describe-package()
> Hmm, very strange.  Could you step through describe-package with edebug,
> and see how this condition is getting taken, even though package-desc-p
> should apparently be returning t?
>
>    (if (not (or (package-desc-p package) (and package (symbolp package))))
>        (message "No package specified")
>
>
-- 
Tim
tj49.com





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39682; Package emacs. (Thu, 20 Feb 2020 21:31:02 GMT) Full text and rfc822 format available.

Message #39 received at 39682 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Tim Johnson <tim <at> tj49.com>
Cc: 39682 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#39682: 26.3; Help window for list-packages disabled
Date: Thu, 20 Feb 2020 16:30:46 -0500
Tim Johnson <tim <at> tj49.com> writes:

> Noam, I am not familiar with edebug.
>
> Can you give me some more code examples?

Basically just put point on the source code of describe-package, and hit
C-u C-M-x, that will instrument the function.  Then run
package-menu-describe-package with "?" or however, and you will stop in
describe-package.  Press space to step through each expression.

> On 2/20/20 11:22 AM, Noam Postavsky wrote:
>> Tim Johnson <tim <at> tj49.com> writes:
>>
>>> (package-desc-p (tabulated-list-get-id))
>>> just returns t
>>>    message("No package specified")
>>>    describe-package(#s(package-desc :name ack :version (1 8) :summary...
>>>    package-menu-describe-package()
>> Hmm, very strange.  Could you step through describe-package with edebug,
>> and see how this condition is getting taken, even though package-desc-p
>> should apparently be returning t?
>>
>>    (if (not (or (package-desc-p package) (and package (symbolp package))))
>>        (message "No package specified")
>>
>>




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39682; Package emacs. (Thu, 20 Feb 2020 23:16:02 GMT) Full text and rfc822 format available.

Message #42 received at 39682 <at> debbugs.gnu.org (full text, mbox):

From: Tim Johnson <tim <at> tj49.com>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 39682 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#39682: 26.3; Help window for list-packages disabled
Date: Thu, 20 Feb 2020 14:14:20 -0900
I'm sorry, but I am not seeing anything that edifies me. Pressing SPC 
does take me through the function, but the edebug instrumentation ends 
at the end of defun without showing me anything that I could share.

But, there is something else that may be helpful:

The source code I am directed to is

.emacs.d/elpa/help-fns+-20170223.733/help-fns+.el

Does it not appear that I am executing an override function perhaps from 
an older version of the helps-fns+ package?

Before I look for an upgrade, I wanted all concerned to read this in 
case you have other analysis in mind.

On 2/20/20 12:30 PM, Noam Postavsky wrote:
> Tim Johnson <tim <at> tj49.com> writes:
>
>> Noam, I am not familiar with edebug.
>>
>> Can you give me some more code examples?
> Basically just put point on the source code of describe-package, and hit
> C-u C-M-x, that will instrument the function.  Then run
> package-menu-describe-package with "?" or however, and you will stop in
> describe-package.  Press space to step through each expression.
>
>> On 2/20/20 11:22 AM, Noam Postavsky wrote:
>>> Tim Johnson <tim <at> tj49.com> writes:
>>>
>>>> (package-desc-p (tabulated-list-get-id))
>>>> just returns t
>>>>     message("No package specified")
>>>>     describe-package(#s(package-desc :name ack :version (1 8) :summary...
>>>>     package-menu-describe-package()
>>> Hmm, very strange.  Could you step through describe-package with edebug,
>>> and see how this condition is getting taken, even though package-desc-p
>>> should apparently be returning t?
>>>
>>>     (if (not (or (package-desc-p package) (and package (symbolp package))))
>>>         (message "No package specified")
>>>
>>>
-- 
Tim
tj49.com





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39682; Package emacs. (Thu, 20 Feb 2020 23:39:02 GMT) Full text and rfc822 format available.

Message #45 received at 39682 <at> debbugs.gnu.org (full text, mbox):

From: Tim Johnson <tim <at> tj49.com>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 39682 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#39682: 26.3; Help window for list-packages disabled
Date: Thu, 20 Feb 2020 14:38:41 -0900
Possible solution!

I loaded emacs -q, ran list-packages, look at the info for help-fns+.el 
and understood that it would need to be re-compiled with a newer version 
of emacs.

I just re-compiled help-fns+.el as per instructions in the info file and 
the problem is solved.

I have much snow to shovel here - may not check email for several hours.

Hopefully further testing won't turn up further hiccups.

cheers

tim

On 2/20/20 12:30 PM, Noam Postavsky wrote:
> Tim Johnson <tim <at> tj49.com> writes:
>
>> Noam, I am not familiar with edebug.
>>
>> Can you give me some more code examples?
> Basically just put point on the source code of describe-package, and hit
> C-u C-M-x, that will instrument the function.  Then run
> package-menu-describe-package with "?" or however, and you will stop in
> describe-package.  Press space to step through each expression.
>
>> On 2/20/20 11:22 AM, Noam Postavsky wrote:
>>> Tim Johnson <tim <at> tj49.com> writes:
>>>
>>>> (package-desc-p (tabulated-list-get-id))
>>>> just returns t
>>>>     message("No package specified")
>>>>     describe-package(#s(package-desc :name ack :version (1 8) :summary...
>>>>     package-menu-describe-package()
>>> Hmm, very strange.  Could you step through describe-package with edebug,
>>> and see how this condition is getting taken, even though package-desc-p
>>> should apparently be returning t?
>>>
>>>     (if (not (or (package-desc-p package) (and package (symbolp package))))
>>>         (message "No package specified")
>>>
>>>
-- 
Tim
tj49.com





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39682; Package emacs. (Fri, 21 Feb 2020 00:03:01 GMT) Full text and rfc822 format available.

Message #48 received at 39682 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Tim Johnson <tim <at> tj49.com>, Noam Postavsky <npostavs <at> gmail.com>
Cc: 39682 <at> debbugs.gnu.org
Subject: RE: bug#39682: 26.3; Help window for list-packages disabled
Date: Thu, 20 Feb 2020 16:02:39 -0800 (PST)
> Possible solution!
> 
> I loaded emacs -q, ran list-packages, look at the info for help-fns+.el
> and understood that it would need to be re-compiled with a newer version
> of emacs.
> 
> I just re-compiled help-fns+.el as per instructions in the info file and
> the problem is solved.

I'm glad you seem to have solved the problem.

But I don't understand how you got help-fns+.el[c] loaded if you started Emacs using `emacs -q', which doesn't load your init file.

The original problem really needs to have been narrowed down to only the library (or libraries) really necessary to repro the problem.

To be clear, what happens if you ensure that you load _only_ el-get.el, and not help-fns+.el or dired+.el or anything else?  E.g., use just `M-x load-file' for elget.el (or elget.elc).
 
> I have much snow to shovel here - may not check email for several hours.

That'll probably keep you healthy.  Good shoveling.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39682; Package emacs. (Fri, 21 Feb 2020 01:26:01 GMT) Full text and rfc822 format available.

Message #51 received at 39682 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 39682 <at> debbugs.gnu.org, Tim Johnson <tim <at> tj49.com>
Subject: Re: bug#39682: 26.3; Help window for list-packages disabled
Date: Thu, 20 Feb 2020 20:25:13 -0500
retitle 39682 describe-package disabled by help-fns+.elc compiled in older Emacs
tags 39682 = notabug
close 39682
quit

Drew Adams <drew.adams <at> oracle.com> writes:

>> Possible solution!
>> 
>> I loaded emacs -q, ran list-packages, look at the info for help-fns+.el
>> and understood that it would need to be re-compiled with a newer version
>> of emacs.
>> 
>> I just re-compiled help-fns+.el as per instructions in the info file and
>> the problem is solved.
>
> I'm glad you seem to have solved the problem.
>
> But I don't understand how you got help-fns+.el[c] loaded if you
> started Emacs using `emacs -q', which doesn't load your init file.
>
> The original problem really needs to have been narrowed down to only
> the library (or libraries) really necessary to repro the problem.

Yeah, help-fns+ wasn't even mentioned until now, so this was all a bit
surprising.  However, looking at its code I think it's clear what the
problem was: help-fns+ has a copy of the describe-package function,
which it overrides the builtin one with.  The describe-package code
contains a call to package-desc-p which is an inline function.  So a
help-fns+.elc produced by an older version of Emacs uses an older
version of package-desc-p that gives the wrong answer when handed a
new-style struct (i.e., a record rather than a vector).  That's why it
decides that it's been handed something that doesn't specify a package
and complains.

Anyway, I don't think there's anything to fix here, so I'm closing the
report.




Changed bug title to 'describe-package disabled by help-fns+.elc compiled in older Emacs' from '26.3; Help window for list-packages disabled when dired+ is loaded' Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 21 Feb 2020 01:26:02 GMT) Full text and rfc822 format available.

Added tag(s) notabug; removed tag(s) unreproducible. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 21 Feb 2020 01:26:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 39682 <at> debbugs.gnu.org and Tim Johnson <tim <at> tj49.com> Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 21 Feb 2020 01:26:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39682; Package emacs. (Fri, 21 Feb 2020 01:48:02 GMT) Full text and rfc822 format available.

Message #60 received at 39682 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Tim Johnson <tim <at> tj49.com>, 39682 <at> debbugs.gnu.org
Subject: RE: bug#39682: 26.3; Help window for list-packages disabled
Date: Thu, 20 Feb 2020 17:47:28 -0800 (PST)
> describe-package works fine when I invoke
> emacs -q and then load el-get only.

What's needed is a minimal recipe, which involves only the one (or perhaps two) libraries that repro the problem.

Maybe the problem is only in help-fns+.el.  Or maybe it's only in dired+.el.  Or maybe it was only in an old byte-compiled help-fns+.el.

The point is that as long as multiple things are loaded it's hard to know what's going on, especially at a distance.

Ideally, it would be narrowed down to a single library, and even to just some of the code in that library.

My guess now, based on the fact that help-fns+.el redefines `describe-package' (to add a cross-reference to the manuals), is that help-fns+.el alone is probably causing (or probably caused) the problem.

And if the problem was only with an older help-fns+.elc (byte-compiled) then that's probably the explanation.  The library has two different definitions of `describe-package', depending on which Emacs version you have (because they changed the vanilla code for it, on which the library's code is based).

If your older Emacs version was prior to Emacs 24.4 then the older definition of `describe-package' was used in the byte-compiled file.  And that likely won't work with Emacs 24.4 or later.

It would be good to know for sure that that was the problem.  But if you no longer have the old help-fns+.elc (byte-compiled before Emacs 24.4) then there's probably no way to reproduce the problem anymore.

---

Anyway, I see now that Noam has replied more or less the same thing, and has closed the bug report.

Thanks for reporting the problem and trying to track it down.  Sorry to all for the trouble.

> >> I have much snow to shovel here - may not check email for several hours.
> > That'll probably keep you healthy.  Good shoveling.
> Starting now ...

Just don't overdo it. ;-)  Good luck.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39682; Package emacs. (Fri, 21 Feb 2020 02:08:02 GMT) Full text and rfc822 format available.

Message #63 received at 39682 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 39682 <at> debbugs.gnu.org, Tim Johnson <tim <at> tj49.com>
Subject: Re: bug#39682: 26.3; Help window for list-packages disabled
Date: Thu, 20 Feb 2020 21:07:21 -0500
Drew Adams <drew.adams <at> oracle.com> writes:

> It would be good to know for sure that that was the problem.  But if
> you no longer have the old help-fns+.elc (byte-compiled before Emacs
> 24.4) then there's probably no way to reproduce the problem anymore.

I can reproduce it with

emacs-25.3 -Q --batch -l package -f batch-byte-compile help-fns+.el
emacs-26.3 -Q -l package -l help-fns+.elc -f list-packages -f package-menu-describe-package




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39682; Package emacs. (Fri, 21 Feb 2020 03:28:01 GMT) Full text and rfc822 format available.

Message #66 received at 39682 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 39682 <at> debbugs.gnu.org, Tim Johnson <tim <at> tj49.com>
Subject: RE: bug#39682: 26.3; Help window for list-packages disabled
Date: Thu, 20 Feb 2020 19:27:35 -0800 (PST)
> I can reproduce it with
> 
> emacs-25.3 -Q --batch -l package -f batch-byte-compile help-fns+.el
> emacs-26.3 -Q -l package -l help-fns+.elc -f list-packages -f package-menu-
> describe-package

Good.  Then it's just what we thought.  Thx.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39682; Package emacs. (Fri, 21 Feb 2020 18:21:01 GMT) Full text and rfc822 format available.

Message #69 received at 39682 <at> debbugs.gnu.org (full text, mbox):

From: Tim Johnson <tim <at> tj49.com>
To: Drew Adams <drew.adams <at> oracle.com>, Noam Postavsky <npostavs <at> gmail.com>
Cc: 39682 <at> debbugs.gnu.org
Subject: Re: bug#39682: 26.3; Help window for list-packages disabled
Date: Fri, 21 Feb 2020 09:20:50 -0900
On 2/20/20 6:27 PM, Drew Adams wrote:
>> I can reproduce it with
>>
>> emacs-25.3 -Q --batch -l package -f batch-byte-compile help-fns+.el
>> emacs-26.3 -Q -l package -l help-fns+.elc -f list-packages -f package-menu-
>> describe-package
> Good.  Then it's just what we thought.  Thx.
>
I guess from my perspective this is not so much a bug as a strategic 
omission on my part.

Since yesterday, I've found a number of discussions of remedial 
byte-compiling of packages following upgrades of emacs. The onus is kind 
of on the user.

-- 
Tim
tj49.com





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 21 Mar 2020 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 92 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.