Dear Vincent, I've been experiencing the same issue (as I report too in https://github.com/polymode/polymode/issues/336#issuecomment-2661604492 ).
This is something that I started experiencing with AUCTeX 14.0.2 and seems related to the change, in AUCTeX, from "latex-mode" to "LaTeX-mode" ( https://lists.gnu.org/archive/html/auctex-devel/2024-01/msg00002.html). If you set the Rnw buffer to use AUCTeX (M-x LaTeX-mode), then polymode is deactivated. What I've been doing is using AUCTeX 13 (at least both of 13.2.4 and 13.2.1 work). Best, R. P.S. I can trigger the problem as follows emacs -Q M-x package-initialize ;; open/create file that ends on .Rnw ;; notice it is not using AUCTeX M-x LaTeX-mode ;; notice no longer poly-noweb+r-mode On Sat, 01-February-2025, at 02:04:20, Vincent Goulet via ESS-help <ess-help@r-project.org> 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 >> <ess-help@r-project.org> 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 >>> <ess-help@r-project.org> 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]] >>> >>> ______________________________________________ >>> ESS-help@r-project.org mailing list >>> https://stat.ethz.ch/mailman/listinfo/ess-help >> >> ______________________________________________ >> ESS-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/ess-help > > ______________________________________________ > ESS-help@r-project.org 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: rdia...@gmail.com r.d...@uam.es ramon.d...@iib.uam.es https://ligarto.org/rdiaz ______________________________________________ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help