Glenn Morris <rgm@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 36309) by debbugs.gnu.org; 20 Jun 2019 16:53:02 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 20 12:53:02 2019 Received: from localhost ([127.0.0.1]:49215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1he0J3-0004we-NC for submit <at> debbugs.gnu.org; Thu, 20 Jun 2019 12:53:01 -0400 Received: from mail-qt1-f171.google.com ([209.85.160.171]:40736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gusbrs.2016@HIDDEN>) id 1he0J1-0004wO-U8 for 36309 <at> debbugs.gnu.org; Thu, 20 Jun 2019 12:53:00 -0400 Received: by mail-qt1-f171.google.com with SMTP id a15so3872569qtn.7 for <36309 <at> debbugs.gnu.org>; Thu, 20 Jun 2019 09:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:references:user-agent:from:to:subject:in-reply-to:date :message-id:mime-version; bh=QGbfYsZ6KPQoNeVoj61oIZnTPOWZZ4DoKKq8CU/ZR88=; b=d9iJWnnLaPsJeXlvs8XeGII4ziosced+upp9QWUl/aeJdj008cSPZkZDYsRiflHgDN GC6aSAXHJyr32J1CjowqZNxB00p2oQH6KnEjrLGaePpuxX4nloCaVFREcfWBrBDb4NrR pKEJ8ilQxMgyMivLENPnq3ZKzWurAVTKNqJkWc2QQLFsnRyzJBjUzzOR/xCQcuTy9D65 P8Ui58yLaSuOPCD/yX4E2/B09GJfi5/O6gb7cZfEdINgxTIxnaQ3Q8+JqDhiB4tUMlSg CXjZ2RiP3mJVii/KaMXOSYGZLd4gHqzjaHSb7rV1rVlS4X4uW4g79ej96/w1Ghlu87kD 2FCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:references:user-agent:from:to:subject :in-reply-to:date:message-id:mime-version; bh=QGbfYsZ6KPQoNeVoj61oIZnTPOWZZ4DoKKq8CU/ZR88=; b=TW9/K1P5FBNnQHkTgYG447O3ppQXNbVai3yXbUT7OXVvstrALeIIrt8fveyd/qgMfc KsVQ4qPzup6MtXIcH4NmqbT8oHiRbTiOMBQXq1zv4C+lgQl6qxOL9zeg9HL3tWk3K+XG HYCeGURgKeazOpngMWLbI9yU3UGQgO/0yOX/2SMugp7fHMNyEW4GvtUELa/GWR0kzshg yd4vls0IWOXk4u92YX3+c0RlgiY7tqEj/3XMPR304vLZNJ7JaOlZos0ctG8pMQopLD4G V641Ne7NXjBXTL6jck1V87Ce8jr5lrCrmamORWdq1FjflhwDSqslkgXLQk55nLEazE+D wbXQ== X-Gm-Message-State: APjAAAVTZRnWWaAQCYmmAHUdLDJOaw+AylzWOkReiIGM+Oypsoaxd8CU RtFA8VE4cStYBkzegcZoi7IckIAhaNs= X-Google-Smtp-Source: APXvYqx9O7clxuDv22HX6GLgGn3pZOlNaPueydyAlOxEISw60dzXD19IaNtsf2U9MLwywxtgC8CZYg== X-Received: by 2002:a0c:b036:: with SMTP id k51mr41621112qvc.103.1561049573847; Thu, 20 Jun 2019 09:52:53 -0700 (PDT) Received: from gusbrs-laptop (ip-99-2-52-196.nyc.us.northamericancoax.com. [196.52.2.99]) by smtp.gmail.com with ESMTPSA id q29sm103895qkq.77.2019.06.20.09.52.51 for <36309 <at> debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Jun 2019 09:52:52 -0700 (PDT) References: <c2d44779-c524-b637-e08f-4ee4372ae80b@HIDDEN> <handler.36309.B.15610414344846.ack <at> debbugs.gnu.org> User-agent: mu4e 1.2.0; emacs 26.2 From: Gustavo Barros <gusbrs.2016@HIDDEN> To: 36309 <at> debbugs.gnu.org Subject: Re: bug#36309: Acknowledgement (26.2; Interaction between electric-pair and electric-quote) In-reply-to: <handler.36309.B.15610414344846.ack <at> debbugs.gnu.org> Date: Thu, 20 Jun 2019 13:52:49 -0300 Message-ID: <87blys5hcu.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 36309 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.7 (/) Please disregard this. It is the same as bug#36307, and was sent in duplicity by mistake. Sorry for the noise. Gustavo Barros. On Thu, Jun 20 2019, GNU bug Tracking System wrote: > Thank you for filing a new bug report with debbugs.gnu.org. > > This is an automatically generated reply to let you know your message > has been received. > > Your message is being forwarded to the package maintainers and other > interested parties for their attention; they will reply in due course. > > Your message has been sent to the package maintainer(s): > bug-gnu-emacs@HIDDEN > > If you wish to submit further information on this problem, please > send it to 36309 <at> debbugs.gnu.org. > > Please do not send mail to help-debbugs@HIDDEN unless you wish > to report a problem with the Bug-tracking system.
bug-gnu-emacs@HIDDEN
:bug#36309
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 20 Jun 2019 14:37:14 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 20 10:37:14 2019 Received: from localhost ([127.0.0.1]:49120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hdyBd-0001G5-TD for submit <at> debbugs.gnu.org; Thu, 20 Jun 2019 10:37:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:34330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gtvbrs@HIDDEN>) id 1hdwzP-0007Zi-CT for submit <at> debbugs.gnu.org; Thu, 20 Jun 2019 09:20:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52329) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from <gtvbrs@HIDDEN>) id 1hdwzD-00056W-E7 for bug-gnu-emacs@HIDDEN; Thu, 20 Jun 2019 09:20:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HK_RANDOM_ENVFROM,HK_RANDOM_FROM,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <gtvbrs@HIDDEN>) id 1hdwz3-0008CL-O5 for bug-gnu-emacs@HIDDEN; Thu, 20 Jun 2019 09:20:16 -0400 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]:38633) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <gtvbrs@HIDDEN>) id 1hdwz3-0008Br-Gw for bug-gnu-emacs@HIDDEN; Thu, 20 Jun 2019 09:20:09 -0400 Received: by mail-qk1-x743.google.com with SMTP id a27so1862179qkk.5 for <bug-gnu-emacs@HIDDEN>; Thu, 20 Jun 2019 06:20:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:subject:from:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=GiK1G4bJJOjm17wDh0KfZtz++dQA2n6PHwETFk7ktcQ=; b=SXFhe33aQwxDUMO72dksoWoX+AAM+sK18veP8LBHq86Tlv+MuveXcUsXLGC6XXqVBZ ozd90FpgwG8FxUz+UAcBZE/wL0GxPM7LOwtWleCgjtexcZcFUUzl1KROj202CIT79RMr JOqRPIlTcoA8/4LwwnP6Jvzw2KruPH6wdpy0bTG/OBdCMFS5yIZ+guFlrPxmOkFfbPsY hmp22cizMIVXk/nm3DiX7UezZJw8PHR6QPB9+PHUbuFCPFXqS1FaYDTrjixUcFNgXjsh s8mi091Fbku2+iwG/hRANdqfNpLvei/rJVxtSbDPT1ViXHssrWQwVFzFyC5nuQRL6nPL TXeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:subject:from:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=GiK1G4bJJOjm17wDh0KfZtz++dQA2n6PHwETFk7ktcQ=; b=EiyRsRvsLO75xyo1w7dMRh5fImqkRmzIcivl4OV3MDv2dzDwSADrISlc4+dRpMjpBs +GACywDa8MLQ1pjyT3dY30u4bDTegCRrvJOnofeaaUmhnIuqtYujBxyuBLRyZxOuUG24 WQjR/hvzuFB45tlIvn/gMoHtkNL9OHZLXG80nqDq0wypTxLW8bQVqnb8faPNJPWIfHvU SeqWsJMiP5JN5FJkQF9LlWyPdsjjnUHpG3i/Zt9x46E1nYQiV83hE+hfYzIefwhOasrP F/Ou0DZ4bZJRfC+hIqdPHYgMPhuYE/BVZ4R82AXRTQ/7y/Xk8ZF8/fgNeuANzzhM6XVo zWyg== X-Gm-Message-State: APjAAAUsjHmtnNHIElgZdKWIM6szAH6gcOAoovM9rMNHuBJrWiAT4XAo Nu41PKAsIoTBs20EPanqrZRqzFXJOE0= X-Google-Smtp-Source: APXvYqxhEUsg3FUV9agWBxPEBAau1Vqj+fkk/w2zJDyTfaKc/Va23iV0Lc0UF1k4jhK7MwYk0zxG2A== X-Received: by 2002:a05:620a:5a:: with SMTP id t26mr11181440qkt.201.1561036805779; Thu, 20 Jun 2019 06:20:05 -0700 (PDT) Received: from [10.2.11.6] (ip-99-2-52-196.nyc.us.northamericancoax.com. [196.52.2.99]) by smtp.gmail.com with ESMTPSA id q56sm15837421qtq.64.2019.06.20.06.20.04 for <bug-gnu-emacs@HIDDEN> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 06:20:05 -0700 (PDT) To: bug-gnu-emacs@HIDDEN Subject: 26.2; Interaction between electric-pair and electric-quote From: Gustavo Barros <gtvbrs@HIDDEN> Message-ID: <c2d44779-c524-b637-e08f-4ee4372ae80b@HIDDEN> Date: Thu, 20 Jun 2019 10:20:00 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: pt-BR X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::743 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 20 Jun 2019 10:37:12 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.7 (/) I've been using both 'electric-pair-mode' and 'electric-quote-mode' for some time, and they mostly come in really handy. So they are appreciated. But their interaction still leaves some things to be desired for: in sum, electric-quotes do not behave as other electric-pairs. Thus this report. I don't think I can exhaust all the cases involved in their interaction, but I try to document some specific ones I've identified more precisely. So, in the examples bellow, I'll consider mostly two cases: quote insertion on a left word boundary, and quote insertion on an active region. In them, I use "|" to denote point position and "|foo|" to denote an active region. Steps followed: #+begin_src bash emacs -Q #+end_src Then: #+begin_src emacs-lisp (text-mode) (electric-pair-mode) (electric-quote-mode) (setq electric-pair-inhibit-predicate 'electric-pair-conservative-inhibit) #+end_src With this settings in hand, and in the following situations (as described above): #+begin_example foo |bar baz foo |bar| baz #+end_example If we type ` (one backtick), the result is: #+begin_example foo ‘’bar baz foo ‘bar’ baz #+end_example But the expected result would be: #+begin_example foo ‘bar baz foo ‘bar’ baz #+end_example Well, this is 'expected' as far as I can see. Its worth noting though that it is the same behavior exhibited by inserting " (a double quote), thus independently of electric-quote. That is, the pair is inserted in the left boundary of 'bar' for a double quote. This happens in text-mode, but not in emacs-lisp-mode, code or comments, or in org-mode. The pairing in this position also does not happen for other electric-pair symbols, such as braces, parentheses etc. So I don't really know if I'm missing something, and this is expected behavior of the selected 'electric-pair-inhibit-predicate' in text mode, or if there is something else in play. Now, if we type `` (two backticks), we get: #+begin_example foo “”bar baz foo “”bar’ baz #+end_example But the expected result would be: #+begin_example foo “bar baz foo “bar” baz #+end_example Yet, if we further add 'delete-selection' to the bunch: #+begin_src emacs-lisp (delete-selection-mode) #+end_src If we type ` (one backtick), the result is: #+begin_example foo ‘’bar baz foo ‘’ baz #+end_example And, if we type `` (two backticks), we get: #+begin_example foo “”bar baz foo “” baz #+end_example The expectation here is that results should not be affected by 'delete-selection-mode'. As is the case for other electric-pair pairs. Well, this is the report describing the relevant behavior, that I believe not to be expected. But, beyond that, I'd like to add a related suggestion, which I think is pertinent to the issue at hand. The typing strategy adopted by 'electric-quote-mode' relies on the typing of two keys (' single quote; ` backtick), which have to be typed twice to get to a double curved quote. (True, electric-pair can reduce this typing, but that's independent.) Now, the fact that double curved quotes are inserted by the sequential typing of either key complicates their pairing in the active region case. For, as is expected, after the first (single) quote is inserted, the region is no longer active. There might be ways around this, I don't know. Still, making 'electric-quote-mode' (more) context-sensitive may relieve it of the sequencial key pressing, and help solve this technical difficulty. E.g. on a left word boundary, insert a left curved quote; on a right word boundary, insert a right curved quote, and so on. Of course, the relevant cases would have to be thought through. And, of course, a way to force desired behavior in case context-sensitivity doesn't get it right would also have to be provided. But, in this fashion, 'electric-quote-mode' could rely on a single key-pressing for each kind of quote (' single quote and " double quote seem natural candidates), this would likely streamline curved quotes to behave in similar fashion as their other electric-pair relatives. In my view, it would also improve editing experience. Best regards, Gustavo Barros. In GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2019-04-19 built on gusbrs-laptop Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Linux Mint 19.1 Tessa Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set [2 times] nil t [2 times] electric-pair-conservative-inhibit t Configured using: 'configure --with-mailutils --with-xwidgets --with-modules' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD LCMS2 Important settings: value of $LC_MONETARY: pt_BR.UTF-8 value of $LC_NUMERIC: pt_BR.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Text Minor modes in effect: delete-selection-mode: t electric-pair-mode: t tooltip-mode: t global-eldoc-mode: t electric-quote-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils delsel elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 95028 8687) (symbols 48 20427 2) (miscs 40 57 129) (strings 32 28461 1206) (string-bytes 1 748945) (vectors 16 14089) (vector-slots 8 502824 10466) (floats 8 51 322) (intervals 56 225 0) (buffers 992 11))
Gustavo Barros <gtvbrs@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#36309
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.