Fix "childframe" typos

This commit is contained in:
Yuan Fu 2018-12-29 00:49:43 -05:00
parent 03d075eda6
commit f5e15dbf09
No known key found for this signature in database
GPG Key ID: 1CF5ECABEC37A901

View File

@ -60,11 +60,11 @@
"After this amount of seconds will eldoc-box attempt to cleanup the childframe. "After this amount of seconds will eldoc-box attempt to cleanup the childframe.
E.g. if it is set to 1, the childframe is cleared 1 second after E.g. if it is set to 1, the childframe is cleared 1 second after
you moved the point to somewhere else (that doesn't have a doc to show). you moved the point to somewhere else (that doesn't have a doc to show).
This doesn't apply to =eldoc-box-hover-at-point-mode=, This doesn't apply to `eldoc-box-hover-at-point-mode',
in that mode the childframe is cleared as soon as point moves.") in that mode the childframe is cleared as soon as point moves.")
(defvar eldoc-box-clear-with-C-g nil (defvar eldoc-box-clear-with-C-g nil
"If set to non-nil, eldoc-box clears cildframe when you hit \C-g.") "If set to non-nil, eldoc-box clears childframe when you hit \C-g.")
(defvar eldoc-box-frame-parameters (defvar eldoc-box-frame-parameters
'( '(
@ -96,13 +96,13 @@ in that mode the childframe is cleared as soon as point moves.")
"Frame parameters used to create the frame.") "Frame parameters used to create the frame.")
(defvar eldoc-box-max-pixel-width 800 (defvar eldoc-box-max-pixel-width 800
"Maximum width of doc childframw in pixel. "Maximum width of doc childframe in pixel.
Consider your machine's screen's resolution when setting this variable. Consider your machine's screen's resolution when setting this variable.
Set it to a function with no argument Set it to a function with no argument
if you want to dynamically change the maximum width.") if you want to dynamically change the maximum width.")
(defvar eldoc-box-max-pixel-height 700 (defvar eldoc-box-max-pixel-height 700
"Maximum height of doc childframw in pixel. "Maximum height of doc childframe in pixel.
Consider your machine's screen's resolution when setting this variable. Consider your machine's screen's resolution when setting this variable.
Set it to a function with no argument Set it to a function with no argument
if you want to dynamically change the maximum height.") if you want to dynamically change the maximum height.")
@ -192,7 +192,7 @@ You can use C-g to hide the doc."
(defun eldoc-box--default-upper-corner-position-function (width _) (defun eldoc-box--default-upper-corner-position-function (width _)
"The default function to set childframe position. "The default function to set childframe position.
Used by `eldoc-box-position-function'. Used by `eldoc-box-position-function'.
Position is calculated base on WIDTH and HEIGHT of chilframe text window" Position is calculated base on WIDTH and HEIGHT of childframe text window"
(cons (pcase (eldoc-box--window-side) ; x position + a little padding (16) (cons (pcase (eldoc-box--window-side) ; x position + a little padding (16)
;; display doc on right ;; display doc on right
('left (- (frame-outer-width (selected-frame)) width 16)) ('left (- (frame-outer-width (selected-frame)) width 16))
@ -203,7 +203,7 @@ Position is calculated base on WIDTH and HEIGHT of chilframe text window"
(defun eldoc-box--default-at-point-position-function (width height) (defun eldoc-box--default-at-point-position-function (width height)
"Set `eldoc-box-position-function' to this function to have childframe appear under point. "Set `eldoc-box-position-function' to this function to have childframe appear under point.
Position is calculated base on WIDTH and HEIGHT of chilframe text window" Position is calculated base on WIDTH and HEIGHT of childframe text window"
;; (window-absolute-pixel-position) ;; (window-absolute-pixel-position)
;; (posn-x-y (posn-at-point)) ;; (posn-x-y (posn-at-point))
(let* ((point-pos (window-absolute-pixel-position)) (let* ((point-pos (window-absolute-pixel-position))