+format-region-p = nil

Should be a boolean in the first place; this fixes custom formatters
that use it like a boolean.
This commit is contained in:
Henrik Lissner 2018-10-19 11:48:47 -04:00
parent 005a07b416
commit 09603c5444
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -1,8 +1,8 @@
;;; editor/format/autoload.el -*- lexical-binding: t; -*-
(defvar +format-region-p 'buffer
"A symbol representing whether the buffer or a region of it is being
formatted. Can be 'buffer or 'region.")
(defvar +format-region-p nil
"Is non-nil if currently reformatting a selected region, rather than the whole
buffer.")
;;;###autoload
(autoload 'format-all-probe "format-all")