ralph-schleicher / emacs-openfoam

An Emacs major mode for editing OpenFOAM data files and utility commands for OpenFOAM case directories.
GNU General Public License v3.0
3 stars 3 forks source link

Error when loading #1

Open fab6 opened 2 years ago

fab6 commented 2 years ago

Hi, I just came across your mode and would actually like to test it. Unfortunately I am not able to load it as I get a coding error: image

Do you have an advice how to correct this?

Thank you in advance! Fab

ralph-schleicher commented 2 years ago

Do you try to load it manually or via MELPA, i.e. Emacs package manager? And on what kind of system are you working on?

fab6 commented 2 years ago

Hi, thank you for the quick help, I am using straight

image

On a macos system

image

with emacs

image

Actually I did not know that melpa exists... I will check it as well.

fab6 commented 2 years ago

I just saw that I have at the end a strange sign, not sure, if this is relevant: image

fab6 commented 2 years ago

and also in emacs-openfoam-autoloads.el image

fab6 commented 2 years ago

but probably straight is adding this

ralph-schleicher commented 2 years ago

Do you mean the ^L? That's a page delimiter and an Emacs coding standard. What is also an Emacs standard is that Elisp source files are UTF-8 encoded unless a different coding system is defined in the "coding" file-local variable.

Nevertheless, from where does this emacs-openfoam-autoloads.el file come from? It's neither the version distributed via MELPA nor the version saved on GitHub. Sorry, but you seem to do some quite strange things there. Or is your Emacs 29 broken?

fab6 commented 2 years ago

Yes, I meant the ^L... which I did not know before. Now I tested it with version 28.0.91 with same or similar result. I think the autoloads.el is created by straight. Now I was thinking that the nabla symbol is the challenge and my corresponding other settings... Thank you for your help!