From: Étienne Deparis Date: Mon, 7 Dec 2020 17:38:08 +0000 (+0100) Subject: Remove another forgotten and useless local variable X-Git-Tag: v3.0.0~22^2~48^2 X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=7c57e7b5c671c471dec0e5afcd93d1bed43b41fd;p=elpher.git Remove another forgotten and useless local variable It also avoid a crash when displaying page in Emacs without X support --- diff --git a/elpher.el b/elpher.el index c6ee0b4..8373f37 100644 --- a/elpher.el +++ b/elpher.el @@ -1367,14 +1367,11 @@ by HEADER-LINE." (when (string-match "^\\(#+\\)[ \t]*" header-line) (let* ((level (length (match-string 1 header-line))) (header (substring header-line (match-end 0))) - (face (pcase level + (face (pcase level (1 'elpher-gemini-heading1) (2 'elpher-gemini-heading2) (3 'elpher-gemini-heading3) - (_ 'default))) - (fill-column (/ (* fill-column - (font-get (font-spec :name (face-font 'default)) :size)) - (font-get (font-spec :name (face-font face)) :size)))) + (_ 'default)))) (unless (display-graphic-p) (insert (make-string level ?#) " ")) (insert (propertize header 'face face))