GNU bug report logs - #68593
29.1; comment-dwim: Args out of range: "", 0, 1

Previous Next

Package: emacs;

Reported by: Frank Ruben <frankruben27 <at> gmail.com>

Date: Fri, 19 Jan 2024 21:17:01 UTC

Severity: normal

Found in version 29.1

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Frank Ruben <frankruben27 <at> gmail.com>
Cc: 68593 <at> debbugs.gnu.org
Subject: bug#68593: 29.1; comment-dwim: Args out of range: "", 0, 1
Date: Sat, 20 Jan 2024 08:47:34 +0200
> From: Frank Ruben <frankruben27 <at> gmail.com>
> Date: Fri, 19 Jan 2024 22:16:04 +0100
> 
> When in c-ts-mode.el and when having '(setq comment-end " ")' and when I then
> then run e.g. 'comment-dwim' or simpler '(comment-normalize-vars)', I'm getting
> 'comment-dwim: Args out of range: "", 0, 1'.
> 
> The error comes from the two 'substring' calls in this s-sexp - where the code
> already contains my "fix" - both calls to 'substring' have been guarded by
> '(if (string-equal ce "") "" ...)'.

Can you tell why do you set comment-end to such a value in c-ts-mode?
What is the purpose of such a strange setting?




This bug report was last modified 1 year and 150 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.