(It didn't occur to me to try this before sending the other email. Sorry)
If in line 54 of file polymode-base.el (in polymode-20230317.1218) I change 'latex-mode by 'LaTeX-mode things seem to work. Instead of modifying polymode's source, I can make that change in the :config part of my polymode's use-package section: (use-package polymode blablabla :config (define-hostmode poly-latex-hostmode :mode 'LaTeX-mode) ) >From emacs -Q this seems to work (package-initialize) (with-eval-after-load 'polymode (define-hostmode poly-latex-hostmode :mode 'LaTeX-mode) ) Best, R. On Sat, 01-February-2025, at 02:04:20, Vincent Goulet via ESS-help <[email protected]> wrote: > Hey Gang, > > I'm stuck. In the current released version of my distro, packages like ESS, > AUCTeX and polymode are installed from the sources and loaded the > old-fashioned way, that is: > > (load "auctex.el" nil t t) > (load "ess-autoloads") > (require 'poly-R) > (require 'poly-noweb) > > Furthermore, .Rnw files are associated with poly-noweb-mode: > > (add-to-list 'auto-mode-alist '("\\.Rnw" . poly-noweb-mode)) > > If I visit a .Rnw file, I get both the Polymode and AUCTeX menus (LaTeX, > Command). The mode line indicates LaTeX/MP and PM (or PM-Rnw). All good. > > Now, with my upcoming distro, the packages are installed using > package-install and the package system is initialized in the site > configuration file [it contains (package-initialiaze)]. The thing is, when > I visit a .Rnw file, I get the polymode menu, but only the built-in TeX > ones (like TeX) and the mode line indicates LaTeX and PM. > > The files contain the the file variable > > %%% mode: noweb > > I tried changing this to a few values, to no avail. > > Anyone can help me around here? > > TIA > > v. > > >> Le 28 janv. 2025 à 15:00, Vincent Goulet via ESS-help >> <[email protected]> a écrit : >> >> Hi Rodney and all, >> >> As I was rolling up my sleeves to prepare an update of my distributions >> to include the newest ESS, I learned that AUCTeX, now in the 14.x series, >> is no longer distributed as a standalone tarball. Users should now >> install it using the Emacs package system. >> >> I was briefly back at the question I asked here a few months ago: is it >> time to retire my distributions since most additions can now be installed >> using package-install? At the time, some people showed continued interest >> for an out-of-the-box distribution. I'm probably one of them. >> Furthermore, I offer some customizations and extensions (Hunspell and >> dictionaries, for example) not as readily available elsewhere. >> >> After some fiddling, I found a way to reconcile my distributions and the >> Emacs package system: install packages in a sysadmin way inside the Emacs >> tree and ship this. When users install the distribution, the package >> system is already initialized (therefore users should *not* include >> (package-initialize) in their init file). The nice thing for the >> maintainer: building the distributions is now much simpler and faster. >> >> I'm testing this a little before I release updates, but so far, so good! >> >> Cheers, >> >> v. >> >>> Le 11 janv. 2025 à 13:42, Sparapani, Rodney via ESS-help >>> <[email protected]> a écrit : >>> >>> Hi Gang: >>> >>> ESS-core is pleased to announce that our latest annual release installment >>> is now available on ELPA. We have a few bug-fixes and new features. >>> >>> The biggest change is in philosophy as described in the first bullet below� >>> >>> Changes and New Features in 25.01.0: >>> >>> * polymode: In our transition from literate libraries (such as noweb >>> documented below with respect to 19.04), we now recommend the polymode >>> packages as a more suitable replacement. Furthermore, we suggest the >>> related polymodes including poly-noweb, poly-markdown and poly-R >>> (installed in that order). The package polymode itself, as well as the >>> polymodes packages, are all on MELPA rather than ELPA. Therefore, you >>> need to add MELPA to the list of installation archives as follows. >>> �(add-to-list 'package-archives '("melpa-stable" . >>> https://stable.melpa.org/packages/))� for M-x package-install >>> * ESS[R]: The shorthand notation for lambda functions and the question >>> mark are now fontified as keywords. Contributed by Maxime Pettinger. >>> * ESS[SAS]: Developed new comprehensive lists of PROCs and functions for >>> syntax highlighting. See etc/proc.sas and etc/func.sas. >>> >>> https://ess.r-project.org >>> >>> -- >>> Rodney Sparapani, Associate Professor of Biostatistics, He/Him >>> President, Wisconsin Chapter of the American Statistical Association >>> Division of Biostatistics, Data Science Institute >>> Medical College of Wisconsin, Milwaukee Campus >>> >>> >>> [[alternative HTML version deleted]] >>> >>> ______________________________________________ >>> [email protected] mailing list >>> https://stat.ethz.ch/mailman/listinfo/ess-help >> >> ______________________________________________ >> [email protected] mailing list >> https://stat.ethz.ch/mailman/listinfo/ess-help > > ______________________________________________ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help -- Ramon Diaz-Uriarte Department of Biochemistry, Lab B-31 Facultad de Medicina Universidad Autónoma de Madrid Arzobispo Morcillo, 4 28029 Madrid Spain Phone: +34-91-497-2412 Email: [email protected] [email protected] [email protected] https://ligarto.org/rdiaz ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
