[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/logview 88701f50c0 082/259: Make sure several commands wit
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/logview 88701f50c0 082/259: Make sure several commands with optional `n' argument work when invoked without it non-interactively too. |
Date: |
Fri, 31 Jan 2025 07:01:57 -0500 (EST) |
branch: elpa/logview
commit 88701f50c0b052091facf389f1ae71b1db245a4c
Author: Paul Pogonyshev <pogonyshev@gmail.com>
Commit: Paul Pogonyshev <pogonyshev@gmail.com>
Make sure several commands with optional `n' argument work when invoked
without it non-interactively too.
---
logview.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/logview.el b/logview.el
index 052c9eaa96..721f0bbc12 100644
--- a/logview.el
+++ b/logview.el
@@ -836,6 +836,8 @@ equal to `next-line'. However, if messages span several
lines,
the function will have significantly different effect."
(interactive "p")
(logview--assert)
+ (unless n
+ (setq n 1))
(when (/= n 0)
(let ((case-fold-search nil)
(original-point (point))
@@ -868,6 +870,8 @@ Point is positioned at the beginning of the message of the
resulting entry."
(interactive "p")
(logview--assert 'level)
+ (unless n
+ (setq n 1))
(when (/= n 0)
(let ((case-fold-search nil)
(original-point (point)))
@@ -1381,6 +1385,8 @@ region instead (i.e. just like
`logview-hide-region-entries')."
(if (eq n 'use-region)
(logview-hide-region-entries (point) (mark))
(logview--assert)
+ (unless n
+ (setq n 1))
(logview--std-matching-and-altering
(logview--maybe-complain-about-movement
n (logview--iterate-successive-entries n (logview--hide-entry-callback
'logview-hidden-entry) t) 0))))
@@ -1415,6 +1421,8 @@ entries in the region instead (i.e. work just like
(if (eq n 'use-region)
(logview-show-region-entries (point) (mark))
(logview--assert)
+ (unless n
+ (setq n 1))
;; Much like 'logview--iterate-successive-entries', but because of
;; peculiar semantics, not broken out into its own function.
(when (/= n 0)
- [nongnu] elpa/logview aa0cf8e805 229/259: Improve CI workflow so that it is obvious when the problem is in byte-compilation and not in failing tests., (continued)
- [nongnu] elpa/logview aa0cf8e805 229/259: Improve CI workflow so that it is obvious when the problem is in byte-compilation and not in failing tests., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 43f475a56d 227/259: Fix several errors in commit 75c4945., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 12bf9718de 223/259: fix: Better compatibility to select log file, ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 49cca08b84 233/259: Handle errors in mode initialization in such a way as to never leave it in half-initialized state (related to issue #55)., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 56591f85ea 235/259: Release logview 0.17.4, ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 5397a572e3 230/259: And fix a mindo in commit a9e8b48., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview e8affa679a 240/259: Add command `logview-prepare-for-new-contents`., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 588ad7a9d5 225/259: Release logview 0.17.2, ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 50f0b12f9c 253/259: Release logview 0.19, ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 0db778bb0c 249/259: Be less strict to submode definition (issue #57)., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 88701f50c0 082/259: Make sure several commands with optional `n' argument work when invoked without it non-interactively too.,
ELPA Syncer <=
- [nongnu] elpa/logview 8b03173975 062/259: Bump version because of major new features., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 8ff518328f 172/259: Add a simplistic but useful Git hook., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 0b299c11f9 156/259: Make byte-compiler in Emacs master happy., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 9125188b0b 189/259: Release logview 0.16.3, ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 7d89613a29 186/259: Post-release version bump., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 93ac690222 194/259: Enable Dependabot., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 0a266c1c7f 226/259: Post-release version bump., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 749255d160 238/259: Add command to replace timestamps with differences to corresponding section header., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview b4653af5a6 252/259: Document the changes since 0.18., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 0f957d4b87 242/259: Release logview 0.18, ELPA Syncer, 2025/01/31