emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil-nerd-commenter ab27df65e6 120/235: clean doc v1.5.15


From: ELPA Syncer
Subject: [nongnu] elpa/evil-nerd-commenter ab27df65e6 120/235: clean doc v1.5.15
Date: Thu, 6 Jan 2022 02:59:40 -0500 (EST)

branch: elpa/evil-nerd-commenter
commit ab27df65e6f818de0e025ab5c00bbdfb5dff27b5
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>

    clean doc v1.5.15
---
 README.org                      |  2 +-
 evil-nerd-commenter-operator.el |  3 ++-
 evil-nerd-commenter-pkg.el      |  2 +-
 evil-nerd-commenter.el          | 26 +++++++++++---------------
 pkg.sh                          |  2 +-
 5 files changed, 16 insertions(+), 19 deletions(-)

diff --git a/README.org b/README.org
index 2579b46eca..5a6c619450 100644
--- a/README.org
+++ b/README.org
@@ -1,4 +1,4 @@
-* evil-nerd-commenter (v1.5.14)
+* evil-nerd-commenter (v1.5.15)
 
 This program can be used *independently WITHOUT 
[[http://www.emacswiki.org/Evil][evil-mode]]!*
 
diff --git a/evil-nerd-commenter-operator.el b/evil-nerd-commenter-operator.el
index 71c37fbc02..97eaf4dadb 100644
--- a/evil-nerd-commenter-operator.el
+++ b/evil-nerd-commenter-operator.el
@@ -4,7 +4,7 @@
 
 ;; Author: Chen Bin <chenbin.sh@gmail.com>
 ;; URL: http://github.com/redguardtoo/evil-nerd-commenter
-;; Version: 1.5.14
+;; Version: 1.5.15
 ;; Keywords: commenter vim line evil
 ;;
 ;; This file is not part of GNU Emacs.
@@ -27,6 +27,7 @@
 ;; along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 ;;; Commentary:
+
 ;;
 ;; Provides an operator for evil-mode.
 
diff --git a/evil-nerd-commenter-pkg.el b/evil-nerd-commenter-pkg.el
index c6b56c2fb7..bbad4fa911 100644
--- a/evil-nerd-commenter-pkg.el
+++ b/evil-nerd-commenter-pkg.el
@@ -1,2 +1,2 @@
-(define-package "evil-nerd-commenter" "1.5.14"
+(define-package "evil-nerd-commenter" "1.5.15"
                 "Comment/uncomment lines efficiently. Like Nerd Commenter in 
Vim")
diff --git a/evil-nerd-commenter.el b/evil-nerd-commenter.el
index 95e299d6de..ac79535b10 100644
--- a/evil-nerd-commenter.el
+++ b/evil-nerd-commenter.el
@@ -4,7 +4,7 @@
 
 ;; Author: Chen Bin <chenbin.sh@gmail.com>
 ;; URL: http://github.com/redguardtoo/evil-nerd-commenter
-;; Version: 1.5.14
+;; Version: 1.5.15
 ;; Keywords: commenter vim line evil
 ;;
 ;; This file is not part of GNU Emacs.
@@ -106,20 +106,19 @@
 (defun evilnc--fix-buggy-major-modes ()
   "fix major modes whose comment regex is buggy.
 @see http://lists.gnu.org/archive/html/bug-gnu-emacs/2013-03/msg00891.html";
-  (when (eq major-mode 'autoconf-mode)
+  (if (eq major-mode 'autoconf-mode)
     ;; since comment-use-syntax is nil in autoconf.el, the comment-start-skip 
need
-    ;; make sure the its first parenthesized expression match the string 
exactly before
-    ;; the "dnl", check the comment-start-skip in lisp-mode may give you some 
hint.
+    ;; make sure its first parenthesized expression match the string exactly 
before
+    ;; the "dnl", check the comment-start-skip in lisp-mode for sample.
     ;; See code in (defun comment-search-forward) from emacs 24.2.1:
     ;; (if (not comment-use-syntax)
     ;;     (if (re-search-forward comment-start-skip limit noerror)
     ;;     (or (match-end 1) (match-beginning 0)))
     ;;     (do-something))
     ;; My regex makes sure (match-end 1) return the position of comment starter
-    (when (and (boundp 'comment-use-syntax) (not comment-use-syntax))
+    (if (and (boundp 'comment-use-syntax) (not comment-use-syntax))
         ;; Maybe autoconf.el will (setq comment-use-syntax t) in the future?
-        (setq comment-start-skip "^\\(\\s*\\)\\(dnl\\|#\\) +"))
-    ))
+        (setq comment-start-skip "^\\(\\s*\\)\\(dnl\\|#\\) +"))))
 
 (defun evilnc--operation-on-lines-or-region (fn &optional NUM)
   (if (not (region-active-p))
@@ -150,10 +149,7 @@
           (setq e (line-end-position))
           (funcall fn b e)
           ))
-      )
-    )
-  )
-
+      )))
 
 (defun evilnc--get-one-paragraph-region ()
   (let (b e)
@@ -214,8 +210,7 @@
           (if (> newend end) (decf newend))
 
           (list newbeg newend)
-          )
-        )
+          ))
     (list beg end)
     ))
 
@@ -237,7 +232,7 @@
                  b e)
 
         (forward-line -1)
-        (when (or (= (line-beginning-position) b) (< (line-end-position) beg))
+        (if (or (= (line-beginning-position) b) (< (line-end-position) beg))
           (setq done t))
         ))))
 
@@ -336,6 +331,7 @@
     ))
 
 ;; ==== below this line are public commands
+
 ;;;###autoload
 (defun evilnc-comment-or-uncomment-paragraphs (&optional NUM)
   "Comment or uncomment paragraph(s). A paragraph is a continuation non-empty 
lines.
@@ -514,7 +510,7 @@ or 'C-u 3 M-x 
evilnc-quick-comment-or-uncomment-to-the-line' to comment to the l
 ;;;###autoload
 (defun evilnc-version ()
   (interactive)
-  (message "1.5.14"))
+  (message "1.5.15"))
 
 ;;;###autoload
 (defun evilnc-default-hotkeys ()
diff --git a/pkg.sh b/pkg.sh
index 245d08623b..a99963e1ab 100755
--- a/pkg.sh
+++ b/pkg.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
-pkg=evil-nerd-commenter-1.5.14
+pkg=evil-nerd-commenter-1.5.15
 mkdir $pkg
 cp README.org $pkg
 cp *.el $pkg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]