diff options
| author | Chong Yidong | 2008-11-24 15:45:54 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-11-24 15:45:54 +0000 |
| commit | d59f7c459e9728a5a296f63f986b1012043f271c (patch) | |
| tree | fd65c77e2b7e2d0518267f8f71b3cabbeb9b053b | |
| parent | 23a01417aa834dc135cec7da0de3e112b8d5b602 (diff) | |
| download | emacs-d59f7c459e9728a5a296f63f986b1012043f271c.tar.gz emacs-d59f7c459e9728a5a296f63f986b1012043f271c.zip | |
Add NEWS entries for face-remap.
| -rw-r--r-- | etc/NEWS | 43 |
1 files changed, 36 insertions, 7 deletions
| @@ -442,10 +442,17 @@ via face remapping (see Lisp changes, below). | |||
| 442 | *** New commands to change the default face size in the current buffer. | 442 | *** New commands to change the default face size in the current buffer. |
| 443 | To increase it, type `C-x C-+' or `C-x C-='. To decrease it, type | 443 | To increase it, type `C-x C-+' or `C-x C-='. To decrease it, type |
| 444 | `C-x C--'. To restore the default (global) face size, type `C-x C-0'. | 444 | `C-x C--'. To restore the default (global) face size, type `C-x C-0'. |
| 445 | The final key of these commands may be repeated without the leading | 445 | These work via Text Scale mode, a new minor mode. |
| 446 | `C-x', so `C-x C-= C-= C-=' increases the face height by three steps. | 446 | |
| 447 | Each step scales the height of the default face by the value of the | 447 | The final key in the above commands may be repeated without the |
| 448 | variable `text-scale-mode-step'. | 448 | leading `C-x', e.g. `C-x C-= C-= C-=' increases the face height by |
| 449 | three steps. Each step scales the height of the default face by the | ||
| 450 | value of the variable `text-scale-mode-step'. | ||
| 451 | |||
| 452 | *** The command `buffer-face-mode' prompts for a face name, and remaps | ||
| 453 | the default face in the current buffer to that specified face. The | ||
| 454 | command `variable-pitch-mode' turns on Buffer Face mode for the | ||
| 455 | `variable-pitch' face. | ||
| 449 | 456 | ||
| 450 | ** Primary selection changes | 457 | ** Primary selection changes |
| 451 | +++ | 458 | +++ |
| @@ -1355,10 +1362,32 @@ symbolic notation thanks to auxiliary functions. | |||
| 1355 | *** file-local-variables-alist stores an alist of file-local | 1362 | *** file-local-variables-alist stores an alist of file-local |
| 1356 | variables defined in the current buffer. | 1363 | variables defined in the current buffer. |
| 1357 | 1364 | ||
| 1358 | ** FIXME face-remap | 1365 | ** Face-remapping |
| 1359 | 1366 | ||
| 1360 | ** Process changes | 1367 | *** Each face can be remapped to a different face definition using the |
| 1361 | +++ | 1368 | variable `face-remapping-alist'. This is an alist that maps faces to |
| 1369 | replacement definitions (which can be face names, lists of face names, | ||
| 1370 | or attribute/value plists. If this variable is buffer-local, the | ||
| 1371 | remapping occurs only in that buffer. | ||
| 1372 | |||
| 1373 | *** text-scale-mode remaps the default face to a larger or smaller | ||
| 1374 | size in the current buffer. This feature is used by the Buffer Face | ||
| 1375 | menu and the new `C-x C-+', `C-x C--', and `C-x C-0' commands (see | ||
| 1376 | Editing Changes, above). | ||
| 1377 | |||
| 1378 | *** New functions: | ||
| 1379 | |||
| 1380 | **** `face-remap-add-relative' adds a face remapping entry to the | ||
| 1381 | current buffer. | ||
| 1382 | |||
| 1383 | **** ``face-remap-remove-relative' removes a face remapping entry from | ||
| 1384 | the current buffer. | ||
| 1385 | |||
| 1386 | **** `face-remap-reset-base' restores a face to its global definition. | ||
| 1387 | |||
| 1388 | **** `face-remap-set-base' sets the base remapping of a face. | ||
| 1389 | |||
| 1390 | ** Process changes +++ | ||
| 1362 | *** The new function `start-file-process' is similar to `start-process', | 1391 | *** The new function `start-file-process' is similar to `start-process', |
| 1363 | but obeys file handlers. The file handler is chosen based on | 1392 | but obeys file handlers. The file handler is chosen based on |
| 1364 | `default-directory'. The functions `start-file-process-shell-command' | 1393 | `default-directory'. The functions `start-file-process-shell-command' |