diff options
| author | Joakim Verona | 2011-11-04 13:06:17 +0100 |
|---|---|---|
| committer | Joakim Verona | 2011-11-04 13:06:17 +0100 |
| commit | c823c667cd00b9d8036ce06b943f58f3f4efd7d9 (patch) | |
| tree | 44cba3ad000f3f99215f7d742a9dc579516c4fe3 | |
| parent | 19e28bef7fdd7e74084b5ace141e067b491b50fd (diff) | |
| parent | 89bd5ee15acb93aefd403f3c76d1aff57520608b (diff) | |
| download | emacs-c823c667cd00b9d8036ce06b943f58f3f4efd7d9.tar.gz emacs-c823c667cd00b9d8036ce06b943f58f3f4efd7d9.zip | |
upstream
| -rw-r--r-- | doc/lispref/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/lispref/windows.texi | 14 | ||||
| -rw-r--r-- | lisp/ChangeLog | 12 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 14 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/cc-langs.el | 8 | ||||
| -rw-r--r-- | lisp/url/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/url/url-cookie.el | 3 | ||||
| -rw-r--r-- | lisp/window.el | 18 | ||||
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/window.c | 29 | ||||
| -rw-r--r-- | src/xdisp.c | 2 | ||||
| -rw-r--r-- | src/xfns.c | 1 |
14 files changed, 108 insertions, 25 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 1e86e07998c..2da562bdcfb 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-11-04 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * windows.texi (Window Sizes): Mention in the doc string that the | ||
| 4 | return values of `window-body-height' and `window-body-width' are | ||
| 5 | in frame's canonical units. (Bug#9949) | ||
| 6 | |||
| 1 | 2011-10-30 Martin Rudalics <rudalics@gmx.at> | 7 | 2011-10-30 Martin Rudalics <rudalics@gmx.at> |
| 2 | 8 | ||
| 3 | * windows.texi (Windows and Frames): Remove "iso-" infix from | 9 | * windows.texi (Windows and Frames): Remove "iso-" infix from |
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index 37679aa4a0b..bd20f5d8f44 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi | |||
| @@ -563,8 +563,18 @@ window's body width. | |||
| 563 | 563 | ||
| 564 | @cindex body size of a window | 564 | @cindex body size of a window |
| 565 | @cindex window body size | 565 | @cindex window body size |
| 566 | The following functions retrieve height and width of the body of a live | 566 | @cindex canonical units of window/frame size |
| 567 | window: | 567 | The following functions retrieve height and width of the body of a |
| 568 | live window. Note that the values these functions return are measured | ||
| 569 | in @dfn{canonical units}, i.e.@: for the default frame's face. If the | ||
| 570 | window shows some characters with non-default face, e.g., if the font | ||
| 571 | of some characters is larger or smaller than the default font, the | ||
| 572 | values returned by these functions will not match the actual number of | ||
| 573 | lines or characters per line shown in the window. To get the actual | ||
| 574 | number of columns and lines, move to the last character in the line | ||
| 575 | (e.g., with @code{end-of-visual-line}) or to the last line of the | ||
| 576 | window (e.g., with @code{window-end}), and use @code{posn-at-point} to | ||
| 577 | find the line or column there. | ||
| 568 | 578 | ||
| 569 | @defun window-body-size &optional window horizontal | 579 | @defun window-body-size &optional window horizontal |
| 570 | This function returns the number of lines of @var{window}'s text area. | 580 | This function returns the number of lines of @var{window}'s text area. |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a94987284de..eb276721dbc 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2011-11-04 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * window.el (window-body-height, window-body-width): Mention in | ||
| 4 | the doc string that the return values are in frame's canonical | ||
| 5 | units. (Bug#9949) | ||
| 6 | |||
| 7 | 2011-11-03 Alan Mackenzie <acm@muc.de> | ||
| 8 | |||
| 9 | * progmodes/cc-langs.el (c-nonlabel-token-2-key): New variable for | ||
| 10 | change in cc-engine.el. | ||
| 11 | |||
| 1 | 2011-11-02 Stefan Monnier <monnier@iro.umontreal.ca> | 12 | 2011-11-02 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 13 | ||
| 3 | * window.el (switch-to-buffer): Use `force-same-window' interactively. | 14 | * window.el (switch-to-buffer): Use `force-same-window' interactively. |
| @@ -136,7 +147,6 @@ | |||
| 136 | 147 | ||
| 137 | * progmodes/cc-langs.el (c-defun-tactic): Move this variable to | 148 | * progmodes/cc-langs.el (c-defun-tactic): Move this variable to |
| 138 | cc-vars.el. | 149 | cc-vars.el. |
| 139 | (c-nonlabel-token-2-key): New variable for change in cc-engine.el. | ||
| 140 | 150 | ||
| 141 | * progmodes/cc-engine.el (c-beginning-of-statement-1): | 151 | * progmodes/cc-engine.el (c-beginning-of-statement-1): |
| 142 | Prevent "class foo : bar" being spuriously recognized as a label. | 152 | Prevent "class foo : bar" being spuriously recognized as a label. |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 3fb44bb5b10..c36d4729518 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2011-11-03 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * gnus-sum.el (gnus-articles-to-read): Change wording in prompt to be | ||
| 4 | slightly clearer. | ||
| 5 | |||
| 6 | 2011-11-03 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 7 | |||
| 8 | * message.el (message-send-and-exit): Document `arg'. | ||
| 9 | |||
| 1 | 2011-11-03 Stefan Monnier <monnier@iro.umontreal.ca> | 10 | 2011-11-03 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 11 | ||
| 3 | * nnimap.el (nnimap-open-connection-1): Use tcp-keealive if possible. | 12 | * nnimap.el (nnimap-open-connection-1): Use tcp-keealive if possible. |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 66b661884e9..b84c493cc58 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -5859,15 +5859,15 @@ If SELECT-ARTICLES, only select those articles from GROUP." | |||
| 5859 | (read-string | 5859 | (read-string |
| 5860 | (if only-read-p | 5860 | (if only-read-p |
| 5861 | (format | 5861 | (format |
| 5862 | "How many articles from %s (available %d, default %d): " | 5862 | "How many articles from %s (available %d, default %d): " |
| 5863 | (gnus-group-decoded-name | ||
| 5864 | (gnus-group-real-name gnus-newsgroup-name)) | ||
| 5865 | number default) | ||
| 5866 | (format | ||
| 5867 | "How many articles from %s (%d available): " | ||
| 5868 | (gnus-group-decoded-name | 5863 | (gnus-group-decoded-name |
| 5869 | (gnus-group-real-name gnus-newsgroup-name)) | 5864 | (gnus-group-real-name gnus-newsgroup-name)) |
| 5870 | default)) | 5865 | number default) |
| 5866 | (format | ||
| 5867 | "How many articles from %s (%d default): " | ||
| 5868 | (gnus-group-decoded-name | ||
| 5869 | (gnus-group-real-name gnus-newsgroup-name)) | ||
| 5870 | default)) | ||
| 5871 | nil | 5871 | nil |
| 5872 | nil | 5872 | nil |
| 5873 | (number-to-string default)))) | 5873 | (number-to-string default)))) |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 723f8fb72b5..1d0830afd28 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -4022,7 +4022,9 @@ The text will also be indented the normal way." | |||
| 4022 | ;;; | 4022 | ;;; |
| 4023 | 4023 | ||
| 4024 | (defun message-send-and-exit (&optional arg) | 4024 | (defun message-send-and-exit (&optional arg) |
| 4025 | "Send message like `message-send', then, if no errors, exit from mail buffer." | 4025 | "Send message like `message-send', then, if no errors, exit from mail buffer. |
| 4026 | The usage of ARG is defined by the instance that called Message. | ||
| 4027 | It should typically alter the sending method in some way or other." | ||
| 4026 | (interactive "P") | 4028 | (interactive "P") |
| 4027 | (let ((buf (current-buffer)) | 4029 | (let ((buf (current-buffer)) |
| 4028 | (actions message-exit-actions)) | 4030 | (actions message-exit-actions)) |
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el index 09f8b318378..e1fb69c30c8 100644 --- a/lisp/progmodes/cc-langs.el +++ b/lisp/progmodes/cc-langs.el | |||
| @@ -3012,6 +3012,14 @@ i.e. before \":\". Only used if `c-recognize-colon-labels' is set." | |||
| 3012 | c++ (concat "\\s\(\\|" (c-lang-const c-nonlabel-token-key))) | 3012 | c++ (concat "\\s\(\\|" (c-lang-const c-nonlabel-token-key))) |
| 3013 | (c-lang-defvar c-nonlabel-token-key (c-lang-const c-nonlabel-token-key)) | 3013 | (c-lang-defvar c-nonlabel-token-key (c-lang-const c-nonlabel-token-key)) |
| 3014 | 3014 | ||
| 3015 | (c-lang-defconst c-nonlabel-token-2-key | ||
| 3016 | "Regexp matching things that can't occur two symbols before a colon in | ||
| 3017 | a label construct. This catches C++'s inheritance construct \"class foo | ||
| 3018 | : bar\". Only used if `c-recognize-colon-labels' is set." | ||
| 3019 | t "\\<\\>" ; matches nothing | ||
| 3020 | c++ (c-make-keywords-re t '("class"))) | ||
| 3021 | (c-lang-defvar c-nonlabel-token-2-key (c-lang-const c-nonlabel-token-2-key)) | ||
| 3022 | |||
| 3015 | (c-lang-defconst c-opt-extra-label-key | 3023 | (c-lang-defconst c-opt-extra-label-key |
| 3016 | "Optional regexp matching labels. | 3024 | "Optional regexp matching labels. |
| 3017 | Normally, labels are detected according to `c-nonlabel-token-key', | 3025 | Normally, labels are detected according to `c-nonlabel-token-key', |
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index 1b6890e5252..a2a1b451258 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-11-03 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * url-cookie.el (url-cookie-expired-p): Protect against | ||
| 4 | zero-length cookie expiry dates. | ||
| 5 | |||
| 1 | 2011-10-19 Chong Yidong <cyd@gnu.org> | 6 | 2011-10-19 Chong Yidong <cyd@gnu.org> |
| 2 | 7 | ||
| 3 | * url-handlers.el (url-handler-mode): Doc fix. | 8 | * url-handlers.el (url-handler-mode): Doc fix. |
diff --git a/lisp/url/url-cookie.el b/lisp/url/url-cookie.el index 78afa1633b6..f8417791ce5 100644 --- a/lisp/url/url-cookie.el +++ b/lisp/url/url-cookie.el | |||
| @@ -156,7 +156,8 @@ telling Microsoft that." | |||
| 156 | (defun url-cookie-expired-p (cookie) | 156 | (defun url-cookie-expired-p (cookie) |
| 157 | "Return non-nil if COOKIE is expired." | 157 | "Return non-nil if COOKIE is expired." |
| 158 | (let ((exp (url-cookie-expires cookie))) | 158 | (let ((exp (url-cookie-expires cookie))) |
| 159 | (and exp (> (float-time) (float-time (date-to-time exp)))))) | 159 | (and (> (length exp) 0) |
| 160 | (> (float-time) (float-time (date-to-time exp)))))) | ||
| 160 | 161 | ||
| 161 | (defun url-cookie-retrieve (host &optional localpart secure) | 162 | (defun url-cookie-retrieve (host &optional localpart secure) |
| 162 | "Retrieve all cookies for a specified HOST and LOCALPART." | 163 | "Retrieve all cookies for a specified HOST and LOCALPART." |
diff --git a/lisp/window.el b/lisp/window.el index 9b12c204d48..d6ab5e0e6cc 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -972,7 +972,14 @@ The return value does not include WINDOW's mode line and header | |||
| 972 | line, if any. If a line at the bottom of the window is only | 972 | line, if any. If a line at the bottom of the window is only |
| 973 | partially visible, that line is included in the return value. If | 973 | partially visible, that line is included in the return value. If |
| 974 | you do not want to include a partially visible bottom line in the | 974 | you do not want to include a partially visible bottom line in the |
| 975 | return value, use `window-text-height' instead." | 975 | return value, use `window-text-height' instead. |
| 976 | |||
| 977 | Note that the return value is measured in canonical units, i.e. for | ||
| 978 | the default frame's face. If the window shows some characters with | ||
| 979 | non-default face, e.g., if the font of some characters is larger or | ||
| 980 | smaller than the default font, the value returned by this function | ||
| 981 | will not match the actual number of lines shown in the window. To | ||
| 982 | get the actual number of lines, use `posn-at-point'." | ||
| 976 | (window-body-size window)) | 983 | (window-body-size window)) |
| 977 | 984 | ||
| 978 | (defsubst window-body-width (&optional window) | 985 | (defsubst window-body-width (&optional window) |
| @@ -982,7 +989,14 @@ WINDOW must be a live window and defaults to the selected one. | |||
| 982 | The return value does not include any vertical dividers or scroll | 989 | The return value does not include any vertical dividers or scroll |
| 983 | bars owned by WINDOW. On a window-system the return value does | 990 | bars owned by WINDOW. On a window-system the return value does |
| 984 | not include the number of columns used for WINDOW's fringes or | 991 | not include the number of columns used for WINDOW's fringes or |
| 985 | display margins either." | 992 | display margins either. |
| 993 | |||
| 994 | Note that the return value is measured in canonical units, i.e. for | ||
| 995 | the default frame's face. If the window shows some characters with | ||
| 996 | non-default face, e.g., if the font of some characters is larger or | ||
| 997 | smaller than the default font, the value returned by this function | ||
| 998 | will not match the actual number of characters per line shown in the | ||
| 999 | window. To get the actual number of columns, use `posn-at-point'." | ||
| 986 | (window-body-size window t)) | 1000 | (window-body-size window t)) |
| 987 | 1001 | ||
| 988 | ;; Eventually we should make `window-height' obsolete. | 1002 | ;; Eventually we should make `window-height' obsolete. |
diff --git a/src/ChangeLog b/src/ChangeLog index 67f8507a26b..ccfcb48daf0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,7 +1,15 @@ | |||
| 1 | 2011-11-04 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * window.c (Fwindow_body_size): Mention in the doc string that the | ||
| 4 | return value is in frame's canonical units. (Bug#9949) | ||
| 5 | |||
| 1 | 2011-11-03 Eli Zaretskii <eliz@gnu.org> | 6 | 2011-11-03 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 8 | * xdisp.c (note_mouse_highlight): Initialize `area'. (Bug#9947) | ||
| 9 | |||
| 3 | * w32fns.c (unwind_create_frame): If needed, free the glyph | 10 | * w32fns.c (unwind_create_frame): If needed, free the glyph |
| 4 | matrices of the partially constructed frame. (Bug#9943) | 11 | matrices of the partially constructed frame. (Bug#9943) |
| 12 | * xfns.c (unwind_create_frame): Likewise. | ||
| 5 | 13 | ||
| 6 | 2011-11-01 Eli Zaretskii <eliz@gnu.org> | 14 | 2011-11-01 Eli Zaretskii <eliz@gnu.org> |
| 7 | 15 | ||
diff --git a/src/window.c b/src/window.c index 056da1512da..496a4e6c6ea 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -655,16 +655,25 @@ window_body_cols (struct window *w) | |||
| 655 | } | 655 | } |
| 656 | 656 | ||
| 657 | DEFUN ("window-body-size", Fwindow_body_size, Swindow_body_size, 0, 2, 0, | 657 | DEFUN ("window-body-size", Fwindow_body_size, Swindow_body_size, 0, 2, 0, |
| 658 | doc: /* Return the number of lines of WINDOW's body. | 658 | doc: /* Return the number of lines or columns of WINDOW's body. |
| 659 | WINDOW must be a live window and defaults to the selected one. The | 659 | WINDOW must be a live window and defaults to the selected one. |
| 660 | return value does not include WINDOW's mode line and header line, if | 660 | |
| 661 | any. | 661 | If the optional argument HORIZONTAL is omitted or nil, the function |
| 662 | 662 | returns the number of WINDOW's lines, excluding the mode line and | |
| 663 | Optional argument HORIZONTAL non-nil means return the number of columns | 663 | header line, if any. |
| 664 | of WINDOW's body. In this case, the return value does not include any | 664 | |
| 665 | vertical dividers or scroll bars owned by WINDOW. On a window-system | 665 | If HORIZONTAL is non-nil, the function returns the number of columns |
| 666 | the return value does not include the number of columns used for | 666 | excluding any vertical dividers or scroll bars owned by WINDOW. On a |
| 667 | WINDOW's fringes or display margins either. */) | 667 | window-system the return value also excludes the number of columns |
| 668 | used for WINDOW's fringes or display margins. | ||
| 669 | |||
| 670 | Note that the return value is measured in canonical units, i.e. for | ||
| 671 | the default frame's face. If the window shows some characters with | ||
| 672 | non-default face, e.g., if the font of some characters is larger or | ||
| 673 | smaller than the default font, the value returned by this function | ||
| 674 | will not match the actual number of lines or characters per line | ||
| 675 | shown in the window. To get the actual number of columns and lines, | ||
| 676 | use `posn-at-point'. */) | ||
| 668 | (Lisp_Object window, Lisp_Object horizontal) | 677 | (Lisp_Object window, Lisp_Object horizontal) |
| 669 | { | 678 | { |
| 670 | struct window *w = decode_any_window (window); | 679 | struct window *w = decode_any_window (window); |
diff --git a/src/xdisp.c b/src/xdisp.c index b7fc1141e28..6414ab00fd8 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -27130,7 +27130,7 @@ note_mouse_highlight (struct frame *f, int x, int y) | |||
| 27130 | && XFASTINT (w->last_modified) == BUF_MODIFF (b) | 27130 | && XFASTINT (w->last_modified) == BUF_MODIFF (b) |
| 27131 | && XFASTINT (w->last_overlay_modified) == BUF_OVERLAY_MODIFF (b)) | 27131 | && XFASTINT (w->last_overlay_modified) == BUF_OVERLAY_MODIFF (b)) |
| 27132 | { | 27132 | { |
| 27133 | int hpos, vpos, dx, dy, area; | 27133 | int hpos, vpos, dx, dy, area = LAST_AREA; |
| 27134 | EMACS_INT pos; | 27134 | EMACS_INT pos; |
| 27135 | struct glyph *glyph; | 27135 | struct glyph *glyph; |
| 27136 | Lisp_Object object; | 27136 | Lisp_Object object; |
diff --git a/src/xfns.c b/src/xfns.c index 913cde75d91..ac030582ffe 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -2936,6 +2936,7 @@ unwind_create_frame (Lisp_Object frame) | |||
| 2936 | #endif | 2936 | #endif |
| 2937 | 2937 | ||
| 2938 | x_free_frame_resources (f); | 2938 | x_free_frame_resources (f); |
| 2939 | free_glyphs (f); | ||
| 2939 | 2940 | ||
| 2940 | #if GLYPH_DEBUG | 2941 | #if GLYPH_DEBUG |
| 2941 | /* Check that reference counts are indeed correct. */ | 2942 | /* Check that reference counts are indeed correct. */ |