[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/idris-mode 38f2839b58 08/14: Use `let ((buffer-read-only n
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/idris-mode 38f2839b58 08/14: Use `let ((buffer-read-only nil)` instead of `setq ..` |
Date: |
Thu, 1 Dec 2022 08:02:54 -0500 (EST) |
branch: elpa/idris-mode
commit 38f2839b58e69824452dfcfb5e89c6324fa0b356
Author: Marek L <nospam.keram@gmail.com>
Commit: Marek L <nospam.keram@gmail.com>
Use `let ((buffer-read-only nil)` instead of `setq ..`
for hole list buffer
---
idris-hole-list.el | 34 ++++++++++++++++------------------
idris-tests.el | 1 -
2 files changed, 16 insertions(+), 19 deletions(-)
diff --git a/idris-hole-list.el b/idris-hole-list.el
index 9b0035b4d3..b361eec0d8 100644
--- a/idris-hole-list.el
+++ b/idris-hole-list.el
@@ -85,24 +85,22 @@ Invokes `idris-hole-list-mode-hook'."
(idris-hole-list-quit))
(with-current-buffer (idris-hole-list-buffer)
(idris-hole-list-mode)
- (setq buffer-read-only nil)
- (erase-buffer)
- (insert (propertize "Holes" 'face 'idris-info-title-face) "\n\n")
- (when idris-show-help-text
- (insert "This buffer displays the unsolved holes from the
currently-loaded code. ")
- (insert (concat "Press the "
- (if idris-enable-elab-prover "[E]" "[P]")
- " buttons to solve the holes interactively in the
prover."))
- (let ((fill-column 80))
- (fill-region (point-min) (point-max)))
- (insert "\n\n"))
-
- (dolist (tree (mapcar #'idris-tree-for-hole hole-info))
- (idris-tree-insert tree "")
- (insert "\n\n"))
- (message "Press q to close")
- (setq buffer-read-only t)
- (goto-char (point-min)))
+ (let ((buffer-read-only nil))
+ (erase-buffer)
+ (insert (propertize "Holes" 'face 'idris-info-title-face) "\n\n")
+ (when idris-show-help-text
+ (insert "This buffer displays the unsolved holes from the
currently-loaded code. ")
+ (insert (concat "Press the "
+ (if idris-enable-elab-prover "[E]" "[P]")
+ " buttons to solve the holes interactively in the
prover."))
+ (let ((fill-column 80))
+ (fill-region (point-min) (point-max)))
+ (insert "\n\n"))
+ (dolist (tree (mapcar #'idris-tree-for-hole hole-info))
+ (idris-tree-insert tree "")
+ (insert "\n\n"))
+ (message "Press q to close")
+ (goto-char (point-min))))
(display-buffer (idris-hole-list-buffer))))
(defun idris-hole-tree-printer (tree)
diff --git a/idris-tests.el b/idris-tests.el
index 367d4c2618..bd4113896a 100644
--- a/idris-tests.el
+++ b/idris-tests.el
@@ -73,7 +73,6 @@ remain."
(ert-deftest idris-test-hole-load ()
"Test the hole-list-on-load setting."
- (idris-quit)
;;; The default setting should be to show holes
(should idris-hole-show-on-load)
- [nongnu] elpa/idris-mode updated (fdbd019cb2 -> d08fd3ec78), ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode e31fe83a40 02/14: Remove generated clause from `AddClause.idr` to, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode 5d0c82679a 05/14: Remove unused `idris-hole-list-buffer-visible-p`, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode b35ac9740e 10/14: Use `idris-process-buffer-name` instead of `(idris-buffer-name :process)`, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode fbe5e363c4 11/14: Use `idris-connection-buffer-name` instead of `(idris-buffer-name :connection)`, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode 38f2839b58 08/14: Use `let ((buffer-read-only nil)` instead of `setq ..`,
ELPA Syncer <=
- [nongnu] elpa/idris-mode 1382948269 01/14: Consider - as operator in idris-thing-at-point, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode e8109f9ac0 04/14: Remove Idris event logging from `make test3`, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode 0093e0b42c 13/14: Merge pull request #576 from keram/hole-list, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode d08fd3ec78 14/14: Merge pull request #569 from keram/idris2-mode-issues-16, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode f3a032c194 03/14: Add test for `idris-add-clause`, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode 391963a94c 09/14: Use `idris-repl-buffer-name` instead of `(idris-buffer-name :repl)`, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode 2c1329b086 06/14: Use `idris-notes-buffer-name` in idris-commands.el, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode 17d9b1593f 07/14: Make hole-list buffer derived from special-mode, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode 195b432903 12/14: Merge pull request #574 from keram/minor-internal-impro, ELPA Syncer, 2022/12/01