GNU bug report logs - #46420
28.0.50; Wrong line continuation in double-quoted Octave strings

Previous Next

Package: emacs;

Reported by: "Basil L. Contovounesios" <contovob <at> tcd.ie>

Date: Wed, 10 Feb 2021 11:38:01 UTC

Severity: normal

Tags: fixed, patch

Found in version 28.0.50

Fixed in version 28.1

Done: "Basil L. Contovounesios" <contovob <at> tcd.ie>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 46420 in the body.
You can then email your comments to 46420 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#46420; Package emacs. (Wed, 10 Feb 2021 11:38:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Basil L. Contovounesios" <contovob <at> tcd.ie>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 10 Feb 2021 11:38:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; Wrong line continuation in double-quoted Octave strings
Date: Wed, 10 Feb 2021 11:37:30 +0000
[Message part 1 (text/plain, inline)]
Tags: patch

0. emacs -Q
1. C-x b foo RET
2. M-x octave-mode RET
3. s = "foo C-M-j

This inserts the line continuation marker '...' instead of '\'.

Since Octave 3.8, released over 7 years ago, breaking double-quoted
strings with an ellipsis, or breaking anything else with a backslash, is
deprecated; see https://www.gnu.org/s/octave/NEWS-3.8.html and
(info "(octave) Continuation Lines").

In the Octave 6.1 REPL:

  octave:1> s = "foo...
  warning: '...' continuations in double-quoted character strings are
  obsolete and will not be allowed in a future version of Octave; please
  use '\' instead
  > "
  s = foo
  octave:2> x = [1 \
  warning: using continuation marker \ outside of double quoted strings
  is deprecated and will be removed from a future version of Octave, use
  ... instead
  > ]
  x = 1

I attach a patch which reintroduces the backslash as
octave-string-continuation-marker, alongside the existing ellipsis
octave-continuation-string.

[ I think octave-string-continuation is the perfect name for the
  backslash, but I can imagine it not being very popular ;).
  Naming suggestions welcome. ]

WDYT?

-- 
Basil

In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars)
 of 2021-02-09 built on tia
Repository revision: bff9bd0d3acff0fa0a50e21bdeca024e71fa518b
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12010000
System Description: Debian GNU/Linux bullseye/sid

Configured using:
 'configure 'CC=ccache gcc' 'CFLAGS=-O2 -march=native' --config-cache
 --prefix=/home/blc/.local --enable-checking=structs
 --with-x-toolkit=lucid --with-file-notification=yes --with-x'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11
XAW3D XDBE XIM XPM LUCID ZLIB

[0001-Fix-Octave-double-quoted-string-line-continuations.patch (text/x-diff, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46420; Package emacs. (Thu, 11 Feb 2021 09:03:01 GMT) Full text and rfc822 format available.

Message #8 received at 46420 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: 46420 <at> debbugs.gnu.org
Subject: Re: bug#46420: 28.0.50; Wrong line continuation in double-quoted
 Octave strings
Date: Thu, 11 Feb 2021 10:02:33 +0100
"Basil L. Contovounesios" <contovob <at> tcd.ie> writes:

> I attach a patch which reintroduces the backslash as
> octave-string-continuation-marker, alongside the existing ellipsis
> octave-continuation-string.
>
> [ I think octave-string-continuation is the perfect name for the
>   backslash, but I can imagine it not being very popular ;).
>   Naming suggestions welcome. ]
>
> WDYT?

Looks good to me.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from "Basil L. Contovounesios" <contovob <at> tcd.ie> to control <at> debbugs.gnu.org. (Thu, 11 Feb 2021 14:46:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 46420 <at> debbugs.gnu.org and "Basil L. Contovounesios" <contovob <at> tcd.ie> Request was from "Basil L. Contovounesios" <contovob <at> tcd.ie> to control <at> debbugs.gnu.org. (Thu, 11 Feb 2021 14:46:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46420; Package emacs. (Thu, 11 Feb 2021 14:46:02 GMT) Full text and rfc822 format available.

Message #15 received at 46420-done <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 46420-done <at> debbugs.gnu.org
Subject: Re: bug#46420: 28.0.50; Wrong line continuation in double-quoted
 Octave strings
Date: Thu, 11 Feb 2021 14:45:44 +0000
tags 46420 fixed
close 46420 28.1
quit

Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Looks good to me.

Thanks, pushed.

Fix Octave double-quoted string line continuations
21ec45c107 2021-02-11 14:35:47 +0000
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=21ec45c10727403421c41c8c67a752458790afbb

-- 
Basil




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 12 Mar 2021 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 103 days ago.

Previous Next


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