From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Javier Newsgroups: gmane.emacs.help Subject: Re: changing the display of formfeed characters Date: Sun, 2 Sep 2018 20:47:06 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1535921302 30445 195.159.176.226 (2 Sep 2018 20:48:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Sep 2018 20:48:22 +0000 (UTC) User-Agent: tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.18.6-1-ARCH (x86_64)) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 02 22:48:18 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwZIA-0007nC-K5 for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Sep 2018 22:48:18 +0200 Original-Received: from localhost ([::1]:42492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwZKG-0002wm-Nx for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Sep 2018 16:50:28 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: aPJVVR0E0beUwQdJulDzVg.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.3 Original-Xref: usenet.stanford.edu gnu.emacs.help:223689 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117814 Archived-At: >> Has somebody come with any idea how to display ^L in some way without >> breaking whitespace-mode? > > AFAICT, those modes break whitespace-mode because they define their > own display table without copying the display table that was in effect > before the mode was switched on. whitespace-mode does take care of > copying the previous display table, and doesn't override the way the > formfeed is displayed AFAICS. So maybe activating those other modes > _before_ whitespace-mode will do the trick? (Caveat: I didn't try > that.) I have just tried activating the display of form-feed before whitespace-mode, but didn't suceed. In any case, that solution wouldn't last for long, since the display table would be changed again whenever the window changes size. Those modes adjust the length of the string representing ^L to fit the width of the window by using 'window-configuration-change-hook. >> Would it do the trick modifying the display table for ^L with a fixed width string? >> Like "=========" and avoiding to dynamically adjust for window width. > > Not sure how this question is related, please elaborate. That would make things easier as the display table would only be modified once, without changing it on the fly each time the window changes size.