[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

26.1: calc-mode header line [PATCH]

From: Boruch Baum
Subject: 26.1: calc-mode header line [PATCH]
Date: Mon, 31 Aug 2020 14:44:45 -0400
User-agent: NeoMutt/20180716

Back in version 21, emacs introduced a static 'header-line' that could
be inserted at the top of any buffer. Calc mode is one emacs package
that does not use it and could benefit from it, so the attached patch
offers that feature. The main benefit is that the 'calc trail' buffer
(what some greybeards from the mechanical age would remember as the
'tape reel') no longer has its title line scroll off the visible
window. The patch also includes:

1) Width-sensitive text for the header line, so that it is readable for
   very narrow windows, and scales to very wide windows.

2) Display of the 'calc trail' buffer when invoking calc from a frame
   that is split vertically (C-x 3, M-x split-window-right).

3) My version of emacs includes a unicode character at 'C-x 8 <return>
   POCKET CALCULATOR', that I did not include in the header line as the
   mode's icon, but that could be done.

The patch was diff'ed against the version of emacs that I have: the
latest-and-greatest that debian is distributing ... v26.1

CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0

Attachment: calc.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]