[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/page-break-lines 502aee8208 16/80: Add more information ab
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/page-break-lines 502aee8208 16/80: Add more information about font width issue, and provide workaround |
Date: |
Tue, 5 Sep 2023 04:03:04 -0400 (EDT) |
branch: elpa/page-break-lines
commit 502aee82088a0a30f0dec3f377be958fee8d01ef
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>
Add more information about font width issue, and provide workaround
---
README.md | 19 +++++++++++++++++++
page-break-lines.el | 15 ++++++++++++---
2 files changed, 31 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 9308820e39..8d9e5dd68c 100644
--- a/README.md
+++ b/README.md
@@ -22,6 +22,25 @@ Enable `page-break-lines-mode` in an individual buffer like
this:
Alternatively, customize `page-break-lines-modes` and enable the mode globally
with
`global-page-break-lines-mode`.
+Issues and limitations
+======================
+
+If `page-break-lines-char` is displayed at a different width to
+regular characters, the rule may be either too short or too long:
+rules may then wrap if `truncate-lines` is nil. On some systems,
+Emacs may erroneously choose a different font for the page break
+symbol, which choice can be overridden using code such as:
+
+```lisp
+(set-fontset-font "fontset-default"
+ (cons page-break-lines-char page-break-lines-char)
+ (face-attribute 'default :family))
+```
+
+Use `describe-char` on a page break char to determine whether this
+is the case.
+
+
[marmalade]: http://marmalade-repo.org
[melpa]: http://melpa.milkbox.net
diff --git a/page-break-lines.el b/page-break-lines.el
index 2cf6be541b..fde8cab177 100644
--- a/page-break-lines.el
+++ b/page-break-lines.el
@@ -34,9 +34,18 @@
;; Issues and limitations:
-;; If `page-break-lines-char' is a different width to regular
-;; characters, the rule may be either too short or too long: rules may
-;; wrap if `truncate-lines' is nil.
+;; If `page-break-lines-char' is displayed at a different width to
+;; regular characters, the rule may be either too short or too long:
+;; rules may then wrap if `truncate-lines' is nil. On some systems,
+;; Emacs may erroneously choose a different font for the page break
+;; symbol, which choice can be overridden using code such as:
+
+;; (set-fontset-font "fontset-default"
+;; (cons page-break-lines-char page-break-lines-char)
+;; (face-attribute 'default :family))
+
+;; Use `describe-char' on a page break char to determine whether this
+;; is the case.
;; Adapted from code http://www.emacswiki.org/emacs/PageBreaks
- [nongnu] branch elpa/page-break-lines created (now 5e9ed86bb5), ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 9c3140f88c 06/80: Docstring updates, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines b836f614db 09/80: Better docstring for customization group, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines dd8387ab74 08/80: Indentation fix, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 2298a8769a 21/80: Also enable by default in scheme and lisp modes, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 71f1eacbaf 07/80: Add missing autoload, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 502aee8208 16/80: Add more information about font width issue, and provide workaround,
ELPA Syncer <=
- [nongnu] elpa/page-break-lines 260bdd6a86 24/80: Also shorten rule by one character in console windows (fixes #6), ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 610887764e 27/80: Update MELPA URLs, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 36d3f93a23 34/80: More efficiently update display tables, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 92d7d1b699 33/80: Also update display tables via after-setting-font-hook, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 965bc23670 03/80: Add a basic README, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines d1d87ba829 17/80: Mark up code in README as lisp, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 5d0e9d140a 22/80: Add help-mode to the list of default modes, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines b75fe828dc 26/80: Add MELPA badges, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines eb42a4150d 19/80: Omit redundant buffer argument to minibufferp, ELPA Syncer, 2023/09/05
- [nongnu] elpa/page-break-lines 17ef8e30de 64/80: Add FUNDING.yml, ELPA Syncer, 2023/09/05