Skip to content

Commit

Permalink
Replace last manual REPLACEME- definitions with define-REPLACEME-class.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambrevar committed Aug 31, 2020
1 parent e86308c commit 3c1e38c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
12 changes: 4 additions & 8 deletions source/buffer.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ Must be one of `:always' (accept all cookies), `:never' (reject all cookies),

(define-REPLACEME-class buffer)

(defclass internal-buffer ()
(defclass internal-buffer (REPLACEME-buffer)
((default-modes :accessor default-modes
:initarg :default-modes
:type list-of-symbols
Expand Down Expand Up @@ -229,11 +229,9 @@ The mode instances are stored in the `modes' slot.")
(|.button:active|
:color "white"))))))

(defclass REPLACEME-internal-buffer (internal-buffer REPLACEME-buffer)
()
(:export-class-name-p t))
(define-REPLACEME-class internal-buffer)

(defclass status-buffer ()
(defclass status-buffer (REPLACEME-internal-buffer)
((height :accessor height :initform 16
:type integer
:documentation "The height of the status buffer in pixels.")
Expand Down Expand Up @@ -261,9 +259,7 @@ The mode instances are stored in the `modes' slot.")
(|.button:hover|
:color "white"))))))

(define-class REPLACEME-status-buffer (status-buffer REPLACEME-internal-buffer)
()
(:export-class-name-p t))
(define-REPLACEME-class status-buffer)

(defmethod internal-buffer-p ((buffer buffer))
nil)
Expand Down
6 changes: 2 additions & 4 deletions source/minibuffer.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

(in-package :nyxt)

(define-class minibuffer ()
(define-class minibuffer (REPLACEME-buffer)
((default-modes '(minibuffer-mode))
(suggestion-function nil
:type (or function null)
Expand Down Expand Up @@ -128,9 +128,7 @@ A minibuffer query is typically done as follows:
;; Write form here in which `tags' is bound to the resulting element(s).
)"))

(define-class REPLACEME-minibuffer (minibuffer REPLACEME-buffer)
()
(:export-class-name-p t))
(define-REPLACEME-class minibuffer)

(export-always 'make-minibuffer)
(defun make-minibuffer
Expand Down

0 comments on commit 3c1e38c

Please sign in to comment.