unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18546: 24.4.50; active display table
@ 2014-09-24 16:56 Drew Adams
  2022-05-11 15:51 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2014-09-24 16:56 UTC (permalink / raw)
  To: 18546

Not sure whether this is a product bug, a product enhancement request,
or a doc bug.  I'm not very familiar with display-table precedence.

(elisp) `Active Display Table' describes the relation between window
display tables and buffer display tables.  But all it says about the
relation is this:

  The window's display table, if there is one, takes precedence over the
  buffer's display table.

What does that mean?  Does it mean that if there is a window display
table then the buffer display table is completely ignored (shadowed)?
Or does it mean that on an individual character basis the entries in the
window display table shadow the corresponding entries in the buffer
display table?

At a minimum, I think the doc should make the relation clear.

I came across this because of this Unix & Linux Stack-Exchange question:

http://unix.stackexchange.com/questions/138145/window-display-table-and-buffer-display-table-conflict-in-emacs

It states that when whitespace.el is used with pp-c-l.el (my library),
the two do not play well together because the latter uses a window
display table and the former uses buffer display tables.

I'm not sure what to do about this, as I don't really understand the
relation between the two (see above).  I proposed a possible fix (?),
but I cannot repro the problem, so I don't know whether the fix is
useful.

If the answer to my question about what the doc means is that the
window display table completely shadows any buffer display table
for a buffer displayed in that window, then isn't that a bit
primitive?  Is it the best behavior/design?

Again, I really know little about display tables.  Just trying to
understand the user's problem with using these two libraries
together, and to figure out what the best way to fix pp-c-l.el is
for that problem.

In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
 of 2014-08-15 on LEG570
Bzr revision: 117706 rgm@gnu.org-20140815043406-p5hbu97cbm7pulcn
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --enable-checking 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1'





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

* bug#18546: 24.4.50; active display table
  2014-09-24 16:56 bug#18546: 24.4.50; active display table Drew Adams
@ 2022-05-11 15:51 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-11 15:51 UTC (permalink / raw)
  To: Drew Adams; +Cc: 18546

Drew Adams <drew.adams@oracle.com> writes:

> (elisp) `Active Display Table' describes the relation between window
> display tables and buffer display tables.  But all it says about the
> relation is this:
>
>   The window's display table, if there is one, takes precedence over the
>   buffer's display table.
>
> What does that mean?  Does it mean that if there is a window display
> table then the buffer display table is completely ignored (shadowed)?

Reading window_display_table, that seems to be the case.  I've now
clarified this in the Emacs 29 manual.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2022-05-11 15:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-24 16:56 bug#18546: 24.4.50; active display table Drew Adams
2022-05-11 15:51 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

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

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