Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agda-mode compile errors with emacs 29.1 #956

Open
csams opened this issue Jan 23, 2024 · 2 comments
Open

agda-mode compile errors with emacs 29.1 #956

csams opened this issue Jan 23, 2024 · 2 comments

Comments

@csams
Copy link

csams commented Jan 23, 2024

There are several instances of

Error: docstring has wrong usage of unescaped single quotes (use \= or different quoting)

and one instance of

Error: Doc string after `interactive'

for share/emacs-mode/agda2-mode.el

This may be fixed with Agda 2.6.4? See agda/agda#6714

@csams csams closed this as completed Jan 24, 2024
@csams csams reopened this Jan 24, 2024
@wenkokke
Copy link
Collaborator

Unfortunately, moving to Agda 2.6.4 is blocked.

@sepehr541
Copy link

sepehr541 commented May 18, 2024

Here are the minor changes I made to fix the compile errors. Hope this is helpful. Feel free to look at the agda2-mode.el from v2.6.4.

--- agda2-mode.el	2024-05-17 20:56:08.379606368 -0700
+++ ~/.cabal/store/ghc-9.4.8/Agda-2.6.3-98dc26f0512b6fc265477ce47f51b6dff9479f98d0ec42d10fc1bbfff8708d2f/share/emacs-mode/agda2-mode.el	2024-05-17 20:47:56.079686691 -0700
@@ -261,8 +261,8 @@
   "Table of commands, used to build keymaps and menus.
 Each element has the form (CMD &optional KEYS WHERE DESC) where
 CMD is a command; KEYS is its key binding (if any); WHERE is a
-list which should contain 'local if the command should exist in
-the goal menu and 'global if the command should exist in the main
+list which should contain \\='local if the command should exist in
+the goal menu and \\='global if the command should exist in the main
 menu; and DESC is the description of the command used in the
 menus.")
 
@@ -530,7 +530,7 @@
 Sends the list of strings ARGS to the Agda2 interpreter, waits
 for output and executes the responses, if any.
 
-If SAVE is 'save, then the buffer is saved first.
+If SAVE is \\='save, then the buffer is saved first.
 
 If HIGHLIGHT is non-nil, then the buffer's syntax highlighting
 may be updated. This is also the case if the Agda process is
@@ -759,13 +759,13 @@
   contains whitespace, then the input is taken from the
   minibuffer. In this case WANT is used as the prompt string.
 
-* Otherwise (including if WANT is 'goal) the goal contents are
+* Otherwise (including if WANT is \\='goal) the goal contents are
   used.
 
 If the user input is not taken from the goal, then an empty goal
 range is given.
 
-If SAVE is 'save, then the buffer is saved just before the
+If SAVE is \\='save, then the buffer is saved just before the
 command is sent to Agda (if it is sent)."
   (cl-multiple-value-bind (o g) (agda2-goal-at (point))
     (unless g (error "For this command, please place the cursor in a goal"))
@@ -892,8 +892,8 @@
  (agda2-goal-cmd "Cmd_autoOne" 'save 'goal))
 
 (defun agda2-autoAll ()
-  (interactive)
   "Solves all goals by simple proof search."
+  (interactive)
   (agda2-go nil nil 'busy t "Cmd_autoAll")
 )
 
@@ -1949,7 +1949,7 @@
 
 (defun agda2-get-agda-program-versions ()
   "Get \"version strings\" of executables starting with
-'agda-mode' in current path."
+`agda-mode' in current path."
   (delete-dups
    (mapcar (lambda (path)
              ;; strip 'agda-mode' prefix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants