GNU bug report logs -
#14376
24.3; comment-search-forward in SQL-mode raises an error
Previous Next
Reported by: Eric Hanchrow <eric.hanchrow <at> gmail.com>
Date: Thu, 9 May 2013 20:06:01 UTC
Severity: minor
Tags: notabug
Merged with 14655
Found in version 24.3
Fixed in version 24.4
Done: Glenn Morris <rgm <at> gnu.org>
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 14376 in the body.
You can then email your comments to 14376 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14376
; Package
emacs
.
(Thu, 09 May 2013 20:06:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Eric Hanchrow <eric.hanchrow <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 09 May 2013 20:06:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org. Please check that
the From: line contains a valid email address. After a delay of up
to one day, you should receive an acknowledgment at that address.
Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.
Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug. If you can, give a recipe
starting from `emacs -Q':
* Create a file that contains three bytes: two dashes followed by a
newline.
* Start emacs -Q
* C-x C-f NAME-OF-THE-FILE RET
* M-x sql-mode RET
* M-<
* M-: (comment-search-forward (point-max) t) RET
You'll see this error:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
looking-at(nil)
comment-search-forward(4 t)
eval((comment-search-forward (point-max) t) nil)
eval-expression((comment-search-forward (point-max) t) nil)
call-interactively(eval-expression nil nil)
If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/Applications/Emacs.app/Contents/Resources/etc/DEBUG.
In GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
of 2013-03-12 on bob.porkrind.org
Windowing system distributor `Apple', version 10.3.1187
Configured using:
`configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin'
'--with-ns' 'build_alias=i686-apple-darwin'
'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.7
-isystem
/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/
-F/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks''
Important settings:
locale-coding-system: nil
default enable-multibyte-characters: t
Major mode: SQL[ANSI]
Minor modes in effect:
shell-dirtrack-mode: t
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
C-x C-f / t m p / f r o t z . s q l <return> - - <return>
- - SPC H e y SPC y o u <return> - - <return> M-< M-:
M-( c o m m e n t - s e a r c h - f o r w a r d M-(
p o i n t - m a x C-f SPC t <return> q M-> C-SPC C-p
C-p C-w M-. C-g M-> M-: M-p <return> M-< M-: M-p <return>
q M-> C-x C-s M-! s t a t SPC f r <tab> <return> M-x
r e p o r t - e m a c s - b <tab> <return>
Recent messages:
Quit
Mark set
nil
Mark set
Entering debugger...
Back to top level.
Mark set
Saving file /tmp/frotz.sql...
Wrote /tmp/frotz.sql
16777224 1250723 -rw-r--r-- 1 erichanchrow wheel 0 3 "May 9 13:00:57 2013"
"May 9 13:00:57 2013" "May 9 13:00:57 2013" "May 9 13:00:57 2013" 4096 8
0 frotz.sql
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils shell pcomplete etags help-mode debug sql easymenu
thingatpt comint ansi-color ring time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
make-network-process ns multi-tty emacs)
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14376
; Package
emacs
.
(Thu, 09 May 2013 21:31:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 14376 <at> debbugs.gnu.org (full text, mbox):
> * M-x sql-mode RET
> * M-<
> * M-: (comment-search-forward (point-max) t) RET
You failed to call comment-normalize-vars before calling
comment-search-forward.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14376
; Package
emacs
.
(Fri, 10 May 2013 05:43:02 GMT)
Full text and
rfc822 format available.
Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):
Am 09.05.2013 23:30, schrieb Stefan Monnier:
>> * M-x sql-mode RET
>> * M-<
>> * M-: (comment-search-forward (point-max) t) RET
>
> You failed to call comment-normalize-vars before calling
> comment-search-forward.
>
>
> Stefan
>
>
>
>
Shouldn't comment-search-forward do this by themselves?
Can't see it's docu mentioning such a need.
Cheers,
Andreas
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14376
; Package
emacs
.
(Fri, 10 May 2013 20:01:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 14376 <at> debbugs.gnu.org (full text, mbox):
>>> * M-x sql-mode RET
>>> * M-<
>>> * M-: (comment-search-forward (point-max) t) RET
>> You failed to call comment-normalize-vars before calling
>> comment-search-forward.
> Shouldn't comment-search-forward do this by themselves?
No.
> Can't see it's docu mentioning such a need.
;; Prior to calling any `comment-*' function, you should ensure that
;; `comment-normalize-vars' is first called to set up the appropriate
;; variables; except for the `comment-*' commands, which call
;; `comment-normalize-vars' automatically as a subroutine.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14376
; Package
emacs
.
(Fri, 10 May 2013 20:56:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 14376 <at> debbugs.gnu.org (full text, mbox):
> > Can't see it's docu mentioning such a need.
^^^^^^^^^
>
> ;; Prior to calling any `comment-*' function, you should ensure that
> ;; `comment-normalize-vars' is first called to set up the appropriate
> ;; variables; except for the `comment-*' commands, which call
> ;; `comment-normalize-vars' automatically as a subroutine.
FWIW, a comment in the source code is hardly documentation for the functions
concerned. Doc strings...
See also bug #12583... This will probably keep coming up until there is some
mention of it in the actual doc.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14376
; Package
emacs
.
(Sat, 11 May 2013 08:55:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 14376 <at> debbugs.gnu.org (full text, mbox):
Am 10.05.2013 22:00, schrieb Stefan Monnier:
[ ... ]
> ;; Prior to calling any `comment-*' function, you should ensure that
> ;; `comment-normalize-vars' is first called to set up the appropriate
> ;; variables; except for the `comment-*' commands, which call
> ;; `comment-normalize-vars' automatically as a subroutine.
>
That's nice for people having no other business than playing with Emacs.
It's not the computations state of art.
While accepting some people are addicted to that way of living ;)
Andreas
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14376
; Package
emacs
.
(Tue, 14 May 2013 13:54:02 GMT)
Full text and
rfc822 format available.
Message #23 received at submit <at> debbugs.gnu.org (full text, mbox):
On 5/11/13 2:56 AM, Andreas Röhler wrote:
> Am 10.05.2013 22:00, schrieb Stefan Monnier:
> [ ... ]
>> ;; Prior to calling any `comment-*' function, you should ensure that
>> ;; `comment-normalize-vars' is first called to set up the appropriate
>> ;; variables; except for the `comment-*' commands, which call
>> ;; `comment-normalize-vars' automatically as a subroutine.
>>
>
> That's nice for people having no other business than playing with Emacs.
> It's not the computations state of art.
>
> While accepting some people are addicted to that way of living ;)
Such as OP, who does M-: (comment-search-forward (point-max) t) RET
--
Kevin Rodgers
Denver, Colorado, USA
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14376
; Package
emacs
.
(Wed, 15 May 2013 19:21:02 GMT)
Full text and
rfc822 format available.
Message #26 received at submit <at> debbugs.gnu.org (full text, mbox):
Am 14.05.2013 15:52, schrieb Kevin Rodgers:
> On 5/11/13 2:56 AM, Andreas Röhler wrote:
>> Am 10.05.2013 22:00, schrieb Stefan Monnier:
>> [ ... ]
>>> ;; Prior to calling any `comment-*' function, you should ensure that
>>> ;; `comment-normalize-vars' is first called to set up the appropriate
>>> ;; variables; except for the `comment-*' commands, which call
>>> ;; `comment-normalize-vars' automatically as a subroutine.
>>>
>>
>> That's nice for people having no other business than playing with Emacs.
>> It's not the computations state of art.
>>
>> While accepting some people are addicted to that way of living ;)
>
> Such as OP, who does M-: (comment-search-forward (point-max) t) RET
>
hmm?
BTW get this error with sql-mode only, but not with emacs-lisp or even text-mode
Forcibly Merged 14376 14655.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 18 Jun 2013 17:44:01 GMT)
Full text and
rfc822 format available.
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Tue, 18 Jun 2013 17:59:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Eric Hanchrow <eric.hanchrow <at> gmail.com>
:
bug acknowledged by developer.
(Tue, 18 Jun 2013 17:59:02 GMT)
Full text and
rfc822 format available.
Message #33 received at 14376-done <at> debbugs.gnu.org (full text, mbox):
Version: 24.4
Mentioned comment-normalize-vars in the comment-search-forward doc.
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Tue, 18 Jun 2013 17:59:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Thorsten Jolitz <tjolitz <at> googlemail.com>
:
bug acknowledged by developer.
(Tue, 18 Jun 2013 17:59:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14376
; Package
emacs
.
(Tue, 18 Jun 2013 18:34:01 GMT)
Full text and
rfc822 format available.
Message #41 received at 14376-done <at> debbugs.gnu.org (full text, mbox):
> Mentioned comment-normalize-vars in the comment-search-forward doc.
Ah, OK. I didn't see this message. That should help. Thx.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 17 Jul 2013 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 343 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.