From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.devel Subject: Re: Emacs is lying to me, or curly quotes strike again Date: Thu, 07 Jul 2016 13:46:28 +0000 Message-ID: References: <87oa69a9s7.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c000d8856fca205370bea99 X-Trace: ger.gmane.org 1467899243 11034 80.91.229.3 (7 Jul 2016 13:47:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2016 13:47:23 +0000 (UTC) To: Marcin Borkowski , "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 07 15:47:17 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 1bL9e9-0005Lt-0i for ged-emacs-devel@m.gmane.org; Thu, 07 Jul 2016 15:47:17 +0200 Original-Received: from localhost ([::1]:40042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bL9e8-0002Op-3N for ged-emacs-devel@m.gmane.org; Thu, 07 Jul 2016 09:47:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bL9dZ-0002L3-H2 for emacs-devel@gnu.org; Thu, 07 Jul 2016 09:46:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bL9dY-0001H8-6V for emacs-devel@gnu.org; Thu, 07 Jul 2016 09:46:41 -0400 Original-Received: from mail-oi0-x232.google.com ([2607:f8b0:4003:c06::232]:32975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bL9dY-0001H4-0g for emacs-devel@gnu.org; Thu, 07 Jul 2016 09:46:40 -0400 Original-Received: by mail-oi0-x232.google.com with SMTP id u201so23452506oie.0 for ; Thu, 07 Jul 2016 06:46:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=lAwhZb/Oh2wPjF8P9pjloKdyGnBFXW8o6PrpSrQyFvo=; b=HuSBVk0zthnxdJGs/Y7XnjUsZEwpq1dXQc76MthXtwmjEp26V64cfIlU/swQimGCF1 Fr3KFLUR3d9yw87B8DBidOjyQt0ETWIVxLqD/TCyJWQhVuGWnL4kooLfGFEYsVIzPnCS 6Zw2VZA6dmkSMDY3v6Mcmv9ko95N8NiVKYVTlP1y3DPfbFLeaxRfgOvLEB0hjXlLYnwt dT1z61JtqUryKsBH2SPgMyEqcKl40yUO1QkZ1l1tyT1LMvolQh0IBYUZxl0Rsl5egSvj G7xIK67MeNzvDv/FVPGaw3p/zKST5ouyKhcaNUjwkMda8Pb+PvfXDOlYopBYtvmy2pKo SSBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=lAwhZb/Oh2wPjF8P9pjloKdyGnBFXW8o6PrpSrQyFvo=; b=cPTSTCIQKTWB8/Xi3IVxjHEPmai/a5vhdgrJBgI+lUS+2SYTqxTwp74gFKAPcd2Y8H wh94lrMu/IEj1v6oZbyyl5/u/LmDxBxK2qMYLL5OAjJS7WVgL0ce0KNCTmQxfs4K8jIW SXrWsUX9DW9tZl4rcvih0tJXlozS7uxzYFTJNO5V869Uurn4W7W0Py/EP6UKhaOssXbl rbl5RNiIVdIICS5lvo8ixX5bnBE+JxYEpaw4dzi0RZFN9fXQ0LFbJhGjkpoBoyKac685 ETZoqgIfQZdK82qGhX1hXXMqoB+LYYvIaCxUzySwUQo3Yni/FtJ7K4PQcgHey34zRUDz Anhw== X-Gm-Message-State: ALyK8tJJURklqHhC9bmLSuCY7AcFvihiUYmfkz07TFJNm0WtVBmyN9t1cs/NR4H6kgi1ultqju4I7eZ47yJVhQ== X-Received: by 10.157.54.66 with SMTP id w60mr158159otb.133.1467899199285; Thu, 07 Jul 2016 06:46:39 -0700 (PDT) In-Reply-To: <87oa69a9s7.fsf@mbork.pl> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::232 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:205320 Archived-At: --94eb2c000d8856fca205370bea99 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable What is jsx-ide mode? Is it part of emacs? If not, the package author needs to fix the documentation. The closest thing in emacs I could find was js-jsx-mode and the quotes show up correctly for that: http://i.imgur.com/NCPpuzv.png On Thu, Jul 7, 2016 at 8:54 AM Marcin Borkowski wrote: > Hi all, > > Here's a snippet from a *Help* buffer for JSX-IDE mode: > > --8<---------------cut here---------------start------------->8--- > JSX-IDE mode defined in =E2=80=98js2-mode.el=E2=80=99: > Major mode for editing JSX code. > > To customize the indentation for this mode, set the SGML offset > variables (=E2=80=98sgml-basic-offset=E2=80=99 et al) locally, like so: > > (defun set-jsx-indentation () > (setq-local sgml-basic-offset js2-basic-offset)) > (add-hook =E2=80=99js2-jsx-mode-hook #=E2=80=99set-jsx-indentation) > --8<---------------cut here---------------end--------------->8--- > > While I do understand that I could toggle some switch to turn off these > retarded curly quotes, but a CODE SNIPPET in a HELP BUFFER should be > COPY-PASTEABLE BY DEFAULT. (I'm sorry for my angry tone, but this is > yet another case of curly quotes causing problems, and giving NOTHING in > return. And so many people warned about this - and yet this buggy > behavior was made the default...) > > I'm on GNU Emacs 25.1.50.3 (commit debd49b). > > Best, > > -- > Marcin Borkowski > http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski > Faculty of Mathematics and Computer Science > Adam Mickiewicz University > > -- --=20 Kaushal Modi --94eb2c000d8856fca205370bea99 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
What is jsx-ide mode? Is it part of emacs? If not, the pac= kage author needs to fix the documentation.

The closest = thing in emacs I could find was js-jsx-mode and the quotes show up correctl= y for that:=C2=A0http://i.imgur.= com/NCPpuzv.png

On Thu, Jul 7, 2016 at 8:54 AM Marcin Borkowski <mbork@mbork.pl> wrote:
Hi all,

Here's a snippet from a *Help* buffer for JSX-IDE mode:

--8<---------------cut here---------------start------------->8---
JSX-IDE mode defined in =E2=80=98js2-mode.el=E2=80=99:
Major mode for editing JSX code.

To customize the indentation for this mode, set the SGML offset
variables (=E2=80=98sgml-basic-offset=E2=80=99 et al) locally, like so:

=C2=A0 (defun set-jsx-indentation ()
=C2=A0 =C2=A0 (setq-local sgml-basic-offset js2-basic-offset))
=C2=A0 (add-hook =E2=80=99js2-jsx-mode-hook #=E2=80=99set-jsx-indentation)<= br> --8<---------------cut here---------------end--------------->8---

While I do understand that I could toggle some switch to turn off these
retarded curly quotes, but a CODE SNIPPET in a HELP BUFFER should be
COPY-PASTEABLE BY DEFAULT.=C2=A0 (I'm sorry for my angry tone, but this= is
yet another case of curly quotes causing problems, and giving NOTHING in return.=C2=A0 And so many people warned about this - and yet this buggy
behavior was made the default...)

I'm on GNU Emacs 25.1.50.3 (commit debd49b).

Best,

--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

--

--
Kaushal Modi

--94eb2c000d8856fca205370bea99--