unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Simen Heggestøyl" <simenheg@gmail.com>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: [ELPA] New package: cycle-quotes.el
Date: Sat, 04 Jun 2016 18:24:41 +0200	[thread overview]
Message-ID: <1465057481.31209.0@smtp.gmail.com> (raw)
In-Reply-To: <CAFyQvY2segzKve-mv4czkry8=HfpHJctp1BbQ1KUGH0JF+chwg@mail.gmail.com>

On Sat, Jun 4, 2016 at 1:51 PM, Kaushal Modi <kaushal.modi@gmail.com> 
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






  reply	other threads:[~2016-06-04 16:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-04 11:00 [ELPA] New package: cycle-quotes.el Simen Heggestøyl
2016-06-04 11:51 ` Kaushal Modi
2016-06-04 16:24   ` Simen Heggestøyl [this message]
2016-06-04 17:00 ` Stefan Monnier
2016-06-05 10:51   ` Simen Heggestøyl
2016-06-06  4:05     ` Michael Mauger
2016-06-07 17:41       ` Simen Heggestøyl
2016-06-11 17:23       ` Simen Heggestøyl
2016-06-11 21:32         ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1465057481.31209.0@smtp.gmail.com \
    --to=simenheg@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=kaushal.modi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).