all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Inconsistent margin background color in minibuffer
@ 2024-07-30 14:55 Nicolas P. Rougier (inria)
  2024-08-02  6:54 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas P. Rougier (inria) @ 2024-07-30 14:55 UTC (permalink / raw)
  To: emacs-devel


I'm experimenting with the minibuffer and I get some problem setting the
margin (not fringe) background color. Here is a simple example:

(defun setup-minibuffer ()
  (setq-local truncate-lines t)
  (set-window-margins nil 10 10)
  (set-window-fringes nil 0 0)
  (goto-char (point-min))
  (face-remap-set-base 'default '(:background "#cccccc")))

(add-hook 'minibuffer-setup-hook #'setup-minibuffer)

(completing-read "Very long prompt: "
                 nil nil nil
   "Very long line that should trigger truncation (hopefully), else, reduce window width.")

When the point is at the start of the prompt, margin background color is
white (default bg color I guess) but when the point is at the end of the
entry, margin background color is "#cccccc".

Is that the expected behavior? If yes, how can I force the margin
background color to use the remapped default face ?

Nicolas


-- 
Nicolas P. Rougier —— www.labri.fr/perso/nrougier
Institute of Neurodegenerative Diseases, Bordeaux



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

end of thread, other threads:[~2024-08-02  7:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-30 14:55 Inconsistent margin background color in minibuffer Nicolas P. Rougier (inria)
2024-08-02  6:54 ` Eli Zaretskii
2024-08-02  7:24   ` Nicolas P. Rougier (inria)

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.