auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Fix for tex-jp.el


From: Arash Esbati
Subject: Re: [AUCTeX-devel] Fix for tex-jp.el
Date: Mon, 06 Feb 2017 14:18:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2

Ikumi Keita <address@hidden> writes:

> I would like to install the attached changes to tex-jp.el.  May I proceed?

Hi Ikumi,

I trust your patches all work well, I only have a minor comment:

>                  (t
> -                 (if (japanese-TeX-coding-ejsu locale-coding-system)
> -                     locale-coding-system 'euc-jp))))))
> +                 (let ((lcs
> +                        (cond
> +                         ((boundp 'locale-coding-system)
> +                          locale-coding-system)
> +                         ;; for xemacs
> +                         ((fboundp 'get-coding-system-from-locale)
> +                          (get-coding-system-from-locale
> +                           (current-locale))))))
> +                   (if (and lcs (japanese-TeX-coding-ejsu lcs))
> +                       lcs 'euc-jp)))))))

I vaguely remember that tests against (X)Emacs should be done via
`featurep' and not against a function or variable; hence I would write
something like this:

    (let ((lcs (if (featurep 'xemacs)
                   (get-coding-system-from-locale (current-locale))
                 locale-coding-system))))

Thanks, Arash



reply via email to

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