Yes. Everything was done lovely. The problem was that in the *Info* mode I should not have put :height on the 'default face, because the lazy-highlight and isearch faces were derived temporarly from it. I debugged a little isearch.el to realize that. No more help needed. 2013/12/8 Alin Soare > > I tried to configure the faces of isearch-mode, given that for each major > mode I defined a face-remapping-alist. > > > Here is my problem: > > 1. take the code below. > > 2. After evaluation, isearch seems to work nice. > > 3. Goto into the *Info* buffer. > > 4. Search the string from the title. (a string from a positon with > Info-title-1 face) > > 5. PROBLEM: the string of the title will get very small, and will change > the font. > > 6. QUESTION: How can this be avoided, and the expected behaviour be > accomplished ? > > > > (defun isearch-setup () > (setq-local > lazy-highlight-face > (face-remap-add-relative 'lazy-highlight '(:foreground "red") > 'default)) > (setq-local > isearch-face > (face-remap-add-relative 'isearch '(:strike-through "white") 'default)) > ) > > (defun isearch-exit () > (face-remap-remove-relative lazy-highlight-face) > (face-remap-remove-relative isearch-face) > (with-current-buffer (get-buffer " *Echo Area 0*") > (face-remap-remove-relative echo-area-isearch-fail-face) > ) > (with-current-buffer (get-buffer " *Echo Area 1*") > (face-remap-remove-relative echo-area-isearch-fail-face) > ) > ) > > (add-hook 'isearch-mode-hook 'isearch-setup) > > (add-hook 'isearch-mode-end-hook 'isearch-exit) > >