diff options
author | Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> | 2014-10-24 16:48:10 +0200 |
---|---|---|
committer | Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> | 2014-10-24 16:48:10 +0200 |
commit | 44a57256679bc429b8f6fdfa20d69eedad739e61 (patch) | |
tree | 06d72fa91bbea0e2851d9c3897eae24ae7fd9e4a /grid-engine-mode.el | |
parent | bd4af8c9c4ebd8d96cd7bc1900b9dd4db2f72099 (diff) |
use propertize instead of put-text-property
Diffstat (limited to 'grid-engine-mode.el')
-rw-r--r-- | grid-engine-mode.el | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/grid-engine-mode.el b/grid-engine-mode.el index 8831ede..3318671 100644 --- a/grid-engine-mode.el +++ b/grid-engine-mode.el @@ -84,16 +84,14 @@ (format-string (if format-string format-string "%s")) (text (format format-string value))) - (put-text-property 0 (length text) 'field value text) - text)) + (propertize text 'field value))) (defun format-job-record (job) (let* ((args (cons row-fmt (mapcar (lambda (key) (field-as-text key job)) column-order))) (text (apply 'format args))) - (put-text-property 0 (length text) 'grid-engine-job job text) - text)) + (propertize text 'grid-engine-job job))) (defun mkjob-alist (subtree) "Convert a parsed XML subtree for a job entry to an alist." |