On 2009-01-02 05:58 +0100, Reid Priedhorsky wrote:

> OK, here's a specific recipe to reproduce. This is with emacs21
> version 21.4a+1-5.6.
>
> 1. Create a file "dotemacs-test" with the contents (one line):
>
>       (setq help-char "\M-h")

Thanks, this is the crucial bit.  "\M-h" is not a valid value for
help-char, since it evaluates to "\350", a string, instead of a number.
I don't know what you are trying to achieve, but you could use

(setq help-char (string-to-char "\M-h")) or

(setq help-char ?\M-h)

both of which would not trigger the error.

> Expected behavior:
>
> - In the scratch buffer, "glox" is replaced with "glop".
>
> Actual behavior:
>
> - No replacement. Emacs complains (in the minibuffer):
>
>      Wrong type argument: number-or-marker-p, "\350"

See my explanation above.

> It does happen with emacs -q (on my system emacs -> emacs21).

I think you mean "it does _not_ happen" here? 

> It also does not happen if I comment out the line noted in step #1
> above from my regular .emacs.

Good to know.  As this line is bad, do you agree that we can close this
bug as a cockpit error?

>> Also, do you see this with emacs22 as well?
>
> I haven't tried emacs22. I tend to resist Emacs version upgrades
> because the changelogs are so massive and it takes a while to read
> them and figure out what's going to affect me. However, I can install
> it and try if needed.

Perhaps it helps you reconsidering this decision if I tell you that we
currently have 83 bugs in emacs21 that are tagged "fixed-upstream",
meaning that they are not present in emacs22¹.  Also, emacs21 isn't
really supported anymore.

Cheers,
       Sven


¹ 
http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=emacs21;include=tags%3Afixed-upstream
  



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to