From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: richard.banach@manchester.ac.uk (Richard Banach) Newsgroups: gmane.emacs.bugs Subject: bug#28277: emacs -nw bug? Date: Mon, 04 Nov 2019 14:53:39 +0000 Message-ID: <20191104145339.368091A1D53@cspc380.localdomain> References: <20170829124623.6EC32301033@cspc120.cs.man.ac.uk> <87mudiqj4a.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="153517"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Heirloom mailx 12.5 7/5/10 Cc: 28277@debbugs.gnu.org To: richard.banach@manchester.ac.uk, larsi@gnus.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 04 15:54:26 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iRdkM-000djH-Hs for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Nov 2019 15:54:22 +0100 Original-Received: from localhost ([::1]:34156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRdkL-0001km-D8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Nov 2019 09:54:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37423) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRdk3-0001jf-DA for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 09:54:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRdk2-0004Gs-4A for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 09:54:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55492) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iRdk2-0004Go-0J for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 09:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iRdk1-00073l-Tq for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 09:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: richard.banach@manchester.ac.uk (Richard Banach) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Nov 2019 14:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28277 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 28277-submit@debbugs.gnu.org id=B28277.157287922427112 (code B ref 28277); Mon, 04 Nov 2019 14:54:01 +0000 Original-Received: (at 28277) by debbugs.gnu.org; 4 Nov 2019 14:53:44 +0000 Original-Received: from localhost ([127.0.0.1]:36080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRdjk-00073D-D3 for submit@debbugs.gnu.org; Mon, 04 Nov 2019 09:53:44 -0500 Original-Received: from clarity.mcc.ac.uk ([130.88.200.144]:64301) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRdji-000735-9N for 28277@debbugs.gnu.org; Mon, 04 Nov 2019 09:53:43 -0500 Original-Received: from cspc380.cs.man.ac.uk ([130.88.192.200]:54602 helo=cspc380.localdomain) by clarity.mcc.ac.uk with esmtp (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iRdjh-0006K9-OJ; Mon, 04 Nov 2019 14:53:41 +0000 Original-Received: by cspc380.localdomain (Postfix, from userid 4029) id 368091A1D53; Mon, 4 Nov 2019 14:53:39 +0000 (GMT) In-Reply-To: <87mudiqj4a.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170936 Archived-At: hi, thanks for the suggestion ....... ages ago, someone suggested =============================================== (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(custom-enabled-themes nil)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(italic ((t (:underline nil)))) '(underline ((t (:underline t))))) =============================================== ... and it seems to work fine :-) richard. =============================================== =============================================== Lars Ingebrigtsen wrote: | richard.banach@manchester.ac.uk (Richard Banach) writes: | | > I use emacs -nw and see what looks like a bug | > | > * in tex mode, if I type $\it identifiername$ it doesn't recognise | > the second $ as closing the scope of \it ... and wants to underline | > everything that follows ... i haven't found how to turn this off | | The following patch fixes the problem -- but I'm not sure whether it | could cause any regressions. | | Is | | \it foobar $math-stuff$ | | or something like it possible? It's been a while since I wrote any TeX. | | | diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el | index f277defecf..9d9490602a 100644 | --- a/lisp/textmodes/tex-mode.el | +++ b/lisp/textmodes/tex-mode.el | @@ -593,7 +593,7 @@ tex-font-lock-keywords-2 | ;; Miscellany. | (slash "\\\\") | (opt " *\\(\\[[^]]*\\] *\\)*") | - (args "\\(\\(?:[^{}&\\]+\\|\\\\.\\|{[^}]*}\\)+\\)") | + (args "\\(\\(?:[^${}&\\]+\\|\\\\.\\|{[^}]*}\\)+\\)") | (arg "{\\(\\(?:[^{}\\]+\\|\\\\.\\|{[^}]*}\\)+\\)")) | (list | ;; | | | -- | (domestic pets only, the antidote for overdose, milk.) | bloggy blog: http://lars.ingebrigtsen.no