From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#1212: 23.0.60; split-string-and-unquote problems Date: Mon, 20 Oct 2008 21:11:10 -0400 Message-ID: References: Reply-To: Stefan Monnier , 1212@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224552626 16945 80.91.229.12 (21 Oct 2008 01:30:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2008 01:30:26 +0000 (UTC) Cc: Andreas Schwab , 1212@emacsbugs.donarmstrong.com, emacs-devel@gnu.org, emacs-pretest-bug@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 21 03:31:25 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ks65i-0006bP-PH for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Oct 2008 03:31:23 +0200 Original-Received: from localhost ([127.0.0.1]:36215 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ks64d-0006X7-Cy for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Oct 2008 21:30:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ks64Z-0006WX-Qd for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2008 21:30:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ks64Z-0006W8-4x for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2008 21:30:11 -0400 Original-Received: from [199.232.76.173] (port=44571 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ks64Y-0006W5-Tw for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2008 21:30:10 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51678) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ks64Y-0002yy-PA for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2008 21:30:11 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9L1U1ea004047; Mon, 20 Oct 2008 18:30:01 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9L1K7Hc001943; Mon, 20 Oct 2008 18:20:07 -0700 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 21 Oct 2008 01:20:07 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1212 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1212-submit@emacsbugs.donarmstrong.com id=B1212.1224551479333 (code B ref 1212); Tue, 21 Oct 2008 01:20:07 +0000 Original-Received: (at 1212) by emacsbugs.donarmstrong.com; 21 Oct 2008 01:11:19 +0000 Original-Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9L1BGre000320 for <1212@emacsbugs.donarmstrong.com>; Mon, 20 Oct 2008 18:11:17 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8EAD/J/EhFxLrB/2dsb2JhbACBcsFtg1CBCg X-IronPort-AV: E=Sophos;i="4.33,454,1220241600"; d="scan'208";a="28633077" Original-Received: from 69-196-186-193.dsl.teksavvy.com (HELO pastel.home) ([69.196.186.193]) by ironport2-out.teksavvy.com with ESMTP; 20 Oct 2008 21:11:10 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 50D387F20; Mon, 20 Oct 2008 21:11:10 -0400 (EDT) In-Reply-To: (Eli Zaretskii's message of "Tue, 21 Oct 2008 00:53:30 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-CrossAssassin-Score: 2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 20 Oct 2008 21:30:11 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21723 Archived-At: > *** `split-string-and-unquote' does (what?) > *** `combine-and-quote-strings' does (what?) AFAIK, these two functions are meant to: - provide a way to specify any list of strings within a single string (i.e. it needs to provide some separators and some way to quote the separators), using a format that's simple to type for the end user. - be inverse of each other; more precisely (equal STR (split-string-and-unquote (combine-and-quote-strings STR))) this is also stipulated in the docstring of split-string-and-unquote. As the docstring of split-string-and-unquote explains, the quoting used is the same as the one used for ELisp strings. I could have used sh-style quoting or csh-style, or any other style, but csh-style is nasty, sh-style is too powerful (what should we do with backquotes and $(...)), and ELisp is what Emacs uses already and it's reasonably simple and we know it handles all cases reasonably well, so it seemed like an OK choice. Stefan