unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Error when completing C-h f
@ 2017-02-20 16:53 Yuri D'Elia
  2017-02-20 17:19 ` Kaushal Modi
  2017-02-21  3:10 ` Michael Heerdegen
  0 siblings, 2 replies; 5+ messages in thread
From: Yuri D'Elia @ 2017-02-20 16:53 UTC (permalink / raw)
  To: emacs-devel

On the current master, I noticed this error when completing for some
function names, such as ``C-h f package-'':

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  string-match("\\(\\`\\|/\\)package-x\\(\\.elc\\|\\.el\\|\\.so\\)?\\(\\.gz\\)?\\'" nil nil)
  help--loaded-p("package-x")
  help--load-prefixes((("package-" "package-x" "package")))
  help--symbol-completion-table("package-" #[257 "\300!\206	\211\301N\207" [fboundp function-documentation] 3 "\n\n(fn F)"] lambda)
  test-completion("package-" help--symbol-completion-table #[257 "\300!\206	\211\301N\207" [fboundp function-documentation] 3 "\n\n(fn F)"])
  completion--do-completion(20 27)

It seems that I have a bare (nil) in the load-history, which
help--loaded-p doesn't like.

Is this expected?
This doesn't occur on emacs 25.1




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Error when completing C-h f
  2017-02-20 16:53 Error when completing C-h f Yuri D'Elia
@ 2017-02-20 17:19 ` Kaushal Modi
  2017-02-20 17:23   ` Yuri D'Elia
  2017-02-21  3:10 ` Michael Heerdegen
  1 sibling, 1 reply; 5+ messages in thread
From: Kaushal Modi @ 2017-02-20 17:19 UTC (permalink / raw)
  To: Yuri D'Elia, emacs-devel


[-- Attachment #1.1: Type: text/plain, Size: 1152 bytes --]

Which commit are you on?

I am on the b2b3159 build "mm-decode.el: Simplify regexp used to search
html meta tag" .. cannot recreate this problem in emacs -Q or with my
config loaded:

[image: pasted1]

On Mon, Feb 20, 2017 at 11:55 AM Yuri D'Elia <wavexx@thregr.org> wrote:

> On the current master, I noticed this error when completing for some
> function names, such as ``C-h f package-'':
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>
> string-match("\\(\\`\\|/\\)package-x\\(\\.elc\\|\\.el\\|\\.so\\)?\\(\\.gz\\)?\\'"
> nil nil)
>   help--loaded-p("package-x")
>   help--load-prefixes((("package-" "package-x" "package")))
>   help--symbol-completion-table("package-" #[257 "\300!\206
>  \211\301N\207" [fboundp function-documentation] 3 "\n\n(fn F)"] lambda)
>   test-completion("package-" help--symbol-completion-table #[257
> "\300!\206     \211\301N\207" [fboundp function-documentation] 3 "\n\n(fn
> F)"])
>   completion--do-completion(20 27)
>
> It seems that I have a bare (nil) in the load-history, which
> help--loaded-p doesn't like.
>
> Is this expected?
> This doesn't occur on emacs 25.1
>
>
> --

Kaushal Modi

[-- Attachment #1.2: Type: text/html, Size: 2141 bytes --]

[-- Attachment #2: pasted1 --]
[-- Type: image/png, Size: 59502 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Error when completing C-h f
  2017-02-20 17:19 ` Kaushal Modi
@ 2017-02-20 17:23   ` Yuri D'Elia
  0 siblings, 0 replies; 5+ messages in thread
From: Yuri D'Elia @ 2017-02-20 17:23 UTC (permalink / raw)
  To: Kaushal Modi; +Cc: emacs-devel

On Mon, Feb 20 2017, Kaushal Modi wrote:
> Which commit are you on?
>
> I am on the b2b3159 build "mm-decode.el: Simplify regexp used to search
> html meta tag" .. cannot recreate this problem in emacs -Q or with my
> config loaded:

I'm on 589bd0c22b2d55c3d0339221f67235b33be93f68.

I cannot replicate this with -Q either, so there's something that is
triggered by my setup.

However, emacs25 (from debian unstable) on the same configuration does
not trigger the issue.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Error when completing C-h f
  2017-02-20 16:53 Error when completing C-h f Yuri D'Elia
  2017-02-20 17:19 ` Kaushal Modi
@ 2017-02-21  3:10 ` Michael Heerdegen
  2017-02-22 22:15   ` Richard Copley
  1 sibling, 1 reply; 5+ messages in thread
From: Michael Heerdegen @ 2017-02-21  3:10 UTC (permalink / raw)
  To: Yuri D'Elia; +Cc: emacs-devel

Yuri D'Elia <wavexx@thregr.org> writes:

> It seems that I have a bare (nil) in the load-history, which
> help--loaded-p doesn't like.

Seems `help--loaded-p' does not handle an (nil ...) entry correctly in
the `dolist'.  Looks like an obvious bug to me.


Michael.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Error when completing C-h f
  2017-02-21  3:10 ` Michael Heerdegen
@ 2017-02-22 22:15   ` Richard Copley
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Copley @ 2017-02-22 22:15 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: Yuri D'Elia, Emacs Development

On 21 February 2017 at 03:10, Michael Heerdegen
<michael_heerdegen@web.de> wrote:
> Yuri D'Elia <wavexx@thregr.org> writes:
>
>> It seems that I have a bare (nil) in the load-history, which
>> help--loaded-p doesn't like.
>
> Seems `help--loaded-p' does not handle an (nil ...) entry correctly in
> the `dolist'.  Looks like an obvious bug to me.

Are bug reports out of fashion?

To reproduce in "emacs -Q":

(defun test () "" nil) ;; insert text in buffer *scratch*
C-M-x ;; eval-defun (adds an entry to load-history with null file)
C-h f package- TAB ;; crashes



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-02-22 22:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-20 16:53 Error when completing C-h f Yuri D'Elia
2017-02-20 17:19 ` Kaushal Modi
2017-02-20 17:23   ` Yuri D'Elia
2017-02-21  3:10 ` Michael Heerdegen
2017-02-22 22:15   ` Richard Copley

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).