emacs-devel
[Top][All Lists]
Advanced

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

Re: master 089b159 02/12: change calc to use derived-mode-p


From: Mark Oteiza
Subject: Re: master 089b159 02/12: change calc to use derived-mode-p
Date: Wed, 05 Apr 2017 21:39:27 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

address@hidden (Tom Tromey) writes:

>     change calc to use derived-mode-p
>     
>     * lisp/calc/calc-embed.el (calc-embedded-find-modes)
>     (calc-embedded-make-info): Use derived-mode-p.
> ---
>  lisp/calc/calc-embed.el | 20 +++++++++++++-------
>  1 file changed, 13 insertions(+), 7 deletions(-)
>
> diff --git a/lisp/calc/calc-embed.el b/lisp/calc/calc-embed.el
> index bb37d7f..bd5601b 100644
> --- a/lisp/calc/calc-embed.el
> +++ b/lisp/calc/calc-embed.el
> @@ -804,7 +804,7 @@ The command \\[yank] can retrieve it from there."
>        (backward-char 6))
>      (goto-char save-pt)
>      (unless (assq 'the-language modes)
> -      (let ((lang (assoc major-mode calc-language-alist)))
> +      (let ((lang (cl-assoc-if #'derived-mode-p calc-language-alist)))
>          (if lang
>              (setq modes (cons (cons 'the-language (cdr lang))
>                                modes)))))
> <snip>

At first sight: neither calc, viper, nor align use cl-lib, so these
changes break things.



reply via email to

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