From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: [Bug] in newcomment.el
Date: Tue, 18 Jun 2013 19:08:11 +0200 [thread overview]
Message-ID: <87txkvjqis.fsf@gmail.com> (raw)
Hi List,
newcomment.el uses (line 477)
,------------------------------------
| (if (looking-at comment-start-skip)
`------------------------------------
in function
,--------------------------------------------------------
| (defun comment-search-forward (limit &optional noerror)
`--------------------------------------------------------
what gives an error if `comment-start-skip' is nil, as in sql-mode.
E.g. this small file (sql-test.sql) in a buffer in sql-mode
,----------------------
| -- * data load
| -- ** data for table1
| drop table1;
`----------------------
with point at (point-min), causes an error when this command is applied:
,----------------------------------
| M-: (comment-search-forward 15 t)
`----------------------------------
,----------------------------------------------------------------
| Debugger entered--Lisp error: (wrong-type-argument stringp nil)
| looking-at(nil)
| comment-search-forward(15 t)
| eval((comment-search-forward 15 t) nil)
| eval-expression((comment-search-forward 15 t) nil)
| call-interactively(eval-expression nil nil)
`----------------------------------------------------------------
because 'C-h v comment-start-skip' gives
,-------------------------------------------------------------
| comment-start-skip is a variable defined in `newcomment.el'.
| Its value is nil
`-------------------------------------------------------------
--
cheers,
Thorsten
next reply other threads:[~2013-06-18 17:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-18 17:08 Thorsten Jolitz [this message]
2013-06-18 17:13 ` [Bug] in newcomment.el Drew Adams
2013-06-18 17:30 ` Thorsten Jolitz
2013-06-18 17:46 ` Glenn Morris
2013-06-18 18:23 ` Thorsten Jolitz
2013-06-18 18:44 ` Drew Adams
2013-06-18 17:31 ` Andreas Röhler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87txkvjqis.fsf@gmail.com \
--to=tjolitz@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).