Commit 82693fa
committed
fix: Handle cons cell value for line-spacing
The `line-spacing` variable can be a [cons cell][1] from Emacs 31, such
as `(0.1 . 0.1)`, in addition to a plain number. Each value in this cons
is spacing above and below the line. The correct value of line-spacing
would be to use [`total-line-spacing`][1] instead of raw value.
The previous code did not handle the cons cell format, leading to a
`wrong-type-argument` error. For backward compatibility, this change
inlines the definition of `total-line-spacing` i.e. sums the above and
below spacing in case if it's cons.
[1]: emacs-mirror/emacs@e8f26d51 parent e79aa49 commit 82693fa
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
318 | 321 | | |
319 | | - | |
320 | | - | |
321 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
322 | 325 | | |
323 | 326 | | |
324 | 327 | | |
| |||
0 commit comments