branch: externals/m-buffer
commit 3df675024fdfc2e81c36ec795b357bee636bbe14
Author: Phillip Lord <[email protected]>
Commit: Phillip Lord <[email protected]>

    New functions added.
---
 m-buffer-at.el | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/m-buffer-at.el b/m-buffer-at.el
index 11f619b2f7..f427e676a8 100644
--- a/m-buffer-at.el
+++ b/m-buffer-at.el
@@ -8,6 +8,22 @@ See also `eolp'."
   (m-buffer-with-current-location
       location
     (eolp)))
-  
+
+(defun m-buffer-at-bolp (&rest location)
+  "Return t if LOCATION is at the begining of a line.
+See also `bolp'"
+  (m-buffer-with-current-location
+      location
+    (bolp)))
+
+(defun m-buffer-at-line-beginning-position (&rest location)
+  (m-buffer-with-current-location
+      location
+    (line-beginning-position)))
+
+(defun m-buffer-at-line-end-position (&rest location)
+  (m-buffer-with-current-location
+      location
+    (line-end-position)))
 
 (provide 'm-buffer-at)

Reply via email to