projects
/
riece
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* riece-mcat.el (riece-mcat-update): Suppress
[riece]
/
lisp
/
riece-yank.el
diff --git
a/lisp/riece-yank.el
b/lisp/riece-yank.el
index
9419e5f
..
914d05f
100644
(file)
--- a/
lisp/riece-yank.el
+++ b/
lisp/riece-yank.el
@@
-1,4
+1,4
@@
-;;; riece-yank.el --- enter the element
in
kill-ring
+;;; riece-yank.el --- enter the element
of
kill-ring
;; Copyright (C) 2004 Masatake YAMATO
;; Author: Masatake YAMATO <jet@gyve.org>
;; Copyright (C) 2004 Masatake YAMATO
;; Author: Masatake YAMATO <jet@gyve.org>
@@
-16,20
+16,18
@@
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING. If not, write to the
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING. If not, write to the
-;; Free Software Foundation, Inc., 5
9 Temple Place - Suite 330
,
-;; Boston, MA 0211
1-1307
, USA.
+;; Free Software Foundation, Inc., 5
1 Franklin Street, Fifth Floor
,
+;; Boston, MA 0211
0-1301
, USA.
;;; Commentary:
;;; Commentary:
-;;
-;; In riece's command buffer, you can send the top element of kill-ring
-;; by C-c y.
-;; Don't forget do (riece-command-enable-addon 'riece-yank) to test.
-;;
+
+;; NOTE: This is an add-on module for Riece.
+
;;; Code:
(require 'riece-commands)
(defgroup riece-yank nil
;;; Code:
(require 'riece-commands)
(defgroup riece-yank nil
- "Enter the element of
`kill-ring'
"
+ "Enter the element of
kill-ring.
"
:tag "Yank"
:prefix "riece-"
:group 'riece)
:tag "Yank"
:prefix "riece-"
:group 'riece)
@@
-45,17
+43,17
@@
before/after the first/last non-blank line."
:type 'boolean
:group 'riece-yank)
:type 'boolean
:group 'riece-yank)
-(defvar riece-yank-enabled nil)
+(defconst riece-yank-description
+ "Enter the element of kill-ring.")
(defun riece-yank-insinuate ()
)
(defun riece-yank-insinuate ()
)
+(defvar riece-command-mode-map)
(defun riece-yank-enable ()
(defun riece-yank-enable ()
- (define-key riece-command-mode-map "\C-cy" 'riece-command-yank)
- (setq riece-yank-enabled t))
+ (define-key riece-command-mode-map "\C-cy" 'riece-command-yank))
(defun riece-yank-disable ()
(defun riece-yank-disable ()
- (define-key riece-command-mode-map "\C-cy" 'undefined)
- (setq riece-yank-enabled nil))
+ (define-key riece-command-mode-map "\C-cy" 'undefined))
(defun riece-yank-strip-space (string)
(with-temp-buffer
(defun riece-yank-strip-space (string)
(with-temp-buffer
@@
-86,7
+84,7
@@
before/after the first/last non-blank line."
(string= prefix ""))
(setq prefix " "))
(let* ((kill (current-kill 0))
(string= prefix ""))
(setq prefix " "))
(let* ((kill (current-kill 0))
- msg
space-width
)
+ msg)
(unless kill
(error "Nothing to send in kill-ring"))
(if riece-yank-strip-space
(unless kill
(error "Nothing to send in kill-ring"))
(if riece-yank-strip-space