* Symbol's function definition is void: <
@ 2009-06-25 14:58 Lennart Borgman
2009-06-25 15:13 ` Davis Herring
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Lennart Borgman @ 2009-06-25 14:58 UTC (permalink / raw)
To: Emacs-Devel devel
I have got a strange bug report for nXhtml. The report says that < is
not defined. Please see
http://www.emacswiki.org/emacs/NxhtmlMode#toc13
What functions could make < void? fset?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Symbol's function definition is void: <
2009-06-25 14:58 Symbol's function definition is void: < Lennart Borgman
@ 2009-06-25 15:13 ` Davis Herring
2009-06-25 15:54 ` Lennart Borgman
2009-06-25 20:59 ` Stefan Monnier
2009-06-26 12:10 ` Andreas Roehler
2 siblings, 1 reply; 12+ messages in thread
From: Davis Herring @ 2009-06-25 15:13 UTC (permalink / raw)
To: Lennart Borgman; +Cc: Emacs-Devel devel
> I have got a strange bug report for nXhtml. The report says that < is
> not defined. Please see
>
> http://www.emacswiki.org/emacs/NxhtmlMode#toc13
>
> What functions could make < void? fset?
fmakunbound is it AFAIK (I replied there too).
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Symbol's function definition is void: <
2009-06-25 14:58 Symbol's function definition is void: < Lennart Borgman
2009-06-25 15:13 ` Davis Herring
@ 2009-06-25 20:59 ` Stefan Monnier
2009-06-25 23:11 ` Lennart Borgman
2009-06-30 14:44 ` Davis Herring
2009-06-26 12:10 ` Andreas Roehler
2 siblings, 2 replies; 12+ messages in thread
From: Stefan Monnier @ 2009-06-25 20:59 UTC (permalink / raw)
To: Lennart Borgman; +Cc: Emacs-Devel devel
> I have got a strange bug report for nXhtml. The report says that < is
> not defined. Please see
> http://www.emacswiki.org/emacs/NxhtmlMode#toc13
> What functions could make < void? fset?
It might also just be an uninterned symbol, so it has the same name as
the "strictly greater" but doesn't have any function associated with it.
Stefan
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Symbol's function definition is void: <
2009-06-25 20:59 ` Stefan Monnier
@ 2009-06-25 23:11 ` Lennart Borgman
2009-06-26 11:10 ` Thien-Thi Nguyen
2009-06-30 14:44 ` Davis Herring
1 sibling, 1 reply; 12+ messages in thread
From: Lennart Borgman @ 2009-06-25 23:11 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Emacs-Devel devel
On Thu, Jun 25, 2009 at 10:59 PM, Stefan
Monnier<monnier@iro.umontreal.ca> wrote:
>> I have got a strange bug report for nXhtml. The report says that < is
>> not defined. Please see
>
>> http://www.emacswiki.org/emacs/NxhtmlMode#toc13
>
>> What functions could make < void? fset?
>
> It might also just be an uninterned symbol, so it has the same name as
> the "strictly greater" but doesn't have any function associated with it.
Thanks. What do we need to do to catch that possibility? I suggested a
defadvice on fmakunbound (which the user reporting the problem now is
using). Maybe defadvice on make-symbol and unintern could catch this
possibility? Some more function to watch?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Symbol's function definition is void: <
2009-06-25 23:11 ` Lennart Borgman
@ 2009-06-26 11:10 ` Thien-Thi Nguyen
2009-06-26 12:37 ` Alan Mackenzie
2009-06-26 18:17 ` Lennart Borgman
0 siblings, 2 replies; 12+ messages in thread
From: Thien-Thi Nguyen @ 2009-06-26 11:10 UTC (permalink / raw)
To: Emacs-Devel devel
() Lennart Borgman <lennart.borgman@gmail.com>
() Fri, 26 Jun 2009 01:11:25 +0200
Maybe defadvice on make-symbol and unintern could catch this
possibility? Some more function to watch?
How about enabling `debug-on-error' then adding to `post-command-hook':
(lambda ()
(unless (boundp '<)
(error "unbound <")))
thi
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Symbol's function definition is void: <
2009-06-26 11:10 ` Thien-Thi Nguyen
@ 2009-06-26 12:37 ` Alan Mackenzie
2009-06-26 18:17 ` Lennart Borgman
1 sibling, 0 replies; 12+ messages in thread
From: Alan Mackenzie @ 2009-06-26 12:37 UTC (permalink / raw)
To: Thien-Thi Nguyen; +Cc: Emacs-Devel devel
On Fri, Jun 26, 2009 at 01:10:01PM +0200, Thien-Thi Nguyen wrote:
> () Lennart Borgman <lennart.borgman@gmail.com>
> () Fri, 26 Jun 2009 01:11:25 +0200
> Maybe defadvice on make-symbol and unintern could catch this
> possibility? Some more function to watch?
> How about enabling `debug-on-error' then adding to `post-command-hook':
> (lambda ()
> (unless (boundp '<)
> (error "unbound <")))
fboundp :-)
But thanks for this tip. It will surely come in handy.
> thi
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Symbol's function definition is void: <
2009-06-26 11:10 ` Thien-Thi Nguyen
2009-06-26 12:37 ` Alan Mackenzie
@ 2009-06-26 18:17 ` Lennart Borgman
1 sibling, 0 replies; 12+ messages in thread
From: Lennart Borgman @ 2009-06-26 18:17 UTC (permalink / raw)
To: Thien-Thi Nguyen; +Cc: Emacs-Devel devel
On Fri, Jun 26, 2009 at 1:10 PM, Thien-Thi Nguyen<ttn@gnuvola.org> wrote:
> () Lennart Borgman <lennart.borgman@gmail.com>
> () Fri, 26 Jun 2009 01:11:25 +0200
>
> Maybe defadvice on make-symbol and unintern could catch this
> possibility? Some more function to watch?
>
> How about enabling `debug-on-error' then adding to `post-command-hook':
>
> (lambda ()
> (unless (boundp '<)
> (error "unbound <")))
Yes, that is a good idea if combined with the backtrace from the
defadviced functions.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Symbol's function definition is void: <
2009-06-25 20:59 ` Stefan Monnier
2009-06-25 23:11 ` Lennart Borgman
@ 2009-06-30 14:44 ` Davis Herring
1 sibling, 0 replies; 12+ messages in thread
From: Davis Herring @ 2009-06-30 14:44 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Lennart Borgman, Emacs-Devel devel
>> I have got a strange bug report for nXhtml. The report says that < is
>> not defined. Please see
>
>> http://www.emacswiki.org/emacs/NxhtmlMode#toc13
>
>> What functions could make < void? fset?
>
> It might also just be an uninterned symbol, so it has the same name as
> the "strictly greater" but doesn't have any function associated with it.
Then it would have to be called with `funcall' or `eval', which seems
unlikely.
I suppose it could also be the case that the "real" '< got uninterned, and
then any Lisp read after that would generate a new '< that had no
function. (Any Lisp already read would still use the old symbol, of
course, even through `eval' and such.)
Lennart, you can use functions like these to test for these cases:
;; Non-nil if sym is in the obarray OB (or `obarray').
(defun internp (sym &optional ob) (if sym (intern-soft sym ob) t))
;; Non-nil if sym is the '< that was current when this function was read.
(defun <p (sym) (eq sym '<))
;; Non-nil if sym is the current '<.
(defun is< (sym) (eq sym (intern "<")))
;; Non-nil if '< when called is not the same as when read.
(defun <-changed () (not (is< '<)))
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Symbol's function definition is void: <
2009-06-25 14:58 Symbol's function definition is void: < Lennart Borgman
2009-06-25 15:13 ` Davis Herring
2009-06-25 20:59 ` Stefan Monnier
@ 2009-06-26 12:10 ` Andreas Roehler
2009-06-26 19:20 ` Lennart Borgman
2 siblings, 1 reply; 12+ messages in thread
From: Andreas Roehler @ 2009-06-26 12:10 UTC (permalink / raw)
To: Lennart Borgman; +Cc: emacs-devel
Lennart Borgman wrote:
> I have got a strange bug report for nXhtml. The report says that < is
> not defined. Please see
>
> http://www.emacswiki.org/emacs/NxhtmlMode#toc13
>
> What functions could make < void? fset?
>
>
>
Encountering that error from time to time, reason here is regulary:
a crashed beginning-of-buffer command --wrongly typed-- left a "<", which was saved
when closing Emacs.
If I start Emacs again, that error is signaled.
So sorry, should I'm be the only stupid one doing such things.
But, earnestly, would expect just this reason for the OP.
Cheers
Andreas
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Symbol's function definition is void: <
2009-06-26 12:10 ` Andreas Roehler
@ 2009-06-26 19:20 ` Lennart Borgman
2009-06-26 19:44 ` Andreas Roehler
0 siblings, 1 reply; 12+ messages in thread
From: Lennart Borgman @ 2009-06-26 19:20 UTC (permalink / raw)
To: Andreas Roehler; +Cc: emacs-devel
On Fri, Jun 26, 2009 at 2:10 PM, Andreas
Roehler<andreas.roehler@online.de> wrote:
> Lennart Borgman wrote:
>> I have got a strange bug report for nXhtml. The report says that < is
>> not defined. Please see
>>
>> http://www.emacswiki.org/emacs/NxhtmlMode#toc13
>>
>> What functions could make < void? fset?
>>
>>
>>
>
> Encountering that error from time to time, reason here is regulary:
>
> a crashed beginning-of-buffer command --wrongly typed-- left a "<", which was saved
> when closing Emacs.
>
> If I start Emacs again, that error is signaled.
>
> So sorry, should I'm be the only stupid one doing such things.
>
> But, earnestly, would expect just this reason for the OP.
Andreas, could you please explain what you did? I do not understand.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Symbol's function definition is void: <
2009-06-26 19:20 ` Lennart Borgman
@ 2009-06-26 19:44 ` Andreas Roehler
0 siblings, 0 replies; 12+ messages in thread
From: Andreas Roehler @ 2009-06-26 19:44 UTC (permalink / raw)
To: Lennart Borgman; +Cc: emacs-devel
Lennart Borgman wrote:
> On Fri, Jun 26, 2009 at 2:10 PM, Andreas
> Roehler<andreas.roehler@online.de> wrote:
>> Lennart Borgman wrote:
>>> I have got a strange bug report for nXhtml. The report says that < is
>>> not defined. Please see
>>>
>>> http://www.emacswiki.org/emacs/NxhtmlMode#toc13
>>>
>>> What functions could make < void? fset?
>>>
>>>
>>>
>> Encountering that error from time to time, reason here is regulary:
>>
>> a crashed beginning-of-buffer command --wrongly typed-- left a "<", which was saved
>> when closing Emacs.
>>
>> If I start Emacs again, that error is signaled.
>>
>> So sorry, should I'm be the only stupid one doing such things.
>>
>> But, earnestly, would expect just this reason for the OP.
>
>
> Andreas, could you please explain what you did? I do not understand.
>
>
>
Hi Lennart,
seems I mistook something.
When starting Emacs, occassionaly I get that warning:
,----
| Warning (initialization): An error occurred while loading `MY-PATH/.emacs':
|
| Symbol's value as variable is void: <
`----
Thats caused by a "<" wrongly inserted into some
lisp-file from failed executiong of keys
"\M-<". (beginning-of-buffer).
But seems not your problem, as it is no function mentioned.
Sorry for the noise.
Andreas
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-06-30 14:44 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-25 14:58 Symbol's function definition is void: < Lennart Borgman
2009-06-25 15:13 ` Davis Herring
2009-06-25 15:54 ` Lennart Borgman
2009-06-25 20:59 ` Stefan Monnier
2009-06-25 23:11 ` Lennart Borgman
2009-06-26 11:10 ` Thien-Thi Nguyen
2009-06-26 12:37 ` Alan Mackenzie
2009-06-26 18:17 ` Lennart Borgman
2009-06-30 14:44 ` Davis Herring
2009-06-26 12:10 ` Andreas Roehler
2009-06-26 19:20 ` Lennart Borgman
2009-06-26 19:44 ` Andreas Roehler
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).