GNU bug report logs -
#19012
25.0.50; `help-window-select'
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Mon, 10 Nov 2014 16:43:03 UTC
Severity: minor
Found in version 25.0.50
Done: martin rudalics <rudalics <at> gmx.at>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Will try again after you update the code to use, if appropriate.
OK. Please try the below.
martin
(defvar selected-window nil)
(setq pop-up-frames t)
(setq help-window-select t)
(setq w32-grab-focus-on-raise nil)
(add-to-list 'special-display-buffer-names
'("*Help*" foo ((background-color . "Thistle"))))
(defun foo (buf &optional args)
(let (win)
(setq win (funcall special-display-function buf args))
(raise-frame)
win))
(defun view-lossage ()
"Display last 300 input keystrokes.
To record all your input, use `open-dribble-file'."
(interactive)
(help-setup-xref (list #'view-lossage)
(called-interactively-p 'interactive))
(with-help-window (help-buffer)
(princ (mapconcat (lambda (key)
(if (or (integerp key) (symbolp key) (listp key))
(single-key-description key)
(prin1-to-string key nil)))
(recent-keys)
" "))
(with-current-buffer standard-output
(goto-char (point-min))
(while (progn (move-to-column 50) (not (eobp)))
(when (search-forward " " nil t)
(delete-char -1))
(insert "\n"))
;; jidanni wants to see the last keystrokes immediately.
(set-marker help-window-point-marker (point))))
(setq selected-window (selected-window)))
This bug report was last modified 10 years and 155 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.