branch: elpa/adoc-mode
commit 035c83552d1204b84f4816d5ace730f57851ccff
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    Use defvar-local for adoc-image-overlays
    
    Replace the separate defvar + make-variable-buffer-local with the
    modern defvar-local form.
---
 adoc-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/adoc-mode.el b/adoc-mode.el
index f6952e9636..0caf564a51 100644
--- a/adoc-mode.el
+++ b/adoc-mode.el
@@ -2962,8 +2962,8 @@ Is influenced by customization variables such as 
`adoc-title-style'."))))
 ;; Disclaimer: Most of the following stuff is copied from `markdown-mode' and 
adapted to `adoc-mode'.
 (require 'url-parse)
 
-(defvar adoc-image-overlays nil)
-(make-variable-buffer-local 'adoc-image-overlays)
+(defvar-local adoc-image-overlays nil
+  "List of image overlays in the current buffer.")
 
 (defcustom adoc-display-remote-images nil
   "If non-nil, download and display remote images.

Reply via email to