From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Norman Ramsey <nr@cs.tufts.edu>
Cc: 12137-done@debbugs.gnu.org
Subject: bug#12137: 23.4; latex-mode tex-insert-quote not aware of ties in context
Date: Tue, 14 Aug 2012 23:48:03 -0400 [thread overview]
Message-ID: <jwvtxw4rf4f.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <b91vcgyk38i.fsf@homedog.cs.tufts.edu> (Norman Ramsey's message of "Sat, 04 Aug 2012 12:53:49 -0400")
> hello ``my'' dearest~''darling.''
Thanks, I fixed it in Emacs's trunk with the patch below,
Stefan
=== modified file 'lisp/textmodes/tex-mode.el'
--- lisp/textmodes/tex-mode.el 2012-08-03 02:29:59 +0000
+++ lisp/textmodes/tex-mode.el 2012-08-15 03:45:12 +0000
@@ -1286,7 +1286,8 @@
(delete-char (length tex-open-quote))
t)))
(self-insert-command (prefix-numeric-value arg))
- (insert (if (memq (char-syntax (preceding-char)) '(?\( ?> ?\s))
+ (insert (if (or (memq (char-syntax (preceding-char)) '(?\( ?> ?\s))
+ (memq (preceding-char) '(?~)))
tex-open-quote tex-close-quote))))
(defun tex-validate-buffer ()
prev parent reply other threads:[~2012-08-15 3:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-04 16:53 bug#12137: 23.4; latex-mode tex-insert-quote not aware of ties in context Norman Ramsey
2012-08-15 3:48 ` Stefan Monnier [this message]
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=jwvtxw4rf4f.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=12137-done@debbugs.gnu.org \
--cc=nr@cs.tufts.edu \
/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).