diff options
| author | David Aspinall | 2002-08-09 10:28:24 +0000 |
|---|---|---|
| committer | David Aspinall | 2002-08-09 10:28:24 +0000 |
| commit | b9bcf5abd27918af6142e54af7045779d4703198 (patch) | |
| tree | 03e90eb0d2a5a556c23f6a710984d2c5a9c7711d | |
| parent | 566bc444ad7c33f66d705d3f4bf905532bb852d2 (diff) | |
Add span-property-safe
| -rw-r--r-- | generic/span.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/generic/span.el b/generic/span.el index 86785e93..92b57a89 100644 --- a/generic/span.el +++ b/generic/span.el @@ -14,6 +14,14 @@ (require 'span-extent)) (t (require 'span-overlay)))) + +;; +;; Generic functions built on low-level abstract ones +;; + +(defun span-property-safe (span name) + "Like span-property, but return nil if SPAN is nil." + (and span (span-property span name))) (provide 'span) ;; span.el ends here. |
