bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs 21: ispell does not skip tags when using xae


From: Rob Browning
Subject: emacs 21: ispell does not skip tags when using xae
Date: Fri, 30 Nov 2001 17:38:42 -0600
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1

Not sure whether or not ispell intends to support xae, but if so,
here's a patch.

Please maintain the -forwarded Cc: so the bug tracker will have a
record of any further information.

Thanks

James A.H.Skillen <jahs@jahs.org> writes:

> Package: emacs21-el
> Version: 21.1-4
> Severity: normal
> Tags: patch
>
> When in html or sgml mode, ispell will skip over tags.
> However, if you are using xae to edit xml then ispell does not do this:
> it will try to spellcheck "xml" etc.
>
> The following patch fixes this:
>
> diff --recursive -u emacs21-21.1/lisp/textmodes/ispell.el 
> emacs21-21.1-jahs/lisp/textmodes/ispell.el
> --- emacs21-21.1/lisp/textmodes/ispell.el     Fri Sep  7 16:35:56 2001
> +++ emacs21-21.1-jahs/lisp/textmodes/ispell.el        Sat Nov 10 16:52:24 2001
> @@ -3146,7 +3146,7 @@
>    ;; If needed, test for SGML & HTML modes and set a buffer local nil/t 
> value.
>    (if (and ispell-skip-html (not (eq ispell-skip-html t)))
>        (set (make-local-variable 'ispell-skip-html)
> -        (not (null (string-match "sgml\\|html"
> +        (not (null (string-match "sgml\\|html\\|xae"
>                                   (downcase (symbol-name major-mode)))))))
>    ;; Set default extended character mode for given buffer, if any.
>    (let ((extended-char-mode (ispell-get-extended-character-mode)))
>
> -- System Information
> Debian Release: testing/unstable
> Architecture: i386
> Kernel: Linux heidegger 2.4.12 #1 Fri Oct 19 01:28:21 BST 2001 i686
> Locale: LANG=en_GB, LC_CTYPE=
>
> Versions of packages emacs21-el depends on:
> ii  emacs21                       21.1-4     The GNU Emacs editor.
>
>
>

-- 
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG=1C58 8B2C FB5E 3F64 EA5C  64AE 78FE E5FE F0CB A0AD



reply via email to

[Prev in Thread] Current Thread [Next in Thread]