diff options
author | forcer <forcer> | 2006-06-07 20:35:00 +0000 |
---|---|---|
committer | forcer <mwolson@gnu.org> | 2006-06-07 20:35:00 +0000 |
commit | 1fc051476607215c26a353e80b1f45b564415a4f (patch) | |
tree | 6217ada8893f376bf347f60f14a8cd38d4cd5e0e | |
parent | f9212a8941c84f9b1fe0056f0901b7e847367564 (diff) |
Fix typo in emms-property-region
darcs-hash:20060607203558-2189f-f2a8e6a89f4af46883dc23d656157bccd883db30.gz
-rw-r--r-- | emms.el | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1026,8 +1026,9 @@ ignore this." ;;; Helper functions (defun emms-property-region (pos prop) "Return a pair of the beginning and end of the property PROP at POS." - (let ((begin (next-single-property-change pos prop)) - (end (previous-single-property-change pos prop))) + ;; This +/-1 stuff DTRT, but _is_ it TRT? + (let ((begin (previous-single-property-change (+ pos 1) prop)) + (end (next-single-property-change (- pos 1) prop))) (cons (or begin (point-min)) (or end (point-max))))) |