mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
(vip-over-whitespace-line): new function.
This commit is contained in:
parent
15f8998b59
commit
c808577499
@ -20,7 +20,7 @@
|
||||
(require 'ring)
|
||||
|
||||
;; Whether it is XEmacs or not
|
||||
(defconst vip-xemacs-p (string-match "\\(Lucid\\|Xemacs\\)" emacs-version))
|
||||
(defconst vip-xemacs-p (string-match "\\(Lucid\\|XEmacs\\)" emacs-version))
|
||||
;; Whether it is Emacs or not
|
||||
(defconst vip-emacs-p (not vip-xemacs-p))
|
||||
;; Tell whether we are running as a window application or on a TTY
|
||||
@ -479,6 +479,12 @@ Type any key to continue..." emacs-version))
|
||||
(format "%s%s%s%s"
|
||||
pre-string truncated-str abbrev-sign post-string))
|
||||
(t (format "%s%s%s" pre-string truncated-str post-string)))))
|
||||
|
||||
;; tells if we are over a whitespace-only line
|
||||
(defsubst vip-over-whitespace-line ()
|
||||
(save-excursion
|
||||
(beginning-of-line)
|
||||
(looking-at "^[ \t]*$")))
|
||||
|
||||
|
||||
;;; Saving settings in custom file
|
||||
|
Loading…
Reference in New Issue
Block a user