all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matthew Leach <matthew@mattleach.net>
To: emacs-devel@gnu.org
Subject: [PATCH] Make ispell skip checking arguments to TeX's \cref macro
Date: Fri, 15 Apr 2016 19:27:00 +0100	[thread overview]
Message-ID: <87a8kusp6z.fsf@mattleach.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 117 bytes --]

Hi all,

Please see the attached patch which makes ispell skip checking on cref's
macro arguments.

Thanks,
-- 
Matt

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Skip-TeX-cref-macro-with-ispell.patch --]
[-- Type: text/x-diff, Size: 941 bytes --]

From 61f70d6450aa6658ce27d2cc6d012ddad8875ba2 Mon Sep 17 00:00:00 2001
From: Matthew Leach <matthew@mattleach.net>
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


             reply	other threads:[~2016-04-15 18:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-15 18:27 Matthew Leach [this message]
2016-04-16  9:23 ` [PATCH] Make ispell skip checking arguments to TeX's \cref macro Eli Zaretskii

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a8kusp6z.fsf@mattleach.net \
    --to=matthew@mattleach.net \
    --cc=emacs-devel@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.