unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#14376: 24.3; comment-search-forward in SQL-mode raises an error
@ 2013-05-09 20:04 Eric Hanchrow
  2013-05-09 21:30 ` Stefan Monnier
  2013-06-18 17:58 ` Glenn Morris
  0 siblings, 2 replies; 10+ messages in thread
From: Eric Hanchrow @ 2013-05-09 20:04 UTC (permalink / raw)
  To: 14376

[-- Attachment #1: Type: text/plain, Size: 4178 bytes --]

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)

[-- Attachment #2: Type: text/html, Size: 5807 bytes --]

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

* bug#14376: 24.3; comment-search-forward in SQL-mode raises an error
  2013-05-09 20:04 bug#14376: 24.3; comment-search-forward in SQL-mode raises an error Eric Hanchrow
@ 2013-05-09 21:30 ` Stefan Monnier
  2013-05-10  5:44   ` Andreas Röhler
  2013-06-18 17:58 ` Glenn Morris
  1 sibling, 1 reply; 10+ messages in thread
From: Stefan Monnier @ 2013-05-09 21:30 UTC (permalink / raw)
  To: Eric Hanchrow; +Cc: 14376

> * 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





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

* bug#14376: 24.3; comment-search-forward in SQL-mode raises an error
  2013-05-09 21:30 ` Stefan Monnier
@ 2013-05-10  5:44   ` Andreas Röhler
  2013-05-10 20:00     ` Stefan Monnier
  0 siblings, 1 reply; 10+ messages in thread
From: Andreas Röhler @ 2013-05-10  5:44 UTC (permalink / raw)
  To: 14376

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






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

* bug#14376: 24.3; comment-search-forward in SQL-mode raises an error
  2013-05-10  5:44   ` Andreas Röhler
@ 2013-05-10 20:00     ` Stefan Monnier
  2013-05-10 20:55       ` Drew Adams
  2013-05-11  8:56       ` Andreas Röhler
  0 siblings, 2 replies; 10+ messages in thread
From: Stefan Monnier @ 2013-05-10 20:00 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: 14376

>>> * 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





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

* bug#14376: 24.3; comment-search-forward in SQL-mode raises an error
  2013-05-10 20:00     ` Stefan Monnier
@ 2013-05-10 20:55       ` Drew Adams
  2013-05-11  8:56       ` Andreas Röhler
  1 sibling, 0 replies; 10+ messages in thread
From: Drew Adams @ 2013-05-10 20:55 UTC (permalink / raw)
  To: 'Stefan Monnier', 'Andreas Röhler'; +Cc: 14376

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






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

* bug#14376: 24.3; comment-search-forward in SQL-mode raises an error
  2013-05-10 20:00     ` Stefan Monnier
  2013-05-10 20:55       ` Drew Adams
@ 2013-05-11  8:56       ` Andreas Röhler
  2013-05-14 13:52         ` Kevin Rodgers
  1 sibling, 1 reply; 10+ messages in thread
From: Andreas Röhler @ 2013-05-11  8:56 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 14376

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






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

* bug#14376: 24.3; comment-search-forward in SQL-mode raises an error
  2013-05-11  8:56       ` Andreas Röhler
@ 2013-05-14 13:52         ` Kevin Rodgers
  2013-05-15 19:22           ` Andreas Röhler
  0 siblings, 1 reply; 10+ messages in thread
From: Kevin Rodgers @ 2013-05-14 13:52 UTC (permalink / raw)
  To: 14376

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






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

* bug#14376: 24.3; comment-search-forward in SQL-mode raises an error
  2013-05-14 13:52         ` Kevin Rodgers
@ 2013-05-15 19:22           ` Andreas Röhler
  0 siblings, 0 replies; 10+ messages in thread
From: Andreas Röhler @ 2013-05-15 19:22 UTC (permalink / raw)
  To: 14376

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





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

* bug#14376: 24.3; comment-search-forward in SQL-mode raises an error
  2013-05-09 20:04 bug#14376: 24.3; comment-search-forward in SQL-mode raises an error Eric Hanchrow
  2013-05-09 21:30 ` Stefan Monnier
@ 2013-06-18 17:58 ` Glenn Morris
  2013-06-18 18:32   ` Drew Adams
  1 sibling, 1 reply; 10+ messages in thread
From: Glenn Morris @ 2013-06-18 17:58 UTC (permalink / raw)
  To: 14376-done

Version: 24.4

Mentioned comment-normalize-vars in the comment-search-forward doc.





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

* bug#14376: 24.3; comment-search-forward in SQL-mode raises an error
  2013-06-18 17:58 ` Glenn Morris
@ 2013-06-18 18:32   ` Drew Adams
  0 siblings, 0 replies; 10+ messages in thread
From: Drew Adams @ 2013-06-18 18:32 UTC (permalink / raw)
  To: Glenn Morris, 14376-done

> Mentioned comment-normalize-vars in the comment-search-forward doc.

Ah, OK.  I didn't see this message.  That should help.  Thx.





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

end of thread, other threads:[~2013-06-18 18:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-09 20:04 bug#14376: 24.3; comment-search-forward in SQL-mode raises an error Eric Hanchrow
2013-05-09 21:30 ` Stefan Monnier
2013-05-10  5:44   ` Andreas Röhler
2013-05-10 20:00     ` Stefan Monnier
2013-05-10 20:55       ` Drew Adams
2013-05-11  8:56       ` Andreas Röhler
2013-05-14 13:52         ` Kevin Rodgers
2013-05-15 19:22           ` Andreas Röhler
2013-06-18 17:58 ` Glenn Morris
2013-06-18 18:32   ` Drew Adams

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