Bug 1411079
Summary: | GNU Emacs 25.1: bug in setting syntax-highlighting for m files to that of GNU Octave | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Brenton Horne <brentonhorne77> |
Component: | emacs | Assignee: | Jan Synacek <jsynacek> |
Status: | CLOSED INSUFFICIENT_DATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 25 | CC: | brentonhorne77, jonathan.underwood, jsynacek, msekleta, phracek |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-04-03 11:29:26 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Brenton Horne
2017-01-08 08:56:51 UTC
(In reply to Brenton Horne from comment #0) > Description of problem: > Adding: > > (progn > (autoload 'octave-mode "octave") > (setq auto-mode-alist (cons '("\\.m\\'" . octave-mode) auto-mode-alist))) > > to one's ~/.emacs file does not cause files with the .m file extension to be > syntax-highlighted using octave-mode. When I put that snippet into my ~/.emacs, .m files are opened in the octave-mode. Have you tried temporarily removing you .emacs and putting *only* these lines into it? Maybe it's a configuration problem. If it still doesn't work, please try running emacs -Q and then eval'ing the s-expression in the scratch buffer and opening a .m file. Sorry I have since ditched Fedora in favour of other distros, so I can't test this out. What I remember is that this bug was very persistent and bizarre. I thought it was an issue with GNU Emacs itself, but it turns out it was Fedora's packaging of it as on other distros the same config worked fine. Likewise if I used an AppImage on Fedora the config worked fine. |