unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Javier <invalid@invalid.invalid>
To: help-gnu-emacs@gnu.org
Subject: Re: changing the display of formfeed characters
Date: Sun, 2 Sep 2018 20:47:06 +0000 (UTC)	[thread overview]
Message-ID: <pmhi8a$175b$1@gioia.aioe.org> (raw)
In-Reply-To: mailman.262.1535809931.1284.help-gnu-emacs@gnu.org

>> 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.


  parent reply	other threads:[~2018-09-02 20:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-31 11:22 changing the display of formfeed characters Javier
2018-09-01 13:51 ` Eli Zaretskii
2018-09-02 22:40   ` Drew Adams
2018-09-03 16:12     ` Eli Zaretskii
     [not found] ` <mailman.262.1535809931.1284.help-gnu-emacs@gnu.org>
2018-09-02 20:47   ` Javier [this message]
2018-09-03 16:14     ` Eli Zaretskii
2018-09-03  0:30 ` Nick Helm
     [not found] ` <mailman.318.1535934620.1284.help-gnu-emacs@gnu.org>
2018-09-03 13:57   ` Javier
2018-09-03 17:23     ` Javier
2018-09-04  6:43       ` Javier
2018-09-04  6:50         ` Javier
2018-09-07  0:26           ` Nick Helm
2018-09-07  3:56           ` Nick Helm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='pmhi8a$175b$1@gioia.aioe.org' \
    --to=invalid@invalid.invalid \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).