unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Info-use-header-line
@ 2008-10-18  2:50 David Reitter
  2008-10-18 16:45 ` Info-use-header-line Juri Linkov
  2008-10-18 17:32 ` Info breadcrumbs line (was: Info-use-header-line) Juri Linkov
  0 siblings, 2 replies; 6+ messages in thread
From: David Reitter @ 2008-10-18  2:50 UTC (permalink / raw)
  To: Emacs-Devel devel

Header lines may be set by minor modes and not just the major mode  
being implemented.  An example is tabbar.
Is it a good idea to hide the header line if the user chooses to not  
display a header line in a mode?  I think not.

A really good solution would, by the way, show global and local header  
lines, but I think there's only one header line allowed at this point.



*** info.el	06 Apr 2008 07:51:37 -0400	1.501.2.7
--- info.el	17 Oct 2008 22:46:43 -0400	
***************
*** 3454,3463 ****
     (make-local-variable 'Info-history)
     (make-local-variable 'Info-history-forward)
     (make-local-variable 'Info-index-alternatives)
!   (setq header-line-format
! 	(if Info-use-header-line
! 	    '(:eval (get-text-property (point-min) 'header-line))
! 	  nil)) ; so the header line isn't displayed
     (set (make-local-variable 'tool-bar-map) info-tool-bar-map)
     ;; This is for the sake of the invisible text we use handling  
titles.
     (make-local-variable 'line-move-ignore-invisible)
--- 3454,3462 ----
     (make-local-variable 'Info-history)
     (make-local-variable 'Info-history-forward)
     (make-local-variable 'Info-index-alternatives)
!   (if Info-use-header-line    ; do not override global header lines
!       (setq header-line-format
! 	    '(:eval (get-text-property (point-min) 'header-line))))
     (set (make-local-variable 'tool-bar-map) info-tool-bar-map)
     ;; This is for the sake of the invisible text we use handling  
titles.
     (make-local-variable 'line-move-ignore-invisible)





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-10-20  2:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-18  2:50 Info-use-header-line David Reitter
2008-10-18 16:45 ` Info-use-header-line Juri Linkov
2008-10-18 19:08   ` Info-use-header-line Stefan Monnier
2008-10-20  2:41     ` Info-use-header-line David Reitter
2008-10-18 17:32 ` Info breadcrumbs line (was: Info-use-header-line) Juri Linkov
2008-10-18 21:58   ` Info breadcrumbs line Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).