Merge branch 'maint'
This commit is contained in:
commit
87419d87df
|
@ -269,8 +269,10 @@ export that region, otherwise export the entire body."
|
|||
(defun org-mime-send-buffer (&optional fmt)
|
||||
(run-hooks 'org-mime-send-buffer-hook)
|
||||
(let* ((region-p (org-region-active-p))
|
||||
(subject (org-export-grab-title-from-buffer))
|
||||
(file (buffer-file-name (current-buffer)))
|
||||
(file (buffer-file-name (current-buffer)))
|
||||
(subject (if (not file) (buffer-name (buffer-base-buffer))
|
||||
(file-name-sans-extension
|
||||
(file-name-nondirectory file))))
|
||||
(body-start (or (and region-p (region-beginning))
|
||||
(save-excursion (goto-char (point-min)))))
|
||||
(body-end (or (and region-p (region-end)) (point-max)))
|
||||
|
|
Loading…
Reference in New Issue