For package cl is depreciated you can read this thread. I don't think this is causing any issues with markdown. https://www.reddit.com/r/emacs/comments/zslyem/package_cl_is_deprecated_debugging/
On Sun, Apr 23, 2023, 17:16 Kevin Zembower via ESS-help < ess-help@r-project.org> wrote: > Tyler, thanks again for your help. > > I'm sorry to burden you with my problems, but I'm stuck again. > > I think I have everything installed and up to date. Here's an excerpt > from M-x package-list-packages: > markdown-mode 20220212.728 installed Major mode for > Markdown-formatted text > poly-R 20230416.1454 installed Various > polymodes for R language > poly-markdown 20230202.1210 installed Polymode for > markdown-mode > poly-noweb 20200316.1315 installed Polymode for > noweb > polymode 20230317.1218 installed Extensible > framework for multiple major modes > > With the exception of poly-noweb, they're all 2023 packages. > > Yet, when I open an *.Rmd file, I get this in the Messages buffer: > > File mode specification error: (error Autoloading file > /home/kevin/.emacs.d/polymode/modes/poly-R.el failed to define function > poly-gfm+r-mode) > Package cl is deprecated > > I then added your alternative define-polymode section, and the error > about poly-gfm+r-mode went away, but I still have this message in the > Messages buffer when I start Emacs with an *.Rmd file: > > File mode specification error: (cl-no-applicable-method clone nil) > Package cl is deprecated > > I can't find a reference to a 'cl' package in my init.el. In addition, > the *.Rmd file is in Fundamental mode, and not ESS or poly-R mode. > > When I try to manually invoke the poly mode, with 'M-x poly-gfm+r-mode', > I get the message: > > cl-no-applicable-method: No applicable method: clone, nil > > Any ideas what's going on with my system? I'm so worried I'm just making > a hash of things with these changes. > > Thanks for any advice or guidance. > > -Kevin > > On 4/22/23 06:00, ess-help-requ...@r-project.org wrote: > > ------------------------------ > > > > Message: 2 > > Date: Fri, 21 Apr 2023 11:09:43 -0400 > > From: "Tyler Smith"<ty...@plantarum.ca> > > To: ESS-help<ess-help@r-project.org> > > Subject: Re: [ESS] Emacs, ESS and Rmarkdown: Is this the way compile > > is supposed to work? > > Message-ID:<a2b88f26-7760-41c2-8e9d-e4ea5de4b...@app.fastmail.com> > > Content-Type: text/plain; charset="us-ascii" > > > > Hi Kevin, > > > > If you have an older version of `poly-R`, the function `poly-gfm+r-mode` > might not be present. This was added to `poly-R` dev in July 2021, I'm not > sure exactly when it would have been added to the released version. > > > > If that's the case, updating to the current version of `poly-R` should > fix the problem. > > > > Alternatively, you need the following code evaluated*after* `(require > 'poly-R)` and*before* `(add-to-list ...)`: > > > > ``` > > (define-polymode poly-gfm+r-mode poly-markdown+r-mode > > :lighter " PM-Rmd(gfm)" > > :hostmode 'poly-gfm-hostmode) > > ``` > > > > But that really shouldn't be necessary. > > > > Best, > > > > Tyler > > -- plantarum.ca > > > ______________________________________________ > ESS-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help > [[alternative HTML version deleted]] ______________________________________________ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help