diff options
| author | Kenichi Handa | 2012-03-21 16:43:58 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2012-03-21 16:43:58 +0900 |
| commit | 136220349968063bef3f249baddba30a24b52ec2 (patch) | |
| tree | c9da83473ae16e2d2226523d16dfc5555d56b95c /src | |
| parent | 26090a2783518afc82bb907a28e32749542fead6 (diff) | |
| parent | fb5b8aca9928223c3fef042f1de4b50cd08fde43 (diff) | |
| download | emacs-136220349968063bef3f249baddba30a24b52ec2.tar.gz emacs-136220349968063bef3f249baddba30a24b52ec2.zip | |
merge trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 15 | ||||
| -rw-r--r-- | src/dispnew.c | 29 | ||||
| -rw-r--r-- | src/w32proc.c | 10 | ||||
| -rw-r--r-- | src/xfaces.c | 36 |
4 files changed, 56 insertions, 34 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8b1221ab6d8..7a97859ba63 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,18 @@ | |||
| 1 | 2012-03-21 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * xfaces.c (Vface_remapping_alist): Doc fix. | ||
| 4 | |||
| 5 | 2012-03-20 Eli Zaretskii <eliz@gnu.org> | ||
| 6 | |||
| 7 | * w32proc.c (Fw32_set_console_codepage) | ||
| 8 | (Fw32_set_console_output_codepage, Fw32_get_codepage_charset): Doc | ||
| 9 | fixes. | ||
| 10 | |||
| 11 | 2012-03-20 Chong Yidong <cyd@gnu.org> | ||
| 12 | |||
| 13 | * dispnew.c (Fredisplay, Vredisplay_preemption_period): Update doc | ||
| 14 | to reflect default non-nil value of redisplay-dont-pause. | ||
| 15 | |||
| 1 | 2012-03-19 Kenichi Handa <handa@m17n.org> | 16 | 2012-03-19 Kenichi Handa <handa@m17n.org> |
| 2 | 17 | ||
| 3 | * ftfont.c (ftfont_drive_otf): Mask bits of character code to make | 18 | * ftfont.c (ftfont_drive_otf): Mask bits of character code to make |
diff --git a/src/dispnew.c b/src/dispnew.c index d302e717ec2..02d6de53bbf 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -6068,10 +6068,14 @@ sit_for (Lisp_Object timeout, int reading, int do_display) | |||
| 6068 | 6068 | ||
| 6069 | 6069 | ||
| 6070 | DEFUN ("redisplay", Fredisplay, Sredisplay, 0, 1, 0, | 6070 | DEFUN ("redisplay", Fredisplay, Sredisplay, 0, 1, 0, |
| 6071 | doc: /* Perform redisplay if no input is available. | 6071 | doc: /* Perform redisplay. |
| 6072 | If optional arg FORCE is non-nil or `redisplay-dont-pause' is non-nil, | 6072 | Optional arg FORCE, if non-nil, prevents redisplay from being |
| 6073 | perform a full redisplay even if input is available. | 6073 | preempted by arriving input, even if `redisplay-dont-pause' is nil. |
| 6074 | Return t if redisplay was performed, nil otherwise. */) | 6074 | If `redisplay-dont-pause' is non-nil (the default), redisplay is never |
| 6075 | preempted by arriving input, so FORCE does nothing. | ||
| 6076 | |||
| 6077 | Return t if redisplay was performed, nil if redisplay was preempted | ||
| 6078 | immediately by pending input. */) | ||
| 6075 | (Lisp_Object force) | 6079 | (Lisp_Object force) |
| 6076 | { | 6080 | { |
| 6077 | int count; | 6081 | int count; |
| @@ -6521,21 +6525,21 @@ syms_of_display (void) | |||
| 6521 | DEFSYM (Qredisplay_dont_pause, "redisplay-dont-pause"); | 6525 | DEFSYM (Qredisplay_dont_pause, "redisplay-dont-pause"); |
| 6522 | 6526 | ||
| 6523 | DEFVAR_INT ("baud-rate", baud_rate, | 6527 | DEFVAR_INT ("baud-rate", baud_rate, |
| 6524 | doc: /* *The output baud rate of the terminal. | 6528 | doc: /* The output baud rate of the terminal. |
| 6525 | On most systems, changing this value will affect the amount of padding | 6529 | On most systems, changing this value will affect the amount of padding |
| 6526 | and the other strategic decisions made during redisplay. */); | 6530 | and the other strategic decisions made during redisplay. */); |
| 6527 | 6531 | ||
| 6528 | DEFVAR_BOOL ("inverse-video", inverse_video, | 6532 | DEFVAR_BOOL ("inverse-video", inverse_video, |
| 6529 | doc: /* *Non-nil means invert the entire frame display. | 6533 | doc: /* Non-nil means invert the entire frame display. |
| 6530 | This means everything is in inverse video which otherwise would not be. */); | 6534 | This means everything is in inverse video which otherwise would not be. */); |
| 6531 | 6535 | ||
| 6532 | DEFVAR_BOOL ("visible-bell", visible_bell, | 6536 | DEFVAR_BOOL ("visible-bell", visible_bell, |
| 6533 | doc: /* *Non-nil means try to flash the frame to represent a bell. | 6537 | doc: /* Non-nil means try to flash the frame to represent a bell. |
| 6534 | 6538 | ||
| 6535 | See also `ring-bell-function'. */); | 6539 | See also `ring-bell-function'. */); |
| 6536 | 6540 | ||
| 6537 | DEFVAR_BOOL ("no-redraw-on-reenter", no_redraw_on_reenter, | 6541 | DEFVAR_BOOL ("no-redraw-on-reenter", no_redraw_on_reenter, |
| 6538 | doc: /* *Non-nil means no need to redraw entire frame after suspending. | 6542 | doc: /* Non-nil means no need to redraw entire frame after suspending. |
| 6539 | A non-nil value is useful if the terminal can automatically preserve | 6543 | A non-nil value is useful if the terminal can automatically preserve |
| 6540 | Emacs's frame display when you reenter Emacs. | 6544 | Emacs's frame display when you reenter Emacs. |
| 6541 | It is up to you to set this variable if your terminal can do that. */); | 6545 | It is up to you to set this variable if your terminal can do that. */); |
| @@ -6590,14 +6594,15 @@ See `buffer-display-table' for more information. */); | |||
| 6590 | Vstandard_display_table = Qnil; | 6594 | Vstandard_display_table = Qnil; |
| 6591 | 6595 | ||
| 6592 | DEFVAR_BOOL ("redisplay-dont-pause", redisplay_dont_pause, | 6596 | DEFVAR_BOOL ("redisplay-dont-pause", redisplay_dont_pause, |
| 6593 | doc: /* *Non-nil means display update isn't paused when input is detected. */); | 6597 | doc: /* Non-nil means display update isn't paused when input is detected. */); |
| 6594 | redisplay_dont_pause = 1; | 6598 | redisplay_dont_pause = 1; |
| 6595 | 6599 | ||
| 6596 | #if PERIODIC_PREEMPTION_CHECKING | 6600 | #if PERIODIC_PREEMPTION_CHECKING |
| 6597 | DEFVAR_LISP ("redisplay-preemption-period", Vredisplay_preemption_period, | 6601 | DEFVAR_LISP ("redisplay-preemption-period", Vredisplay_preemption_period, |
| 6598 | doc: /* *The period in seconds between checking for input during redisplay. | 6602 | doc: /* Period in seconds between checking for input during redisplay. |
| 6599 | If input is detected, redisplay is pre-empted, and the input is processed. | 6603 | This has an effect only if `redisplay-dont-pause' is nil; in that |
| 6600 | If nil, never pre-empt redisplay. */); | 6604 | case, arriving input preempts redisplay until the input is processed. |
| 6605 | If the value is nil, redisplay is never preempted. */); | ||
| 6601 | Vredisplay_preemption_period = make_float (0.10); | 6606 | Vredisplay_preemption_period = make_float (0.10); |
| 6602 | #endif | 6607 | #endif |
| 6603 | 6608 | ||
diff --git a/src/w32proc.c b/src/w32proc.c index f7982f36913..28591f90128 100644 --- a/src/w32proc.c +++ b/src/w32proc.c | |||
| @@ -2067,8 +2067,8 @@ DEFUN ("w32-get-console-codepage", Fw32_get_console_codepage, | |||
| 2067 | 2067 | ||
| 2068 | DEFUN ("w32-set-console-codepage", Fw32_set_console_codepage, | 2068 | DEFUN ("w32-set-console-codepage", Fw32_set_console_codepage, |
| 2069 | Sw32_set_console_codepage, 1, 1, 0, | 2069 | Sw32_set_console_codepage, 1, 1, 0, |
| 2070 | doc: /* Make Windows codepage CP be the current codepage setting for Emacs. | 2070 | doc: /* Make Windows codepage CP be the codepage for Emacs tty keyboard input. |
| 2071 | The codepage setting affects keyboard input and display in tty mode. | 2071 | This codepage setting affects keyboard input in tty mode. |
| 2072 | If successful, the new CP is returned, otherwise nil. */) | 2072 | If successful, the new CP is returned, otherwise nil. */) |
| 2073 | (Lisp_Object cp) | 2073 | (Lisp_Object cp) |
| 2074 | { | 2074 | { |
| @@ -2095,8 +2095,8 @@ DEFUN ("w32-get-console-output-codepage", Fw32_get_console_output_codepage, | |||
| 2095 | 2095 | ||
| 2096 | DEFUN ("w32-set-console-output-codepage", Fw32_set_console_output_codepage, | 2096 | DEFUN ("w32-set-console-output-codepage", Fw32_set_console_output_codepage, |
| 2097 | Sw32_set_console_output_codepage, 1, 1, 0, | 2097 | Sw32_set_console_output_codepage, 1, 1, 0, |
| 2098 | doc: /* Make Windows codepage CP be the current codepage setting for Emacs. | 2098 | doc: /* Make Windows codepage CP be the codepage for Emacs console output. |
| 2099 | The codepage setting affects keyboard input and display in tty mode. | 2099 | This codepage setting affects display in tty mode. |
| 2100 | If successful, the new CP is returned, otherwise nil. */) | 2100 | If successful, the new CP is returned, otherwise nil. */) |
| 2101 | (Lisp_Object cp) | 2101 | (Lisp_Object cp) |
| 2102 | { | 2102 | { |
| @@ -2114,7 +2114,7 @@ If successful, the new CP is returned, otherwise nil. */) | |||
| 2114 | 2114 | ||
| 2115 | DEFUN ("w32-get-codepage-charset", Fw32_get_codepage_charset, | 2115 | DEFUN ("w32-get-codepage-charset", Fw32_get_codepage_charset, |
| 2116 | Sw32_get_codepage_charset, 1, 1, 0, | 2116 | Sw32_get_codepage_charset, 1, 1, 0, |
| 2117 | doc: /* Return charset of codepage CP. | 2117 | doc: /* Return charset ID corresponding to codepage CP. |
| 2118 | Returns nil if the codepage is not valid. */) | 2118 | Returns nil if the codepage is not valid. */) |
| 2119 | (Lisp_Object cp) | 2119 | (Lisp_Object cp) |
| 2120 | { | 2120 | { |
diff --git a/src/xfaces.c b/src/xfaces.c index bcb04188aeb..476fb1e0366 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -6599,20 +6599,22 @@ ignore. */); | |||
| 6599 | doc: /* Alist of face remappings. | 6599 | doc: /* Alist of face remappings. |
| 6600 | Each element is of the form: | 6600 | Each element is of the form: |
| 6601 | 6601 | ||
| 6602 | (FACE REPLACEMENT...), | 6602 | (FACE . REPLACEMENT), |
| 6603 | 6603 | ||
| 6604 | which causes display of the face FACE to use REPLACEMENT... instead. | 6604 | which causes display of the face FACE to use REPLACEMENT instead. |
| 6605 | REPLACEMENT... is interpreted the same way as the value of a `face' | 6605 | REPLACEMENT is a face specification, i.e. one of the following: |
| 6606 | text property: it may be (1) A face name, (2) A list of face names, | ||
| 6607 | (3) A property-list of face attribute/value pairs, or (4) A list of | ||
| 6608 | face names or lists containing face attribute/value pairs. | ||
| 6609 | 6606 | ||
| 6610 | Multiple entries in REPLACEMENT... are merged together to form the final | 6607 | (1) a face name |
| 6611 | result, with faces or attributes earlier in the list taking precedence | 6608 | (2) a property list of attribute/value pairs, or |
| 6612 | over those that are later. | 6609 | (3) a list in which each element has the form of (1) or (2). |
| 6613 | 6610 | ||
| 6614 | Face-name remapping cycles are suppressed; recursive references use the | 6611 | List values for REPLACEMENT are merged to form the final face |
| 6615 | underlying face instead of the remapped face. So a remapping of the form: | 6612 | specification, with earlier entries taking precedence, in the same as |
| 6613 | as in the `face' text property. | ||
| 6614 | |||
| 6615 | Face-name remapping cycles are suppressed; recursive references use | ||
| 6616 | the underlying face instead of the remapped face. So a remapping of | ||
| 6617 | the form: | ||
| 6616 | 6618 | ||
| 6617 | (FACE EXTRA-FACE... FACE) | 6619 | (FACE EXTRA-FACE... FACE) |
| 6618 | 6620 | ||
| @@ -6620,13 +6622,13 @@ or: | |||
| 6620 | 6622 | ||
| 6621 | (FACE (FACE-ATTR VAL ...) FACE) | 6623 | (FACE (FACE-ATTR VAL ...) FACE) |
| 6622 | 6624 | ||
| 6623 | will cause EXTRA-FACE... or (FACE-ATTR VAL ...) to be _merged_ with the | 6625 | causes EXTRA-FACE... or (FACE-ATTR VAL ...) to be _merged_ with the |
| 6624 | existing definition of FACE. Note that for the default face, this isn't | 6626 | existing definition of FACE. Note that this isn't necessary for the |
| 6625 | necessary, as every face inherits from the default face. | 6627 | default face, since every face inherits from the default face. |
| 6626 | 6628 | ||
| 6627 | Making this variable buffer-local is a good way to allow buffer-specific | 6629 | If this variable is made buffer-local, the face remapping takes effect |
| 6628 | face definitions. For instance, the mode my-mode could define a face | 6630 | only in that buffer. For instance, the mode my-mode could define a |
| 6629 | `my-mode-default', and then in the mode setup function, do: | 6631 | face `my-mode-default', and then in the mode setup function, do: |
| 6630 | 6632 | ||
| 6631 | (set (make-local-variable 'face-remapping-alist) | 6633 | (set (make-local-variable 'face-remapping-alist) |
| 6632 | '((default my-mode-default)))). | 6634 | '((default my-mode-default)))). |