]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/vhdl-mode.el
Replace still more end-of-line etc with line-end-position, etc.
[gnu-emacs] / lisp / progmodes / vhdl-mode.el
index 3847e3c56e48e1af2f0c5f5f83b302a379b57e33..c7814fed8a034ed607800d0b1ff179b49219a4cf 100644 (file)
@@ -12115,9 +12115,7 @@ options vhdl-upper-case-{keywords,types,attributes,enum-values}."
   "Return the line number of the line containing point."
   (save-restriction
     (widen)
-    (save-excursion
-      (beginning-of-line)
-      (1+ (count-lines (point-min) (point))))))
+    (1+ (count-lines (point-min) (point-at-bol)))))
 
 (defun vhdl-line-kill-entire (&optional arg)
   "Delete entire line."
@@ -12134,8 +12132,7 @@ options vhdl-upper-case-{keywords,types,attributes,enum-values}."
   "Copy current line."
   (interactive "p")
   (save-excursion
-    (beginning-of-line)
-    (let ((position (point)))
+    (let ((position (point-at-bol)))
       (forward-line (or arg 1))
       (copy-region-as-kill position (point)))))