aboutsummaryrefslogtreecommitdiff
path: root/emms.el
diff options
context:
space:
mode:
authorMichael Olson <mwolson@gnu.org>2006-07-02 02:03:00 +0000
committerMichael Olson <mwolson@gnu.org>2006-07-02 02:03:00 +0000
commitafe2cacd997d7d3c680843339177ba4e1b82c652 (patch)
treea5631fc03d4a6673ecffd45e881f9d5b12ef4539 /emms.el
parent4a873b05b48e1b3bca23499494cff40bf6a3e74a (diff)
Fix more XEmacs issues.
darcs-hash:20060702020302-1bfb2-ce8e5060cf1f7db0cf52e40d711d16e621f3968c.gz
Diffstat (limited to 'emms.el')
-rw-r--r--emms.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/emms.el b/emms.el
index 80dc3a1..10c4909 100644
--- a/emms.el
+++ b/emms.el
@@ -472,6 +472,16 @@ whenever possible."
(setq next (cdr ptr))))
seq)
+(defun emms-move-beginning-of-line (arg)
+ "Move point to beginning of current line as displayed.
+If there's an image in the line, this disregards newlines
+which are part of the text that the image rests on."
+ (if (fboundp 'move-beginning-of-line)
+ (move-beginning-of-line arg)
+ (if (numberp arg)
+ (forward-line (1- arg))
+ (forward-line 0))))
+
;;; Convenient macros