From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Simen =?iso-8859-1?q?Heggest=F8yl?= Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: cycle-quotes.el Date: Sat, 04 Jun 2016 18:24:41 +0200 Message-ID: <1465057481.31209.0@smtp.gmail.com> References: <1465038023.18228.0@smtp.gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed X-Trace: ger.gmane.org 1465057602 26114 80.91.229.3 (4 Jun 2016 16:26:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Jun 2016 16:26:42 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kaushal Modi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 04 18:26:38 2016 Return-path: Envelope-to: ged-emacs-devel@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 1b9EOC-0002tx-Ec for ged-emacs-devel@m.gmane.org; Sat, 04 Jun 2016 18:25:32 +0200 Original-Received: from localhost ([::1]:33335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9EOB-0005vr-Jm for ged-emacs-devel@m.gmane.org; Sat, 04 Jun 2016 12:25:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9ENW-0005vX-VQ for emacs-devel@gnu.org; Sat, 04 Jun 2016 12:24:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9ENQ-0001VJ-UQ for emacs-devel@gnu.org; Sat, 04 Jun 2016 12:24:49 -0400 Original-Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]:34203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9ENQ-0001UT-Mh for emacs-devel@gnu.org; Sat, 04 Jun 2016 12:24:44 -0400 Original-Received: by mail-lf0-x22f.google.com with SMTP id s186so6661226lfs.1 for ; Sat, 04 Jun 2016 09:24:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:subject:to:cc:message-id:in-reply-to:references :mime-version; bh=FsATIUT1+xk18//E+RUtquJJ3wskNS5jPnBpVbuQ8V4=; b=1Aw9J8qMHAwUNZP0Fly21eVGyL8XKDD8GTpaS76GhGD+N19VkuGYxdfNQOJPSRMKmR a1XfAB+fyydsMGWFM9PicTgEj6Z8T6IovatQTn8HQqQYKWevdvcHqod+SE9RJVgeld9e cu7C1jS4RwUqXpdacGGsQeLKk+N8I5A9czeNQB5IEPUtXpsZRew1sPEpE/OJc/9BCX6J LVa3XJU1B84d+9A+5Ozijs+4KSSNZf/a7YPHY+N5BiXDQcssNhS6EuiTnkAvLJGQUvr1 TTTppHW+cbyBfFI5xepledya+OJ3qETP/VAtrL0Fqu8gss7y3CiZmISaByEMl6RWMYdw oFLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:subject:to:cc:message-id:in-reply-to :references:mime-version; bh=FsATIUT1+xk18//E+RUtquJJ3wskNS5jPnBpVbuQ8V4=; b=jjdUty7O/xnOKpnoaJ6QbHmbMTIzXnDtOgBlScSm3klfZdY0bmumXWp840GnSmRnOd lgVMG3rFC3iEQrPXVb+IW7ipPC5LJ5sbYSuUQvsg7AWsNYVMWanul6oS2+/Gmt8J9FQV IpUmRbaqcVLbBmdhPKnLC+xUkK/5jEyf+GFheeiLh8plN2DKaJqqVZF3LiZpORrtrwFJ /coaSPge9Yy/Ux7KlebCqDmjGl9hiDAZGjcbb4nz880KCxdT5cufZMRx6KKl/AIPSTuj /liGn4BGbGpZVr0xUyhrTfrZYVBbNC6HaZe9HZ8z/G6MJPo8E++AiiyyNy+njGe9Avp2 GI9g== X-Gm-Message-State: ALyK8tKlswDLLtnfFx8RHtMWQ6uRd8CbBbq9sjdFeV1jeblkyd1f/AuTBdrzlDtwiWRWjg== X-Received: by 10.25.21.156 with SMTP id 28mr2149103lfv.124.1465057483778; Sat, 04 Jun 2016 09:24:43 -0700 (PDT) Original-Received: from [192.168.100.5] (cm-84.210.143.4.getinternet.no. [84.210.143.4]) by smtp.gmail.com with ESMTPSA id jw6sm1023791lbc.13.2016.06.04.09.24.42 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 04 Jun 2016 09:24:43 -0700 (PDT) In-Reply-To: X-Mailer: geary/0.11.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:204195 Archived-At: On Sat, Jun 4, 2016 at 1:51 PM, Kaushal Modi wrote: > Sounds cool! Have you tested to see how it works in emacs-lisp-mode? > Also, if a region is active, and if that selection is not surrounded > by quotes, would cycle-quotes wrap that region with quotes? And cycle > back to no quotes while that same region was active? > It currently doesn't care about the region. `cycle-quotes' will only change the quoting style of the surrounding quotes when point is inside a string (as defined by the syntax of the current major mode). So for Emacs Lisp that has only one string quoting character (as far as I know), `cycle-quotes' will do nothing. But for programming modes that defines more than one string quote character, such as for Python or JavaScript, `cycle-quotes' will cycle between the different styles. -- Simen