]> git.eshelyaron.com Git - emacs.git/commitdiff
(table-yank-handler): New defcustom.
authorEli Zaretskii <eliz@is.elta.co.il>
Mon, 29 Dec 2003 11:29:31 +0000 (11:29 +0000)
committerEli Zaretskii <eliz@is.elta.co.il>
Mon, 29 Dec 2003 11:29:31 +0000 (11:29 +0000)
(table--put-cell-indicator-property): Put yank-handler property
that indicates the yank handler for the table cell.

lisp/textmodes/table.el

index 44e82efc5b785ff2a91fb4906b5106e021432f09..93ea3cc0c14b808de6aef27486f8b8bee4c6bac2 100644 (file)
@@ -5,7 +5,7 @@
 ;; Keywords: wp, convenience
 ;; Author: Takaaki Ota <Takaaki.Ota@am.sony.com>
 ;; Created: Sat Jul 08 2000 13:28:45 (PST)
-;; Revised: jue jun 05 2003 22:00:02 (Hora de verano romance)
+;; Revised: Tue Dec 09 2003 14:36:50 (PST)
 
 ;; This file is part of GNU Emacs.
 
@@ -837,6 +837,9 @@ simply by any key input."
   :type 'hook
   :group 'table-hooks)
 
+(defcustom table-yank-handler '(nil nil t nil)
+  "*yank-handler for table.")
+
 (setplist 'table-disable-incompatibility-warning nil)
 
 (defvar table-disable-menu (null (and (locate-library "easymenu")
@@ -5228,7 +5231,8 @@ and the right cell border character."
 
 (defun table--put-cell-indicator-property (beg end &optional object)
   "Put cell property which indicates that the location is within a table cell."
-  (put-text-property beg end 'table-cell t object))
+  (put-text-property beg end 'table-cell t object)
+  (put-text-property beg end 'yank-handler table-yank-handler object))
 
 (defun table--put-cell-face-property (beg end &optional object)
   "Put cell face property."