GNU bug report logs - #105
(split-string-and-unquote (combine-and-quote-strings STRINGS)) fails on trivial case

Previous Next

Package: emacs;

Reported by: Joe Wells <jbw <at> macs.hw.ac.uk>

Date: Tue, 1 Apr 2008 03:05:06 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Joe Wells <jbw <at> macs.hw.ac.uk>
To: bug-gnu-emacs <at> gnu.org
Subject: bug#105: (split-string-and-unquote (combine-and-quote-strings STRINGS)) fails on trivial case
Date: Tue, 01 Apr 2008 02:17:23 +0100
The documentation strings for both split-string-and-unquote and
combine-and-quote-strings state that they attempt to achieve this
property:

  (split-string-and-unquote (combine-and-quote-strings strs)) == strs

Here is a trivial case that they fail on; the following sexp wrongly
evaluates to nil:

  (let ((l '("a b" "c")))
    (equal l
           (split-string-and-unquote (combine-and-quote-strings l))))

I hope this problem report is helpful.

Joe

======================================================================
In GNU Emacs 22.2.1 (i686-pc-linux-gnu, GTK+ Version 2.8.20)
 of 2008-04-01 on artemis
Windowing system distributor `The X.Org Foundation', version 11.0.70000000
configured using `configure  '--prefix=/home/jbw/local4' '--enable-debug' '--disable-nls' '--with-x-toolkit=gtk' 'CFLAGS=-O0 -g3 -ggdb -fno-crossjumping -DGLYPH_DEBUG=1''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: en_US.UTF-8
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: jbw
  value of $LANG: nil
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t


-- 
Heriot-Watt University is a Scottish charity
registered under charity number SC000278






This bug report was last modified 17 years and 105 days ago.

Previous Next


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