diff options
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 19 |
1 files changed, 10 insertions, 9 deletions
| @@ -181,13 +181,6 @@ for use in Emacs bug reports. | |||
| 181 | hiding character but the default `.' can be used by let-binding the | 181 | hiding character but the default `.' can be used by let-binding the |
| 182 | variable `read-hide-char'. | 182 | variable `read-hide-char'. |
| 183 | 183 | ||
| 184 | ** A new function `window-max-chars-per-line' returns the maximal | ||
| 185 | number of characters that can be displayed on one line. If a face | ||
| 186 | and/or window are provided, these values are used for the | ||
| 187 | calculation. This function is different from `window-body-width' in | ||
| 188 | that it accounts for (i) continuation glyphs, (ii) the size of the | ||
| 189 | font, and (iii) the specified window. | ||
| 190 | |||
| 191 | ** New possible value for `system-type': nacl. | 184 | ** New possible value for `system-type': nacl. |
| 192 | 185 | ||
| 193 | ** Emacs can now load shared/dynamic libraries (modules). | 186 | ** Emacs can now load shared/dynamic libraries (modules). |
| @@ -1230,18 +1223,26 @@ In particular, it now returns the average width of the font's | |||
| 1230 | characters, which can be used for geometry-related calculations. | 1223 | characters, which can be used for geometry-related calculations. |
| 1231 | 1224 | ||
| 1232 | +++ | 1225 | +++ |
| 1233 | **** A new function `default-font-width' returns the average width of a | 1226 | *** A new function `default-font-width' returns the average width of a |
| 1234 | character in the current buffer's default font. If the default face | 1227 | character in the current buffer's default font. If the default face |
| 1235 | is remapped (see `face-remapping-alist'), the value for the remapped | 1228 | is remapped (see `face-remapping-alist'), the value for the remapped |
| 1236 | face is returned. This function complements the existing function | 1229 | face is returned. This function complements the existing function |
| 1237 | `default-font-height'. | 1230 | `default-font-height'. |
| 1238 | 1231 | ||
| 1239 | +++ | 1232 | +++ |
| 1240 | ***** New functions `window-font-height' and `window-font-width' return | 1233 | *** New functions `window-font-height' and `window-font-width' return |
| 1241 | the height and average width of characters in a specified face and | 1234 | the height and average width of characters in a specified face and |
| 1242 | window. If FACE is remapped (see `face-remapping-alist'), the | 1235 | window. If FACE is remapped (see `face-remapping-alist'), the |
| 1243 | function returns the information for the remapped face. | 1236 | function returns the information for the remapped face. |
| 1244 | 1237 | ||
| 1238 | +++ | ||
| 1239 | *** A new function `window-max-chars-per-line' returns the maximal | ||
| 1240 | number of characters that can be displayed on one line. If a face | ||
| 1241 | and/or window are provided, these values are used for the | ||
| 1242 | calculation. This function is different from `window-body-width' in | ||
| 1243 | that it accounts for (i) continuation glyphs, (ii) the size of the | ||
| 1244 | font, and (iii) the specified window. | ||
| 1245 | |||
| 1245 | --- | 1246 | --- |
| 1246 | ** New utilities in subr-x.el: | 1247 | ** New utilities in subr-x.el: |
| 1247 | *** New macros `if-let' and `when-let' allow defining bindings and to | 1248 | *** New macros `if-let' and `when-let' allow defining bindings and to |