From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.devel Subject: Emacs is lying to me, or curly quotes strike again Date: Thu, 07 Jul 2016 14:54:27 +0200 Message-ID: <87oa69a9s7.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1467896108 24730 80.91.229.3 (7 Jul 2016 12:55:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2016 12:55:08 +0000 (UTC) To: "emacs-devel\@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 07 14:55:00 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 1bL8pU-0003BC-L1 for ged-emacs-devel@m.gmane.org; Thu, 07 Jul 2016 14:54:56 +0200 Original-Received: from localhost ([::1]:39683 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bL8pQ-0007yd-Ph for ged-emacs-devel@m.gmane.org; Thu, 07 Jul 2016 08:54:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bL8pK-0007yX-H7 for emacs-devel@gnu.org; Thu, 07 Jul 2016 08:54:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bL8pG-0006Vl-BO for emacs-devel@gnu.org; Thu, 07 Jul 2016 08:54:45 -0400 Original-Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:37446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bL8pG-0006V0-0F for emacs-devel@gnu.org; Thu, 07 Jul 2016 08:54:42 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 72CD81FE64 for ; Thu, 7 Jul 2016 14:54:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y7shTCbUNdoP for ; Thu, 7 Jul 2016 14:54:27 +0200 (CEST) Original-Received: from localhost (apn-77-112-87-171.dynamic.gprs.plus.pl [77.112.87.171]) by mail.mojserwer.eu (Postfix) with ESMTPSA id A2FDD1FE63 for ; Thu, 7 Jul 2016 14:54:26 +0200 (CEST) User-agent: mu4e 0.9.16; emacs 25.1.50.3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2a01:5e00:2:52::8 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:205313 Archived-At: 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, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University