GNU bug report logs -
#37755
Logic in init_fringe_bitmap should be moved to backends (maybe rif->define_fringe_bitmap)
Previous Next
Reported by: Carlos Pita <carlosjosepita <at> gmail.com>
Date: Tue, 15 Oct 2019 02:31:02 UTC
Severity: normal
Tags: patch
Done: Carlos Pita <carlosjosepita <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #43 received at 37755 <at> debbugs.gnu.org (full text, mbox):
> From: Carlos Pita <carlosjosepita <at> gmail.com>
> Date: Sat, 26 Oct 2019 12:46:08 -0300
> Cc: 37755 <at> debbugs.gnu.org
>
> Sorry, we cannot just ignore the dumping issue. We don't want to
> waste CPU cycles each startup to regenerate these standard bitmaps.
> So the fringe bit patterns need to be initialized at dump time and
> dumped together with all the other stuff we prepare at that time.
>
> Ok, I'm not sure about how dumping works, but the patterns that you store are backend specific. Does the
> dumper take that into account?
The pdump file, like the Emacs binary, is architecture-specific. So
yes, this is inherently taken into account.
> Does this proposal resolve the difficulty? If not, please point out
> what else is missing.
>
> I just thought that the change decoupled and simplified the code, but I can always add an initialization step to
> the rif, previous to the definition of the actual bitmaps used by the backend.
I don't think you can do that with a RIF, for the reason already
mentioned: Emacs is dumped in batch mode, where we have a frame type
that doesn't support fringes, and doesn't implement the RIF interfaces
you will need.
This bug report was last modified 5 years and 207 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.