unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: changing the display of formfeed characters
Date: Sat, 01 Sep 2018 16:51:51 +0300	[thread overview]
Message-ID: <83tvn91g20.fsf@gnu.org> (raw)
In-Reply-To: <pmb8ej$1dnm$1@gioia.aioe.org> (message from Javier on Fri, 31 Aug 2018 11:22:59 +0000 (UTC))

> From: Javier <invalid@invalid.invalid>
> Date: Fri, 31 Aug 2018 11:22:59 +0000 (UTC)
> 
> There are several suggested ways to display form feed (^L)
> 
> http://www.emacswiki.org/emacs/PageBreaks
> http://www.emacswiki.org/emacs/PrettyControlL
> https://www.emacswiki.org/emacs/pp-c-l.el
> http://ergoemacs.org/emacs/modernization_formfeed.html
> 
> However all them break whitespace-mode.  Is there a way to display
> formfeed ^L without interfering with whitespace-mode?
> 
> The issue has been known for long time.
> 
> http://lists.gnu.org/archive/html/help-gnu-emacs/2011-03/msg00891.html
> https://www.emacswiki.org/emacs/pp-c-l.el
> 
> 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.)

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



  reply	other threads:[~2018-09-01 13:51 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 [this message]
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
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=83tvn91g20.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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).