[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/code-cells 7ded56075d 17/36: Call ignore to avoid byte-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/code-cells 7ded56075d 17/36: Call ignore to avoid byte-compiler warnings |
Date: |
Mon, 28 Feb 2022 15:57:42 -0500 (EST) |
branch: externals/code-cells
commit 7ded56075dc5a2248eba6da9b560cab85332a675
Author: Augusto Stoffel <astoff@users.noreply.github.com>
Commit: Augusto Stoffel <astoff@users.noreply.github.com>
Call ignore to avoid byte-compiler warnings
---
code-cells.el | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/code-cells.el b/code-cells.el
index 1a852d03b4..c095fae391 100644
--- a/code-cells.el
+++ b/code-cells.el
@@ -103,6 +103,8 @@ region is active, use its bounds instead. In this case,
(progn (code-cells-forward-cell) (point))
(progn (code-cells-backward-cell) (point)))))
(`(,using-region ,end ,start)
+ ;; Avoid compiler warnings if one of those is unused in body
+ (ignore using-region end start)
,@body)))
;;;###autoload
@@ -126,7 +128,6 @@ on the region instead of the current cell when appropriate.
If OPTIONS contains the keyword :pulse, provide visual feedback
via `pulse-momentary-highlight-region'."
- (declare (doc-string 2))
(eval `(lambda ()
,(concat
"Call `" (symbol-name fun) "' on the current code cell."
@@ -155,11 +156,13 @@ COMMAND."
"A place to save variables before activating `code-cells-mode'.")
(defun code-cells--outline-level ()
- "The `outline-level' function used by `code-cells-mode'.
-At a cell boundary, returns the cell outline level, as determined
-by `code-cells-boundary-markers'. Otherwise, returns the sum of the
-outline level as determined by the major mode and the current
-cell level."
+ "Compute the outline level, taking code cells into account.
+To be used as the value of the variable `outline-level'.
+
+At a cell boundary, returns the cell outline level, as determined by
+`code-cells-boundary-markers'. Otherwise, returns the sum of the
+outline level as determined by the major mode and the current cell
+level."
(let* ((at-boundary (looking-at-p (code-cells-boundary-regexp)))
(mm-level (if at-boundary
0
- [elpa] branch externals/code-cells created (now dcb0465a46), ELPA Syncer, 2022/02/28
- [elpa] externals/code-cells 827ef0194f 01/36: Initial commit, ELPA Syncer, 2022/02/28
- [elpa] externals/code-cells a672ca2def 08/36: Update README, ELPA Syncer, 2022/02/28
- [elpa] externals/code-cells bd5f96aa42 07/36: Add outline mode support, ELPA Syncer, 2022/02/28
- [elpa] externals/code-cells 0a0dd96cd2 14/36: Rename package, ELPA Syncer, 2022/02/28
- [elpa] externals/code-cells 7ded56075d 17/36: Call ignore to avoid byte-compiler warnings,
ELPA Syncer <=
- [elpa] externals/code-cells acf4fda9b6 21/36: Add autoload for code-cells-speed-key, ELPA Syncer, 2022/02/28
- [elpa] externals/code-cells 2e40770d79 22/36: Add code-cells--bounds function, make code-cells-do obsolete, ELPA Syncer, 2022/02/28
- [elpa] externals/code-cells 1ca02d489d 23/36: Add code-cells-comment-or-uncomment, ELPA Syncer, 2022/02/28
- [elpa] externals/code-cells c16c0aa0af 13/36: Use named groups in alternative regexp branches, ELPA Syncer, 2022/02/28
- [elpa] externals/code-cells 1661efd9ae 18/36: Add MELPA badge; mention EIN, ELPA Syncer, 2022/02/28
- [elpa] externals/code-cells d03621b103 19/36: Change screenshot, ELPA Syncer, 2022/02/28
- [elpa] externals/code-cells 374edc6be7 20/36: Change package description, ELPA Syncer, 2022/02/28
- [elpa] externals/code-cells 1bd650391a 25/36: Update README, ELPA Syncer, 2022/02/28
- [elpa] externals/code-cells 4e973e0122 26/36: Do not assume Emacs has native JSON parsing available, ELPA Syncer, 2022/02/28
- [elpa] externals/code-cells 185c33b8b6 27/36: Fix cell movement for files without newline at the end, ELPA Syncer, 2022/02/28