From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.bugs Subject: bug#19790: [PATCH] destructive splicing in backquote Date: Sun, 8 Feb 2015 17:38:56 -0200 Message-ID: References: <87a90r35o9.fsf@panthera.terpri.org> <87pp9lsggz.fsf@panthera.terpri.org> <8761bdpf71.fsf@panthera.terpri.org> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1423424414 14634 80.91.229.3 (8 Feb 2015 19:40:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Feb 2015 19:40:14 +0000 (UTC) Cc: Robin Templeton , 19790@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 08 20:40:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YKXiD-00079Z-Rh for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Feb 2015 20:40:09 +0100 Original-Received: from localhost ([::1]:57616 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKXiD-00072H-9M for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Feb 2015 14:40:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKXiA-00071F-3I for bug-gnu-emacs@gnu.org; Sun, 08 Feb 2015 14:40:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKXi6-0003Sj-Ss for bug-gnu-emacs@gnu.org; Sun, 08 Feb 2015 14:40:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKXi6-0003S6-P7 for bug-gnu-emacs@gnu.org; Sun, 08 Feb 2015 14:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YKXi6-0008Ky-AI for bug-gnu-emacs@gnu.org; Sun, 08 Feb 2015 14:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Feb 2015 19:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19790 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 19790-submit@debbugs.gnu.org id=B19790.142342434531976 (code B ref 19790); Sun, 08 Feb 2015 19:40:02 +0000 Original-Received: (at 19790) by debbugs.gnu.org; 8 Feb 2015 19:39:05 +0000 Original-Received: from localhost ([127.0.0.1]:37609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKXhA-0008Je-O1 for submit@debbugs.gnu.org; Sun, 08 Feb 2015 14:39:05 -0500 Original-Received: from mail-ob0-f181.google.com ([209.85.214.181]:61676) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKXh8-0008JA-OW for 19790@debbugs.gnu.org; Sun, 08 Feb 2015 14:39:03 -0500 Original-Received: by mail-ob0-f181.google.com with SMTP id vb8so21637705obc.12 for <19790@debbugs.gnu.org>; Sun, 08 Feb 2015 11:38:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Udrf/C0ZPwe5RrL3I9/2x5X922goXiDyQ82QcH8FERo=; b=yJVB2eemSemdGIwuFi1UgZ8JCBg440GIm4dwCtM+GZwBk5ktg1rhoDaAUkPXxlKZyi YJtnFweQ5v/Av81jIX+a/1p5Q+7mM/leIUdzUO+hgSsRQ1OBnPsYUkXebSEqk2fkLv8z gp9T59EoxGD7EX3Al0GfWu71JiI8Ev6cHCAktsGIKMUeejieEcB84UQKeKyoHxxjLrnl ICGBGOO4hUTZ/VFXIjAGHghCVphJLYZpqL0RwDfUsc2tqekqA70ocTV/cwRGRuyUjZ8O MMMsgvoI+cVkjj0uRoii/FOOn0KVF2ooszl5nH/fIChvHE0GQLMF92JnyBV1J5NjxWse K9Ng== X-Received: by 10.182.104.42 with SMTP id gb10mr9338799obb.62.1423424336997; Sun, 08 Feb 2015 11:38:56 -0800 (PST) Original-Received: by 10.76.125.1 with HTTP; Sun, 8 Feb 2015 11:38:56 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: LtMbcqKAb-7O5p1tj6a0PMmkrR4 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99176 Archived-At: Yes, I was surprised mostly for being caught of guard. :-) After all this years I had never heard of ",." doing anything. I agree that the current behavior is a bug, but either way we go is fine for me (I managed to get around this limitation by simply adding a space between the comma and the dot). I'm fine with using this syntax for destructive splicing or with disabling it altogether. But I think aliasing it to ",@" might be a little deceptive for people who actually expect destructive splicing. 2015-02-08 17:23 GMT-02:00 Stefan Monnier : >> Also, I could submit a patch to remove the special handling for ",." or >> make it a syntax error, if either of those options would be preferable. >> But the current behavior seems to be a bug. > > Hmm... indeed recently Artur bumped into this (he uses identifiers > starting with "." and was surprised that , didn't work in that > case). > > Maybe removing this special syntax is the best option. Tho at least the > current situation leaves both choices still open ;-) > > > Stefan