X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Friece-yank.el;h=a2ecf3ae5fc94618e984975550c8236a172bdca4;hb=a5e2060dc74a92b5cea59e66042960c4a3ab64bb;hp=9419e5fcebae1525e2ff4826e5ab45fbc9255c2e;hpb=98f4e6a3014617bd28652d6db889a1dc0dd841d7;p=riece diff --git a/lisp/riece-yank.el b/lisp/riece-yank.el index 9419e5f..a2ecf3a 100644 --- 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 @@ -20,16 +20,14 @@ ;; Boston, MA 02111-1307, USA. ;;; 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 - "Enter the element of `kill-ring'" + "Enter the element of kill-ring." :tag "Yank" :prefix "riece-" :group 'riece) @@ -45,6 +43,9 @@ before/after the first/last non-blank line." :type 'boolean :group 'riece-yank) +(defconst riece-yank-description + "Enter the element of kill-ring.") + (defvar riece-yank-enabled nil) (defun riece-yank-insinuate () @@ -86,7 +87,7 @@ before/after the first/last non-blank line." (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