emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs is lying to me, or curly quotes strike again


From: Kaushal Modi
Subject: Re: Emacs is lying to me, or curly quotes strike again
Date: Thu, 07 Jul 2016 13:46:28 +0000

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 <address@hidden> 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 ‘js2-mode.el’:
Major mode for editing JSX code.

To customize the indentation for this mode, set the SGML offset
variables (‘sgml-basic-offset’ et al) locally, like so:

  (defun set-jsx-indentation ()
    (setq-local sgml-basic-offset js2-basic-offset))
  (add-hook ’js2-jsx-mode-hook #’set-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

--

--
Kaushal Modi


reply via email to

[Prev in Thread] Current Thread [Next in Thread]