branch: master
commit dd8158e52ad0cde6fc3e5347ee5863447e7ad9f6
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>

    [gnorb] Fix handling of region-bounds return value
    
    * packages/gnorb/gnorb-org.el (gnorb-org-handle-mail): It returns a
      list of cons cells. Did it always do that? Why?
---
 packages/gnorb/gnorb-org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/gnorb/gnorb-org.el b/packages/gnorb/gnorb-org.el
index 98c7a35..287345d 100644
--- a/packages/gnorb/gnorb-org.el
+++ b/packages/gnorb/gnorb-org.el
@@ -443,7 +443,7 @@ composed.  FILE is a file to attach to the message."
       (goto-char pos)))
   (let ((region
         (when (use-region-p)
-          (region-bounds))))
+          (car (region-bounds)))))
     (deactivate-mark)
     (save-excursion
       (unless (org-back-to-heading t)

Reply via email to