From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: help-gnu-emacs@gnu.org
Subject: Re: [Bug] in newcomment.el
Date: Tue, 18 Jun 2013 19:31:45 +0200 [thread overview]
Message-ID: <51C09981.7080503@easy-emacs.de> (raw)
In-Reply-To: <87txkvjqis.fsf@gmail.com>
Am 18.06.2013 19:08, schrieb Thorsten Jolitz:
>
> 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
> `-------------------------------------------------------------
>
Looking forward for a bug-report too. `comment-start' should do a better job at this place.
Andreas
prev parent reply other threads:[~2013-06-18 17:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-18 17:08 [Bug] in newcomment.el Thorsten Jolitz
2013-06-18 17:13 ` 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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51C09981.7080503@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.