all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#41952: CC Mode and js-mode: Erroneous values for comment-start-skip
@ 2020-06-19 19:40 Alan Mackenzie
       [not found] ` <mailman.128.1592595664.2574.bug-gnu-emacs@gnu.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Mackenzie @ 2020-06-19 19:40 UTC (permalink / raw)
  To: 41952

Hello, Emacs.

In CC Mode modes, a typical value for comment-start-skip is:

    "\\(//+\\|/\\*+\\)\\s *"

.  This is erroneous, since it includes regexp grouping parentheses, yet
the comment being matched doesn't start at (match-end 1), contravening
the definition of comment-start-skip.

This mistake is likely to lead to errors in filling, etc.

The same bug is present in js-mode.

-- 
Alan Mackenzie (Nuremberg, Germany).





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

* bug#41952: CC Mode and js-mode: Erroneous values for comment-start-skip
       [not found] ` <mailman.128.1592595664.2574.bug-gnu-emacs@gnu.org>
@ 2020-07-04 13:03   ` Alan Mackenzie
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Mackenzie @ 2020-07-04 13:03 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: 41952-done

In article <mailman.128.1592595664.2574.bug-gnu-emacs@gnu.org> you wrote:
> Hello, Emacs.

> In CC Mode modes, a typical value for comment-start-skip is:

>     "\\(//+\\|/\\*+\\)\\s *"

> .  This is erroneous, since it includes regexp grouping parentheses, yet
> the comment being matched doesn't start at (match-end 1), contravening
> the definition of comment-start-skip.

> This mistake is likely to lead to errors in filling, etc.

> The same bug is present in js-mode.

Fixed in master.

-- 
Alan Mackenzie (Nuremberg, Germany).






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

end of thread, other threads:[~2020-07-04 13:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-19 19:40 bug#41952: CC Mode and js-mode: Erroneous values for comment-start-skip Alan Mackenzie
     [not found] ` <mailman.128.1592595664.2574.bug-gnu-emacs@gnu.org>
2020-07-04 13:03   ` Alan Mackenzie

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.