初稿: 2018-08-09 Thu 11:15
最終更新日: 2018-12-14 Fri 20:44
ホーム | 文書トップ | 目次

org-no-properties
文字列の付加プロパティを削除する

 1: (defconst org-rm-props '(invisible t face t keymap t intangible t mouse-face t
 2:                                    rear-nonsticky t mouse-map t fontified t
 3:                                    org-emphasis t)
 4:   "Properties to remove when a string without properties is wanted.")
 5: 
 6: (defsubst org-no-properties (s &optional restricted)
 7:   "Remove all text properties from string S.
 8: When RESTRICTED is non-nil, only remove the properties listed
 9: in `org-rm-props'."
10:   (if restricted (remove-text-properties 0 (length s) org-rm-props s)
11:     (set-text-properties 0 (length s) nil s))
12:   s)

日付: 2018-08-09 Thu 11:15

著者: conao

Created: 2018-12-14 Fri 21:04

Validate