* Re: master 089b159 02/12: change calc to use derived-mode-p
[not found] ` <20170405221729.6CD8B210A4@vcs0.savannah.gnu.org>
@ 2017-04-06 1:39 ` Mark Oteiza
2017-04-06 3:05 ` Tom Tromey
0 siblings, 1 reply; 3+ messages in thread
From: Mark Oteiza @ 2017-04-06 1:39 UTC (permalink / raw)
To: emacs-devel; +Cc: Tom Tromey
tom@tromey.com (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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-04-06 3:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20170405221727.14496.89482@vcs0.savannah.gnu.org>
[not found] ` <20170405221729.6CD8B210A4@vcs0.savannah.gnu.org>
2017-04-06 1:39 ` master 089b159 02/12: change calc to use derived-mode-p Mark Oteiza
2017-04-06 3:05 ` Tom Tromey
2017-04-06 3:25 ` Tom Tromey
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.