summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Gauland <mike_gauland@stanfordalumni.org>2012-12-07 10:44:09 +1300
committerBastien Guerry <bzg@altern.org>2012-12-13 23:47:07 +0100
commit4524a02b39e55b1ab3989c0c5281121ad84f4fb0 (patch)
tree5f3a46419a1ddbaebdc9d742e1085f8d31c1a7d5
parent22e4a4ecb9c36bddf7960f532838ddbbddb21414 (diff)
downloadorg-mode-4524a02b39e55b1ab3989c0c5281121ad84f4fb0.tar.gz
Edit source: fix 'end' initialisation
* org-src.el: Create a marker to pass to copy-marker. This fixes a 'wrong type argument' error when running org-edit-src-code (observed on Emacs 23.2.1). The problem was that copy-marker expects a marker, and it was given nil. This change gives it a marker that doesn't point anywhere, but still lets us set the insertion type of the end marker. TINYCHANGE
-rw-r--r--lisp/org-src.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-src.el b/lisp/org-src.el
index f91da19..188f9d2 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -230,7 +230,7 @@ buffer."
(beg (make-marker))
;; Move marker with inserted text for case when src block is
;; just one empty line, i.e. beg == end.
- (end (copy-marker nil t))
+ (end (copy-marker (make-marker) t))
(allow-write-back-p (null code))
block-nindent total-nindent ovl lang lang-f single lfmt buffer msg
begline markline markcol line col transmitted-variables)