From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems Date: Tue, 21 Oct 2008 08:27:28 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1224570472 26865 80.91.229.12 (21 Oct 2008 06:27:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2008 06:27:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 21 08:28:51 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KsAjP-00034i-Fn for ged-emacs-devel@m.gmane.org; Tue, 21 Oct 2008 08:28:39 +0200 Original-Received: from localhost ([127.0.0.1]:55874 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsAiK-0000UQ-4O for ged-emacs-devel@m.gmane.org; Tue, 21 Oct 2008 02:27:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsAiF-0000UK-Ut for emacs-devel@gnu.org; Tue, 21 Oct 2008 02:27:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsAiE-0000U6-5P for emacs-devel@gnu.org; Tue, 21 Oct 2008 02:27:26 -0400 Original-Received: from [199.232.76.173] (port=43418 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsAiE-0000U3-0A for emacs-devel@gnu.org; Tue, 21 Oct 2008 02:27:26 -0400 Original-Received: from mtaout3.012.net.il ([84.95.2.7]:22085) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KsAiD-0004wr-Kt for emacs-devel@gnu.org; Tue, 21 Oct 2008 02:27:26 -0400 Original-Received: from HOME-C4E4A596F7 ([77.126.98.197]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K9200BQ8SO45EP1@i_mtaout3.012.net.il> for emacs-devel@gnu.org; Tue, 21 Oct 2008 08:28:52 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104723 Archived-At: > From: Stefan Monnier > Cc: Andreas Schwab , emacs-pretest-bug@gnu.org, 1212@emacsbugs.donarmstrong.com, emacs-devel@gnu.org > Date: Mon, 20 Oct 2008 21:11:10 -0400 > > > *** `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. Thanks. However, this describes roughly what the code does (which I kinda understood myself by reading it ;-), but does not explain under what circumstances would those functions be useful. By looking at the uses of split-string-and-unquote, I deduced that the intended use is for taking apart shell command lines. If that is not the intent, then what is it? > - 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. The doc strings make very clear that the functions are reversible, but that in itself does not yet mean they are useful, or for what purpose exactly.