bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19012: 25.0.50; `help-window-select'


From: martin rudalics
Subject: bug#19012: 25.0.50; `help-window-select'
Date: Fri, 14 Nov 2014 12:37:11 +0100

>> What is "*this* bug"?  You attribute a behavior you observe to a
>> variable that does not and cannot control that behavior.
>
> Bug 19012.

Then give us a recipe so we can reproduce that "bug".  Sections 51.3
"Understanding Bug Reporting" and 51.4 "Checklist for Bug Reports" of
the Emacs manual will give you further guidance.  Here with emacs -Q
and evaluating

(setq pop-up-frames t)
(setq w32-grab-focus-on-raise nil)
(setq help-window-select t)

(defun 1on1-display-*Help*-frame (buf &optional args)
  "Display *Help* buffer in its own frame.
`special-display-function' is used to do the actual displaying.
BUF and ARGS are the arguments to `special-display-function'."
  (let ((old-ptr-shape  (and (boundp 'x-pointer-shape) x-pointer-shape))
        return-window)
    (when (boundp 'x-pointer-xterm)
      (setq x-pointer-shape  x-pointer-xterm))
    (setq return-window  (select-window
                          (funcall special-display-function buf args)))
    (raise-frame)
    (setq x-pointer-shape  old-ptr-shape)
    return-window))

(add-to-list
 'special-display-buffer-names
 (list "*Help*" '1on1-display-*Help*-frame
       (list '(height . 40))))

both C-h f and C-h v select the window showing *Help*.

martin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]