[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/multiple-cursors b46f795 314/434: Fix style issues
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/multiple-cursors b46f795 314/434: Fix style issues |
Date: |
Sat, 7 Aug 2021 09:20:50 -0400 (EDT) |
branch: elpa/multiple-cursors
commit b46f79566e623474ca702622ab1f280a64ed9b8e
Author: Philippe Vaucher <philippe@stvs.ch>
Commit: Philippe Vaucher <philippe@stvs.ch>
Fix style issues
---
mc-hide-unmatched-lines-mode.el | 32 +++++++++-----------------------
1 file changed, 9 insertions(+), 23 deletions(-)
diff --git a/mc-hide-unmatched-lines-mode.el b/mc-hide-unmatched-lines-mode.el
index 67375bf..1cc754a 100644
--- a/mc-hide-unmatched-lines-mode.el
+++ b/mc-hide-unmatched-lines-mode.el
@@ -29,7 +29,6 @@
;;; Code:
-
(require 'multiple-cursors-core)
(defvar hum/hide-unmatched-lines-mode-map (make-sparse-keymap)
@@ -45,15 +44,14 @@
;; used only in in multiple-cursors-mode-disabled-hook
(defun hum/disable-hum-mode ()
- (mc-hide-unmatched-lines-mode 0)
-)
+ (mc-hide-unmatched-lines-mode 0))
(define-minor-mode mc-hide-unmatched-lines-mode
"Minor mode when enabled hides all lines where no cursos (and
also hum/lines-to-expand below and above) To make use of this
mode press \"C-'\" while multiple-cursor-mode is active. You can
still edit lines while you are in mc-hide-unmatched-lines
-mode. To leave this mode press <return> or \"C-g\""
+mode. To leave this mode press <return> or \"C-g\""
nil " hu"
hum/hide-unmatched-lines-mode-map
(if mc-hide-unmatched-lines-mode
@@ -63,9 +61,7 @@ mode. To leave this mode press <return> or \"C-g\""
(add-hook 'multiple-cursors-mode-disabled-hook 'hum/disable-hum-mode t
t))
(progn
(hum/unhide-unmatched-lines)
- (remove-hook 'multiple-cursors-mode-disabled-hook 'hum/disable-hum-mode))
- )
-)
+ (remove-hook 'multiple-cursors-mode-disabled-hook
'hum/disable-hum-mode))))
(defconst hum/invisible-overlay-name 'hum/invisible-overlay-name)
@@ -77,8 +73,7 @@ mode. To leave this mode press <return> or \"C-g\""
(defcustom hum/placeholder "..."
"Placeholder which will be placed insted of hiden text"
:type '(string)
- :group 'multiple-cursors
-)
+ :group 'multiple-cursors)
(defun hum/add-invisible-overlay (begin end)
(let ((overlay (make-overlay begin
@@ -91,10 +86,7 @@ mode. To leave this mode press <return> or \"C-g\""
(overlay-put overlay 'invisible t)
(overlay-put overlay 'intangible t)
(overlay-put overlay 'evaporate t)
- (overlay-put overlay 'after-string hum/placeholder)
- )
- )
-
+ (overlay-put overlay 'after-string hum/placeholder)))
(defun hum/hide-unmatched-lines ()
(let ((begin (point-min)))
@@ -102,18 +94,12 @@ mode. To leave this mode press <return> or \"C-g\""
(save-excursion
(goto-char (mc/cursor-beg cursor))
(if (< begin (line-beginning-position (- hum/lines-to-expand)))
- (hum/add-invisible-overlay begin (line-end-position (-
hum/lines-to-expand)))
- )
- (setq begin (line-beginning-position (+ 2 hum/lines-to-expand)))
- )
- )
- (hum/add-invisible-overlay begin (point-max))
- )
- )
+ (hum/add-invisible-overlay begin (line-end-position (-
hum/lines-to-expand))))
+ (setq begin (line-beginning-position (+ 2 hum/lines-to-expand)))))
+ (hum/add-invisible-overlay begin (point-max))))
(defun hum/unhide-unmatched-lines ()
- (remove-overlays nil nil hum/invisible-overlay-name t)
- )
+ (remove-overlays nil nil hum/invisible-overlay-name t))
(provide 'mc-hide-unmatched-lines-mode)
(define-key mc/keymap (kbd "C-'") 'mc-hide-unmatched-lines-mode)
- [nongnu] elpa/multiple-cursors 8dfe725 269/434: Abort immediately when empty search pattern is passed to 'mc/mark-all-in-region', (continued)
- [nongnu] elpa/multiple-cursors 8dfe725 269/434: Abort immediately when empty search pattern is passed to 'mc/mark-all-in-region', ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors ec47813 274/434: Derp, multiple cursors means > 1, not > 0., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 17c48f9 278/434: Merge pull request #111 from mathrick/mark-all-dwim, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors cfe4bd9 280/434: Add python-indent-dedent-line-backspace to run-for-all, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 3cfae1d 290/434: Merge pull request #122 from kyanagi/appropriate-error-messages-when-no-fake-cursors-exist, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors f5866d6 294/434: Fix typo in readme, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 0847147 300/434: Merge pull request #143 from mjdarby/jedi-mode, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors d184f35 301/434: Add company-mode to the list of unsupported minor modes., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 4b0e912 310/434: Added description of mc-hide-unmached-mode to Readme, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors f3daf86 311/434: Merge pull request #157 from lexa/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors b46f795 314/434: Fix style issues,
ELPA Syncer <=
- [nongnu] elpa/multiple-cursors faf331d 334/434: Merge pull request #183 from grettke/patch-1, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 5d677f7 341/434: Unrevert "Support unmarking with no region. Change mc/mark-lines to preserve point.", ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 97e5db1 346/434: Merge pull request #207 from vermiculus/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 55af659 354/434: Speedup mc--numbers-to-letters, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 97da977 141/434: Intercept some reading commands, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors da069c8 366/434: Merge pull request #236 from jtamagnan/insert_letters_fix, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 432a3fc 370/434: Merge pull request #250 from nispio/mark-lines-allows-skip, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors a508978 376/434: Add /.ecukes-failing-scenarios to gitignore, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors d9a6047 384/434: Fix mc/cursor-is-bar as per @cpitclaudel, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors c945665 399/434: Merge pull request #294 from nispio/fix-293, ELPA Syncer, 2021/08/07