From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Leach Newsgroups: gmane.emacs.devel Subject: [PATCH] Make ispell skip checking arguments to TeX's \cref macro Date: Fri, 15 Apr 2016 19:27:00 +0100 Message-ID: <87a8kusp6z.fsf@mattleach.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1460744858 27432 80.91.229.3 (15 Apr 2016 18:27:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Apr 2016 18:27:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 15 20:27:30 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 1ar8Sl-0008QY-G1 for ged-emacs-devel@m.gmane.org; Fri, 15 Apr 2016 20:27:27 +0200 Original-Received: from localhost ([::1]:39554 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar8Sk-0000yH-Re for ged-emacs-devel@m.gmane.org; Fri, 15 Apr 2016 14:27:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar8SU-0000um-OV for emacs-devel@gnu.org; Fri, 15 Apr 2016 14:27:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ar8SP-0002Ea-PM for emacs-devel@gnu.org; Fri, 15 Apr 2016 14:27:10 -0400 Original-Received: from mx0.mattleach.net ([176.58.118.143]:53706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar8SP-0002Dx-JZ for emacs-devel@gnu.org; Fri, 15 Apr 2016 14:27:05 -0400 Original-Received: by mx0.mattleach.net (Postfix, from userid 99) id 248406222E; Fri, 15 Apr 2016 19:27:01 +0100 (BST) Original-Received: from matt-desktop.mattleach.net (host81-159-147-176.range81-159.btcentralplus.com [81.159.147.176]) by mx0.mattleach.net (Postfix) with ESMTPSA id 826A16222C for ; Fri, 15 Apr 2016 19:27:00 +0100 (BST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 176.58.118.143 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:202965 Archived-At: --=-=-= Content-Type: text/plain Hi all, Please see the attached patch which makes ispell skip checking on cref's macro arguments. Thanks, -- Matt --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Skip-TeX-cref-macro-with-ispell.patch >From 61f70d6450aa6658ce27d2cc6d012ddad8875ba2 Mon Sep 17 00:00:00 2001 From: Matthew Leach Date: Fri, 15 Apr 2016 19:22:35 +0100 Subject: [PATCH] Skip TeX \cref macro with ispell. * lisp/textmodes/ispell.el (ispell-tex-skip-alists): Add the cref macro to skip spell checking on the cref macro argument. --- lisp/textmodes/ispell.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 97e64c9..c8c20d5 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -1876,6 +1876,7 @@ ispell-tex-skip-alists ("\\\\\\([aA]lph\\|arabic\\)" ispell-tex-arg-end) ;;("\\\\author" ispell-tex-arg-end) ("\\\\bibliographystyle" ispell-tex-arg-end) + ("\\\\cref" ispell-tex-arg-end) ("\\\\makebox" ispell-tex-arg-end 0) ("\\\\e?psfig" ispell-tex-arg-end) ("\\\\document\\(class\\|style\\)" . -- 2.8.0 --=-=-=--