GNU bug report logs -
#16934
24.3.50; completion-table-dynamic causes error numberp nil
Previous Next
Reported by: Leo Liu <sdl.web <at> gmail.com>
Date: Tue, 4 Mar 2014 11:32:03 UTC
Severity: normal
Tags: patch
Merged with 16933,
16935
Found in version 24.3.50
Done: Bastien <bzg <at> altern.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Tue, 04 Mar 2014 15:38:05 +0100
with message-id <87r46i2fn6.fsf <at> bzg.ath.cx>
and subject line Re: bug#16934: 24.3.50; completion-table-dynamic causes error numberp nil
has caused the debbugs.gnu.org bug report #16934,
regarding 24.3.50; completion-table-dynamic causes error numberp nil
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
16934: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16934
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
If I modify octave-completion-at-point to allow (= beg end), i.e.
=== modified file 'lisp/progmodes/octave.el'
--- lisp/progmodes/octave.el 2014-02-10 01:34:22 +0000
+++ lisp/progmodes/octave.el 2014-03-04 11:22:04 +0000
@@ -1414,10 +1414,9 @@
;; Extend region past point, if applicable.
(save-excursion (skip-syntax-forward "w_")
(setq end (point))))
- (when (> end beg)
- (list beg end (or (and (inferior-octave-process-live-p)
- (inferior-octave-completion-table))
- octave-reserved-words)))))
+ (list beg end (or (and (inferior-octave-process-live-p)
+ (inferior-octave-completion-table))
+ octave-reserved-words))))
(define-obsolete-function-alias 'octave-complete-symbol
'completion-at-point "24.1")
I can reproduce the error this way:
1. Create a new buffer
2. M-x run-octave
3. M-x octave-mode
4. M-x completion-at-point a few times
Debugger entered--Lisp error: (wrong-type-argument numberp nil)
zerop(nil)
minibuffer-completion-help(#<marker at 533 in *Scratch*> 533)
completion--do-completion(#<marker at 533 in *Scratch*> 533)
completion--in-region-1(#<marker at 533 in *Scratch*> 533)
....
completion-at-point()
indent-for-tab-command(nil)
call-interactively(indent-for-tab-command nil nil)
command-execute(indent-for-tab-command)
I also tried with ggtags-completing-table and got the same error in 24.4
Both completion tables work well in 24.3.
Leo
[Message part 3 (message/rfc822, inline)]
Leo Liu <sdl.web <at> gmail.com> writes:
> If I modify octave-completion-at-point to allow (= beg end), i.e.
Closing too - see my reply to bug #16934.
PS: I assume it's fine to close two related bugs separately instead of
merging them first. If not, please let me know.
--
Bastien
This bug report was last modified 11 years and 140 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.