Conversation
6862cd2 to
fbd1cb2
Compare
- Fix URL from leanprover/lean4-mode to leanprover-community/lean4-mode. - Default use-package :vc approach to :rev :last-release. - Use "major mode" rather than "major-mode".
- Add .dir-locals.el - Describe change in README.org, chapter "Contributing"
fbd1cb2 to
ca2037a
Compare
62706f3 to
7048820
Compare
|
Could you please also fix the long lines warnings from melpazoid? |
8ac148b to
814010b
Compare
|
@urkud, are you referring to this?:
Let's take a look at each of these:
This refers to this URL in the commentary:
Fixed in a new commit: 89a1b29
This refers to the URL |
|
Generally, I dislike Melpazoid. It's implemented in Python and has too many false-negatives. Its author themself admits this too. We may look for an alternative some time in future. |
9f048d2 to
3248ed4
Compare
|
I was mistaken. This...:
... has not been fixed by one of my commits. Instead, it is referring to this...: (eval-when-compile
(lsp-interface
(lean:PlainGoal (:goals) nil)
(lean:PlainTermGoal (:goal) nil)
(lean:Diagnostic (:range :fullRange :message) (:code :relatedInformation :severity :source :tags))))which expands to a very long Elisp code including this definition that Melpazoid may be warning about due to a too wide docstring: (cl-defun lsp-make-lean-diagnostic (&rest plist &key code? related-information? severity? source? tags? range full-range message &allow-other-keys) (ignore code? related-information? severity? source? tags? range full-range message) "Constructs lean:Diagnostic from `plist.'
Allowed params: (:message :full-range :range :tags? :source? :severity? :related-information? :code?)"
;; ...
)Long story short, this is an issue in lsp-mode because they are the developers of the |
Also use add-to-list so that re-evaluating the file won't add another entry to auto-mode-alist.
Fixes #89: #89 Co-authored-by: Akira Komamura <[email protected]>
Rephrase some single-line summaries. Use semicolon in prop-line as `add-file-local-variable-prop-line` does. Remove all library headers except for lean4-mode.el. Put "This file is not part of GNU Emacs." comment in all file headers consistently. Consistently use same licensing comment in all files while adhering to default fill-column. In lean4-eri.el and lean4-input.el, put the copyright notice from the original file at Agda-Mode. For this, I determined the exact commits from which Lean4-Mode (actually, originally Lean3-Mode, formerly called Lean-Mode) derived. I used the copyright notice from the Agda repository's LICENSE file at that commit. These commits are also named as part of a mentioned Github-URL. Make lean4-input.el properly end in "(provide 'lean4-input)\n;;; lean4-input.el ends here" rather than these two lines occurring somewhere in between.
This is just to silence Melpazoid warnings.
This call compatible with the signature of both emacs<30 and emacs>=30 because even though the signature of `derived-mode-p` changed, it still allows for the now single argument to be a symbol, not just a list of symbols.
- Remove weird comment ";; Automode List". - For lean4-mode, use a docstring starter similar to other places. - In lean4-mode docstring, drop "Invokes `lean4-mode-hook'." because Emacs will add information about the hook automatically anyway. - Avoid (add-hook 'lean4-mode-hook #'lsp) as Melpazoid warns about it. Instead, define lean4-mode-hook explicitely with `defcustom` before the mode is defined. `lsp` being its only default member (for now). Also offer flycheck-mode as option for users of Customize. The defcustom is placed in lean4-settings.el (for now) because that's where most user-options are defined.
3248ed4 to
a4a47bb
Compare
This PR fixes all issues under milestone 2 - internal cleanup. It aims to clean up some internals while avoiding breaking changes.
Each commit solves a specific problem. The PR can be best reviewed by reviewing each commit on its own.