forked from mirrors/org-mode
Fix bug with editing fixed width region
This commit is contained in:
parent
aedef8c804
commit
49d54ab90f
|
@ -1,5 +1,8 @@
|
|||
2009-08-31 Carsten Dominik <carsten.dominik@gmail.com>
|
||||
|
||||
* org-src.el (org-edit-fixed-width-region): Set org-src-mode only
|
||||
after the local variables are set.
|
||||
|
||||
* org-latex.el (org-export-latex-protect-amp): New function.
|
||||
(org-export-latex-links): Protect link ampersands in tables.
|
||||
|
||||
|
|
|
@ -318,12 +318,12 @@ the fragment in the Org-mode buffer."
|
|||
(while (re-search-forward "^[ \t]*: ?" nil t)
|
||||
(replace-match ""))
|
||||
(org-goto-line (1+ (- line begline)))
|
||||
(org-src-mode)
|
||||
(set-buffer-modified-p nil)
|
||||
(org-set-local 'org-edit-src-beg-marker beg)
|
||||
(org-set-local 'org-edit-src-end-marker end)
|
||||
(org-set-local 'org-edit-src-overlay ovl)
|
||||
(org-set-local 'org-edit-src-nindent nindent)
|
||||
(org-src-mode)
|
||||
(set-buffer-modified-p nil)
|
||||
(and org-edit-src-persistent-message
|
||||
(org-set-local 'header-line-format msg)))
|
||||
(message "%s" msg)
|
||||
|
|
Loading…
Reference in New Issue