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

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

[nongnu] elpa/evil-nerd-commenter 1848bc36a1 077/235: comment to the lin


From: ELPA Syncer
Subject: [nongnu] elpa/evil-nerd-commenter 1848bc36a1 077/235: comment to the line is optimized v1.4.0
Date: Thu, 6 Jan 2022 02:59:36 -0500 (EST)

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

    comment to the line is optimized v1.4.0
---
 README.org                 |  2 +-
 evil-nerd-commenter-pkg.el |  2 +-
 evil-nerd-commenter.el     | 24 ++++++++++++++++--------
 pkg.sh                     |  2 +-
 4 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/README.org b/README.org
index c48db53d40..e0169b34d0 100644
--- a/README.org
+++ b/README.org
@@ -1,4 +1,4 @@
-* evil-nerd-commenter (v1.3.1)
+* evil-nerd-commenter (v1.4.0)
 
 *This program could be used independently WITHOUT evil-mode!*
 
diff --git a/evil-nerd-commenter-pkg.el b/evil-nerd-commenter-pkg.el
index a02c5b18dd..d3f9881ab6 100644
--- a/evil-nerd-commenter-pkg.el
+++ b/evil-nerd-commenter-pkg.el
@@ -1,2 +1,2 @@
-(define-package "evil-nerd-commenter" "1.3.1"
+(define-package "evil-nerd-commenter" "1.4.0"
                 "Comment/uncomment lines efficiently. Like Nerd Commenter in 
Vim")
diff --git a/evil-nerd-commenter.el b/evil-nerd-commenter.el
index a4339dbf91..c9a97bab34 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.3.1
+;; Version: 1.4.0
 ;; Keywords: commenter vim line evil
 ;;
 ;; This file is not part of GNU Emacs.
@@ -29,14 +29,20 @@
 ;;; Commentary:
 ;;
 ;; This program emulates nerd-commenter.vim by Marty Grenfell.
+;;
 ;; It help you comment/uncomment multiple lines without selecting them.
 ;;
 ;; `M-x evilnc-default-hotkeys` assigns hotkey `M-;` to 
`evilnc-comment-or-uncomment-lines`
+;;
 ;; `M-x evilnc-comment-or-uncomment-lines` comment or uncomment lines.
-;; `M-x evilnc-comment-or-uncomment-to-the-line` will comment/uncomment from 
current line to
-;; the specified line number. The line number is passed as parameter of the 
command.
-;; For example, `C-u 99 evilnc-comment-or-uncomment-to-the-line` will comment 
code from
-;; current line to line 99.
+;;
+;; `M-x evilnc-quick-comment-or-uncomment-to-the-line` will comment/uncomment 
from current line to
+;; the specified line number. The last digit(s) of line number is parameter of 
the command.
+;;
+;; For example, `C-u 9 evilnc-quick-comment-or-uncomment-to-the-line` will 
comment code from
+;; current line to line 99 if you current line is 91.
+;;
+;; Check README for more use cases.
 ;;
 ;; Though this program could be used *independently*, I highly recommend you 
use it with
 ;; evil (http://gitorious.org/evil)
@@ -47,7 +53,7 @@
 
 ;;; Code:
 
-;; Example, presss ",,a{" will change C code:
+;; Example, press ",,a{" will change C code:
 ;;   {printf("hello");} => /* {printf("hello");}*/
 ;; google "vim text object for more syntax"
 (defcustom evilnc-hotkey-comment-operator ",," "The hot key for 
evilnc-comment-operator to (un)comment text object"
@@ -319,7 +325,9 @@ Paragraphs are separated by empty lines."
 
 ;;;###autoload
 (defun evilnc-quick-comment-or-uncomment-to-the-line (&optional UNITS)
-  "Comment or uncomment to line number with its units is UNITS."
+  "Comment or uncomment to line number by specifying its last digit(s)
+For exmaple, you can use 'C-u 53 M-x 
evilnc-quick-comment-or-uncomment-to-the-line'
+or 'C-u 3 M-x evilnc-quick-comment-or-uncomment-to-the-line' to comment to the 
line 6453"
   (interactive "p")
   (let ((dst-line-num (evilnc--find-dst-line-num UNITS)))
     (evilnc-comment-or-uncomment-to-the-line dst-line-num)
@@ -439,7 +447,7 @@ Paragraphs are separated by empty lines."
   (eval-after-load 'evil
     '(progn
        (define-key evil-normal-state-map ",ci" 
'evilnc-comment-or-uncomment-lines)
-       (define-key evil-normal-state-map ",cl" 
'evilnc-comment-or-uncomment-to-the-line)
+       (define-key evil-normal-state-map ",cl" 
'evilnc-quick-comment-or-uncomment-to-the-line)
        (define-key evil-normal-state-map ",ll" 
'evilnc-quick-comment-or-uncomment-to-the-line)
        (define-key evil-normal-state-map ",cc" 'evilnc-copy-and-comment-lines)
        (define-key evil-normal-state-map ",cp" 
'evilnc-comment-or-uncomment-paragraphs)
diff --git a/pkg.sh b/pkg.sh
index bd055d3113..68e3783578 100755
--- a/pkg.sh
+++ b/pkg.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
-pkg=evil-nerd-commenter-1.3.1
+pkg=evil-nerd-commenter-1.4.0
 mkdir $pkg
 cp README.org $pkg
 cp *.el $pkg



reply via email to

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