diff options
| author | Joakim Verona | 2013-01-01 00:03:45 +0100 |
|---|---|---|
| committer | Joakim Verona | 2013-01-01 00:03:45 +0100 |
| commit | 6ccf4a96e45ab441a1ee0b7c286319d3bc50aae7 (patch) | |
| tree | 554c7cbf067c209839cb3882a09a1e892674811e /lisp | |
| parent | 42a61fa6a6cbcfde79d812bbbba372d579dc1016 (diff) | |
| parent | a7f11948344e03745cfc3b52a9089b770966798e (diff) | |
| download | emacs-6ccf4a96e45ab441a1ee0b7c286319d3bc50aae7.tar.gz emacs-6ccf4a96e45ab441a1ee0b7c286319d3bc50aae7.zip | |
auto upstream
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 57 | ||||
| -rw-r--r-- | lisp/calc/calc-forms.el | 24 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 18 | ||||
| -rw-r--r-- | lisp/net/tramp-adb.el | 15 | ||||
| -rw-r--r-- | lisp/subr.el | 2 | ||||
| -rw-r--r-- | lisp/window.el | 30 |
6 files changed, 107 insertions, 39 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c895bce1cad..7e9e9d7738e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,28 @@ | |||
| 1 | 2012-12-31 Jürgen Hötzel <juergen@archlinux.org> | ||
| 2 | |||
| 3 | * net/tramp-adb.el (tramp-adb-maybe-open-connection): Handle errors | ||
| 4 | (No device connected, invalid device name). (Bug #13299) | ||
| 5 | |||
| 6 | 2012-12-31 Martin Rudalics <rudalics@gmx.at> | ||
| 7 | |||
| 8 | * window.el (window-resizable--p): Rename to window-resizable-p. | ||
| 9 | (window-resize-no-error): New function. | ||
| 10 | |||
| 11 | * mail/rmail.el (rmail-maybe-display-summary): Restore behavior | ||
| 12 | broken in fix from 2012-12-28. | ||
| 13 | |||
| 14 | 2012-12-31 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 15 | |||
| 16 | * subr.el (special-form-p): Don't signal errors on undef aliases. | ||
| 17 | |||
| 18 | 2012-12-31 Jay Belanger <jay.p.belanger@gmail.com> | ||
| 19 | |||
| 20 | * calc/calc-forms.el (math-parse-date): Try using | ||
| 21 | `math-parse-iso-date' when it looks like it might be needed. | ||
| 22 | Allow times of 24:00. | ||
| 23 | (math-parse-date-validate, math-parse-iso-date-validate): Allow times | ||
| 24 | of 24:00. | ||
| 25 | |||
| 1 | 2012-12-30 Glenn Morris <rgm@gnu.org> | 26 | 2012-12-30 Glenn Morris <rgm@gnu.org> |
| 2 | 27 | ||
| 3 | * net/mairix.el (rmail, rmail-summary-displayed, rmail-summary): | 28 | * net/mairix.el (rmail, rmail-summary-displayed, rmail-summary): |
| @@ -17,8 +42,8 @@ | |||
| 17 | 42 | ||
| 18 | 2012-12-30 Mark Lillibridge <mark.lillibridge@hp.com> | 43 | 2012-12-30 Mark Lillibridge <mark.lillibridge@hp.com> |
| 19 | 44 | ||
| 20 | * mail/rmailmm.el (rmail-insert-mime-forwarded-message): Insert | 45 | * mail/rmailmm.el (rmail-insert-mime-forwarded-message): |
| 21 | the undecoded text of the message being forwarded. (Bug#9521) | 46 | Insert the undecoded text of the message being forwarded. (Bug#9521) |
| 22 | 47 | ||
| 23 | 2012-12-30 Michael Albinus <michael.albinus@gmx.de> | 48 | 2012-12-30 Michael Albinus <michael.albinus@gmx.de> |
| 24 | 49 | ||
| @@ -28,8 +53,8 @@ | |||
| 28 | * net/tramp-sh.el (tramp-sh-handle-set-file-selinux-context): | 53 | * net/tramp-sh.el (tramp-sh-handle-set-file-selinux-context): |
| 29 | Return `t' on success. | 54 | Return `t' on success. |
| 30 | 55 | ||
| 31 | * net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add | 56 | * net/tramp-smb.el (tramp-smb-file-name-handler-alist): |
| 32 | handler for `set-file-selinux-context'. | 57 | Add handler for `set-file-selinux-context'. |
| 33 | 58 | ||
| 34 | 2012-12-29 Michael Albinus <michael.albinus@gmx.de> | 59 | 2012-12-29 Michael Albinus <michael.albinus@gmx.de> |
| 35 | 60 | ||
| @@ -38,8 +63,8 @@ | |||
| 38 | 63 | ||
| 39 | 2012-12-29 Eli Zaretskii <eliz@gnu.org> | 64 | 2012-12-29 Eli Zaretskii <eliz@gnu.org> |
| 40 | 65 | ||
| 41 | * files.el (backup-buffer-copy, basic-save-buffer-2): If | 66 | * files.el (backup-buffer-copy, basic-save-buffer-2): |
| 42 | set-file-extended-attributes fails, fall back on set-file-modes | 67 | If set-file-extended-attributes fails, fall back on set-file-modes |
| 43 | instead of signaling an error. (Bug#13298) | 68 | instead of signaling an error. (Bug#13298) |
| 44 | (basic-save-buffer): Likewise. | 69 | (basic-save-buffer): Likewise. |
| 45 | 70 | ||
| @@ -67,8 +92,8 @@ | |||
| 67 | 92 | ||
| 68 | 2012-12-28 Martin Rudalics <rudalics@gmx.at> | 93 | 2012-12-28 Martin Rudalics <rudalics@gmx.at> |
| 69 | 94 | ||
| 70 | * mail/rmail.el (rmail-maybe-display-summary): Rewrite | 95 | * mail/rmail.el (rmail-maybe-display-summary): |
| 71 | (Bug#13066). | 96 | Rewrite (Bug#13066). |
| 72 | 97 | ||
| 73 | 2012-12-28 Andreas Schwab <schwab@linux-m68k.org> | 98 | 2012-12-28 Andreas Schwab <schwab@linux-m68k.org> |
| 74 | 99 | ||
| @@ -123,8 +148,8 @@ | |||
| 123 | 2012-12-27 Dmitry Gutov <dgutov@yandex.ru> | 148 | 2012-12-27 Dmitry Gutov <dgutov@yandex.ru> |
| 124 | 149 | ||
| 125 | * progmodes/ruby-mode.el (ruby-indent-beg-re): Only allow "class", | 150 | * progmodes/ruby-mode.el (ruby-indent-beg-re): Only allow "class", |
| 126 | "module" and "def" to have indentation before them. Regression | 151 | "module" and "def" to have indentation before them. |
| 127 | from 2012-09-07T04:15:56Z!dgutov@yandex.ru (see the new test). | 152 | Regression from 2012-09-07T04:15:56Z!dgutov@yandex.ru (see the new test). |
| 128 | 153 | ||
| 129 | * progmodes/ruby-mode.el: Bump the version to 1.2 (Bug#13200). | 154 | * progmodes/ruby-mode.el: Bump the version to 1.2 (Bug#13200). |
| 130 | 155 | ||
| @@ -137,8 +162,8 @@ | |||
| 137 | 2012-12-27 Vitalie Spinu <spinuvit@gmail.com> (tiny change) | 162 | 2012-12-27 Vitalie Spinu <spinuvit@gmail.com> (tiny change) |
| 138 | 163 | ||
| 139 | * comint.el (comint-adjust-window-point): New function. | 164 | * comint.el (comint-adjust-window-point): New function. |
| 140 | (comint-postoutput-scroll-to-bottom): Call | 165 | (comint-postoutput-scroll-to-bottom): |
| 141 | comint-adjust-window-point (Bug#13248). | 166 | Call comint-adjust-window-point (Bug#13248). |
| 142 | 167 | ||
| 143 | 2012-12-26 Dmitry Gutov <dgutov@yandex.ru> | 168 | 2012-12-26 Dmitry Gutov <dgutov@yandex.ru> |
| 144 | 169 | ||
| @@ -149,8 +174,8 @@ | |||
| 149 | 174 | ||
| 150 | 2012-12-26 Jürgen Hötzel <juergen@archlinux.org> | 175 | 2012-12-26 Jürgen Hötzel <juergen@archlinux.org> |
| 151 | 176 | ||
| 152 | * net/tramp-adb.el (tramp-adb-get-ls-command): New defun. Suppress | 177 | * net/tramp-adb.el (tramp-adb-get-ls-command): New defun. |
| 153 | coloring, if possible (required for BusyBox based systems like | 178 | Suppress coloring, if possible (required for BusyBox based systems like |
| 154 | CynagenMod). | 179 | CynagenMod). |
| 155 | (tramp-adb-handle-file-attributes) | 180 | (tramp-adb-handle-file-attributes) |
| 156 | (tramp-adb-handle-insert-directory) | 181 | (tramp-adb-handle-insert-directory) |
| @@ -179,8 +204,8 @@ | |||
| 179 | * notifications.el (notifications-notify): Protect body with | 204 | * notifications.el (notifications-notify): Protect body with |
| 180 | `with-demoted-errors'. | 205 | `with-demoted-errors'. |
| 181 | 206 | ||
| 182 | * net/tramp-adb.el (tramp-adb-maybe-open-connection): Check | 207 | * net/tramp-adb.el (tramp-adb-maybe-open-connection): |
| 183 | properties of remote device. Restart connection, if there is a | 208 | Check properties of remote device. Restart connection, if there is a |
| 184 | change. | 209 | change. |
| 185 | 210 | ||
| 186 | 2012-12-21 Chong Yidong <cyd@gnu.org> | 211 | 2012-12-21 Chong Yidong <cyd@gnu.org> |
diff --git a/lisp/calc/calc-forms.el b/lisp/calc/calc-forms.el index 7cfca261fa3..d7c598d3b48 100644 --- a/lisp/calc/calc-forms.el +++ b/lisp/calc/calc-forms.el | |||
| @@ -918,7 +918,7 @@ as measured in the integer number of days before December 31, 1 BC (Gregorian)." | |||
| 918 | (catch 'syntax | 918 | (catch 'syntax |
| 919 | (or (math-parse-standard-date math-pd-str t) | 919 | (or (math-parse-standard-date math-pd-str t) |
| 920 | (math-parse-standard-date math-pd-str nil) | 920 | (math-parse-standard-date math-pd-str nil) |
| 921 | (and (or (memq 'IYYY calc-date-format) (memq 'Iww calc-date-format)) | 921 | (and (string-match "W[0-9][0-9]" math-pd-str) |
| 922 | (math-parse-iso-date math-pd-str)) | 922 | (math-parse-iso-date math-pd-str)) |
| 923 | (and (string-match "\\`[^-+/0-9a-zA-Z]*\\([-+]?[0-9]+\\.?[0-9]*\\([eE][-+]?[0-9]+\\)?\\)[^-+/0-9a-zA-Z]*\\'" math-pd-str) | 923 | (and (string-match "\\`[^-+/0-9a-zA-Z]*\\([-+]?[0-9]+\\.?[0-9]*\\([eE][-+]?[0-9]+\\)?\\)[^-+/0-9a-zA-Z]*\\'" math-pd-str) |
| 924 | (list 'date (math-read-number (math-match-substring math-pd-str 1)))) | 924 | (list 'date (math-read-number (math-match-substring math-pd-str 1)))) |
| @@ -943,8 +943,12 @@ as measured in the integer number of days before December 31, 1 BC (Gregorian)." | |||
| 943 | (setq second 0) | 943 | (setq second 0) |
| 944 | (setq second (math-read-number second))) | 944 | (setq second (math-read-number second))) |
| 945 | (if (equal ampm "") | 945 | (if (equal ampm "") |
| 946 | (if (> hour 23) | 946 | (if (or |
| 947 | (throw 'syntax "Hour value out of range")) | 947 | (> hour 24) |
| 948 | (and (= hour 24) | ||
| 949 | (not (= minute 0)) | ||
| 950 | (not (eq second 0)))) | ||
| 951 | (throw 'syntax "Hour value is out of range")) | ||
| 948 | (setq ampm (upcase (aref ampm 0))) | 952 | (setq ampm (upcase (aref ampm 0))) |
| 949 | (if (memq ampm '(?N ?M)) | 953 | (if (memq ampm '(?N ?M)) |
| 950 | (if (and (= hour 12) (= minute 0) (eq second 0)) | 954 | (if (and (= hour 12) (= minute 0) (eq second 0)) |
| @@ -952,7 +956,7 @@ as measured in the integer number of days before December 31, 1 BC (Gregorian)." | |||
| 952 | (throw 'syntax | 956 | (throw 'syntax |
| 953 | "Time must be 12:00:00 in this context")) | 957 | "Time must be 12:00:00 in this context")) |
| 954 | (if (or (= hour 0) (> hour 12)) | 958 | (if (or (= hour 0) (> hour 12)) |
| 955 | (throw 'syntax "Hour value out of range")) | 959 | (throw 'syntax "Hour value is out of range")) |
| 956 | (if (eq (= ampm ?A) (= hour 12)) | 960 | (if (eq (= ampm ?A) (= hour 12)) |
| 957 | (setq hour (% (+ hour 12) 24))))))) | 961 | (setq hour (% (+ hour 12) 24))))))) |
| 958 | 962 | ||
| @@ -1075,7 +1079,11 @@ as measured in the integer number of days before December 31, 1 BC (Gregorian)." | |||
| 1075 | (throw 'syntax "Day value is out of range")) | 1079 | (throw 'syntax "Day value is out of range")) |
| 1076 | (and hour | 1080 | (and hour |
| 1077 | (progn | 1081 | (progn |
| 1078 | (if (or (< hour 0) (> hour 23)) | 1082 | (if (or (< hour 0) |
| 1083 | (> hour 24) | ||
| 1084 | (and (= hour 24) | ||
| 1085 | (not (= minute 0)) | ||
| 1086 | (not (eq second 0)))) | ||
| 1079 | (throw 'syntax "Hour value is out of range")) | 1087 | (throw 'syntax "Hour value is out of range")) |
| 1080 | (if (or (< minute 0) (> minute 59)) | 1088 | (if (or (< minute 0) (> minute 59)) |
| 1081 | (throw 'syntax "Minute value is out of range")) | 1089 | (throw 'syntax "Minute value is out of range")) |
| @@ -1091,7 +1099,11 @@ as measured in the integer number of days before December 31, 1 BC (Gregorian)." | |||
| 1091 | (throw 'syntax "Weekday value is out of range")) | 1099 | (throw 'syntax "Weekday value is out of range")) |
| 1092 | (and hour | 1100 | (and hour |
| 1093 | (progn | 1101 | (progn |
| 1094 | (if (or (< hour 0) (> hour 23)) | 1102 | (if (or (< hour 0) |
| 1103 | (> hour 24) | ||
| 1104 | (and (= hour 24) | ||
| 1105 | (not (= minute 0)) | ||
| 1106 | (not (eq second 0)))) | ||
| 1095 | (throw 'syntax "Hour value is out of range")) | 1107 | (throw 'syntax "Hour value is out of range")) |
| 1096 | (if (or (< minute 0) (> minute 59)) | 1108 | (if (or (< minute 0) (> minute 59)) |
| 1097 | (throw 'syntax "Minute value is out of range")) | 1109 | (throw 'syntax "Minute value is out of range")) |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 096b53c6cab..947d8e2cb4c 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -4224,15 +4224,25 @@ This has an effect only if a summary buffer exists." | |||
| 4224 | 4224 | ||
| 4225 | ;; Put the summary buffer back on the screen, if user wants that. | 4225 | ;; Put the summary buffer back on the screen, if user wants that. |
| 4226 | (defun rmail-maybe-display-summary () | 4226 | (defun rmail-maybe-display-summary () |
| 4227 | ;; If requested, make sure the summary is displayed. | 4227 | (cond |
| 4228 | (when (and rmail-summary-buffer (buffer-name rmail-summary-buffer) | 4228 | ((or (not rmail-summary-buffer) |
| 4229 | rmail-redisplay-summary) | 4229 | (not (buffer-name rmail-summary-buffer)))) |
| 4230 | (rmail-redisplay-summary | ||
| 4231 | ;; If `rmail-redisplay-summary' is non-nil, make sure the summary | ||
| 4232 | ;; buffer is displayed. | ||
| 4230 | (display-buffer | 4233 | (display-buffer |
| 4231 | rmail-summary-buffer | 4234 | rmail-summary-buffer |
| 4232 | `(nil | 4235 | `(nil |
| 4233 | (reusable-frames . 0) | 4236 | (reusable-frames . 0) |
| 4234 | ,(when rmail-summary-window-size | 4237 | ,(when rmail-summary-window-size |
| 4235 | `(window-height . ,rmail-summary-window-size)))))) | 4238 | `(window-height . ,rmail-summary-window-size))))) |
| 4239 | (rmail-summary-window-size | ||
| 4240 | ;; If `rmail-summary-window-size' is non-nil and the summary buffer | ||
| 4241 | ;; is displayed, make sure it gets resized. | ||
| 4242 | (let ((window (get-buffer-window rmail-summary-buffer 0))) | ||
| 4243 | (when window | ||
| 4244 | (window-resize-no-error | ||
| 4245 | window (- rmail-summary-window-size (window-height window)))))))) | ||
| 4236 | 4246 | ||
| 4237 | ;;;; *** Rmail Local Fontification *** | 4247 | ;;;; *** Rmail Local Fontification *** |
| 4238 | 4248 | ||
diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el index f31bd6b3d2d..b418d1982d9 100644 --- a/lisp/net/tramp-adb.el +++ b/lisp/net/tramp-adb.el | |||
| @@ -998,11 +998,24 @@ COMMAND is nil, just sends `echo $?'. Returns the exit status found." | |||
| 998 | Does not do anything if a connection is already open, but re-opens the | 998 | Does not do anything if a connection is already open, but re-opens the |
| 999 | connection if a previous connection has died for some reason." | 999 | connection if a previous connection has died for some reason." |
| 1000 | (let* ((buf (tramp-get-connection-buffer vec)) | 1000 | (let* ((buf (tramp-get-connection-buffer vec)) |
| 1001 | (p (get-buffer-process buf))) | 1001 | (p (get-buffer-process buf)) |
| 1002 | (devices (mapcar 'cadr (tramp-adb-parse-device-names nil)))) | ||
| 1002 | (unless | 1003 | (unless |
| 1003 | (and p (processp p) (memq (process-status p) '(run open))) | 1004 | (and p (processp p) (memq (process-status p) '(run open))) |
| 1004 | (save-match-data | 1005 | (save-match-data |
| 1005 | (when (and p (processp p)) (delete-process p)) | 1006 | (when (and p (processp p)) (delete-process p)) |
| 1007 | (if (not devices) | ||
| 1008 | (tramp-error vec 'file-error "No device connected")) | ||
| 1009 | (if (and (tramp-file-name-host vec) | ||
| 1010 | (not (member (tramp-file-name-host vec) devices))) | ||
| 1011 | (tramp-error | ||
| 1012 | vec 'file-error | ||
| 1013 | "Device %s not connected" (tramp-file-name-host vec))) | ||
| 1014 | (if (and (not (eq (length devices) 1)) | ||
| 1015 | (not (tramp-file-name-host vec))) | ||
| 1016 | (tramp-error | ||
| 1017 | vec 'file-error | ||
| 1018 | "Multiple Devices connected: No Host/Device specified")) | ||
| 1006 | (with-tramp-progress-reporter vec 3 "Opening adb shell connection" | 1019 | (with-tramp-progress-reporter vec 3 "Opening adb shell connection" |
| 1007 | (let* ((coding-system-for-read 'utf-8-dos) ;is this correct? | 1020 | (let* ((coding-system-for-read 'utf-8-dos) ;is this correct? |
| 1008 | (process-connection-type tramp-process-connection-type) | 1021 | (process-connection-type tramp-process-connection-type) |
diff --git a/lisp/subr.el b/lisp/subr.el index 1e509036cd1..111fb6201b4 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2805,7 +2805,7 @@ Otherwise, return nil." | |||
| 2805 | (defun special-form-p (object) | 2805 | (defun special-form-p (object) |
| 2806 | "Non-nil if and only if OBJECT is a special form." | 2806 | "Non-nil if and only if OBJECT is a special form." |
| 2807 | (if (and (symbolp object) (fboundp object)) | 2807 | (if (and (symbolp object) (fboundp object)) |
| 2808 | (setq object (indirect-function object))) | 2808 | (setq object (indirect-function object t))) |
| 2809 | (and (subrp object) (eq (cdr (subr-arity object)) 'unevalled))) | 2809 | (and (subrp object) (eq (cdr (subr-arity object)) 'unevalled))) |
| 2810 | 2810 | ||
| 2811 | (defun field-at-pos (pos) | 2811 | (defun field-at-pos (pos) |
diff --git a/lisp/window.el b/lisp/window.el index 52909fa9e5f..250978d0053 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -1340,7 +1340,7 @@ violate size restrictions of WINDOW or its child windows." | |||
| 1340 | delta)) | 1340 | delta)) |
| 1341 | (t 0))) | 1341 | (t 0))) |
| 1342 | 1342 | ||
| 1343 | (defun window--resizable-p (window delta &optional horizontal ignore trail noup nodown) | 1343 | (defun window-resizable-p (window delta &optional horizontal ignore trail noup nodown) |
| 1344 | "Return t if WINDOW can be resized vertically by DELTA lines. | 1344 | "Return t if WINDOW can be resized vertically by DELTA lines. |
| 1345 | WINDOW must be a valid window and defaults to the selected one. | 1345 | WINDOW must be a valid window and defaults to the selected one. |
| 1346 | For the meaning of the arguments of this function see the | 1346 | For the meaning of the arguments of this function see the |
| @@ -1943,7 +1943,7 @@ instead." | |||
| 1943 | ;; nil or the minibuffer window is active, resize the minibuffer | 1943 | ;; nil or the minibuffer window is active, resize the minibuffer |
| 1944 | ;; window. | 1944 | ;; window. |
| 1945 | (window--resize-mini-window minibuffer-window (- delta))) | 1945 | (window--resize-mini-window minibuffer-window (- delta))) |
| 1946 | ((window--resizable-p window delta horizontal ignore) | 1946 | ((window-resizable-p window delta horizontal ignore) |
| 1947 | (window--resize-reset frame horizontal) | 1947 | (window--resize-reset frame horizontal) |
| 1948 | (window--resize-this-window window delta horizontal ignore t) | 1948 | (window--resize-this-window window delta horizontal ignore t) |
| 1949 | (if (and (not window-combination-resize) | 1949 | (if (and (not window-combination-resize) |
| @@ -1969,6 +1969,14 @@ instead." | |||
| 1969 | (t | 1969 | (t |
| 1970 | (error "Cannot resize window %s" window))))) | 1970 | (error "Cannot resize window %s" window))))) |
| 1971 | 1971 | ||
| 1972 | (defun window-resize-no-error (window delta &optional horizontal ignore) | ||
| 1973 | "Resize WINDOW vertically if it is resizable by DELTA lines. | ||
| 1974 | This function is like `window-resize' but does not signal an | ||
| 1975 | error when WINDOW cannot be resized. For the meaning of the | ||
| 1976 | optional arguments see the documentation of `window-resize'." | ||
| 1977 | (when (window-resizable-p window delta horizontal ignore) | ||
| 1978 | (window-resize window delta horizontal ignore))) | ||
| 1979 | |||
| 1972 | (defun window--resize-child-windows-skip-p (window) | 1980 | (defun window--resize-child-windows-skip-p (window) |
| 1973 | "Return non-nil if WINDOW shall be skipped by resizing routines." | 1981 | "Return non-nil if WINDOW shall be skipped by resizing routines." |
| 1974 | (memq (window-new-normal window) '(ignore stuck skip))) | 1982 | (memq (window-new-normal window) '(ignore stuck skip))) |
| @@ -2594,7 +2602,7 @@ negative, shrink selected window by -DELTA lines or columns." | |||
| 2594 | ;; If the selected window is full height and `resize-mini-windows' | 2602 | ;; If the selected window is full height and `resize-mini-windows' |
| 2595 | ;; is nil, resize the minibuffer window. | 2603 | ;; is nil, resize the minibuffer window. |
| 2596 | (window--resize-mini-window minibuffer-window (- delta))) | 2604 | (window--resize-mini-window minibuffer-window (- delta))) |
| 2597 | ((window--resizable-p nil delta horizontal) | 2605 | ((window-resizable-p nil delta horizontal) |
| 2598 | (window-resize nil delta horizontal)) | 2606 | (window-resize nil delta horizontal)) |
| 2599 | (t | 2607 | (t |
| 2600 | (window-resize | 2608 | (window-resize |
| @@ -2627,7 +2635,7 @@ Also see the `window-min-height' variable." | |||
| 2627 | ;; If the selected window is full height and `resize-mini-windows' | 2635 | ;; If the selected window is full height and `resize-mini-windows' |
| 2628 | ;; is nil, resize the minibuffer window. | 2636 | ;; is nil, resize the minibuffer window. |
| 2629 | (window--resize-mini-window minibuffer-window delta)) | 2637 | (window--resize-mini-window minibuffer-window delta)) |
| 2630 | ((window--resizable-p nil (- delta) horizontal) | 2638 | ((window-resizable-p nil (- delta) horizontal) |
| 2631 | (window-resize nil (- delta) horizontal)) | 2639 | (window-resize nil (- delta) horizontal)) |
| 2632 | (t | 2640 | (t |
| 2633 | (window-resize | 2641 | (window-resize |
| @@ -2901,7 +2909,7 @@ that is its frame's root window." | |||
| 2901 | (set-window-new-normal | 2909 | (set-window-new-normal |
| 2902 | sibling (+ (window-normal-size sibling horizontal) | 2910 | sibling (+ (window-normal-size sibling horizontal) |
| 2903 | (window-normal-size window horizontal)))) | 2911 | (window-normal-size window horizontal)))) |
| 2904 | ((window--resizable-p window (- size) horizontal nil nil nil t) | 2912 | ((window-resizable-p window (- size) horizontal nil nil nil t) |
| 2905 | ;; Can do without resizing fixed-size windows. | 2913 | ;; Can do without resizing fixed-size windows. |
| 2906 | (window--resize-siblings window (- size) horizontal)) | 2914 | (window--resize-siblings window (- size) horizontal)) |
| 2907 | (t | 2915 | (t |
| @@ -4440,13 +4448,13 @@ value can be also stored on disk and read back in a new session." | |||
| 4440 | (let ((delta (- (cdr (assq 'total-height item)) | 4448 | (let ((delta (- (cdr (assq 'total-height item)) |
| 4441 | (window-total-height window))) | 4449 | (window-total-height window))) |
| 4442 | window-size-fixed) | 4450 | window-size-fixed) |
| 4443 | (when (window--resizable-p window delta) | 4451 | (when (window-resizable-p window delta) |
| 4444 | (window-resize window delta))) | 4452 | (window-resize window delta))) |
| 4445 | ;; Else check whether the window is not high enough. | 4453 | ;; Else check whether the window is not high enough. |
| 4446 | (let* ((min-size (window-min-size window nil ignore)) | 4454 | (let* ((min-size (window-min-size window nil ignore)) |
| 4447 | (delta (- min-size (window-total-size window)))) | 4455 | (delta (- min-size (window-total-size window)))) |
| 4448 | (when (and (> delta 0) | 4456 | (when (and (> delta 0) |
| 4449 | (window--resizable-p window delta nil ignore)) | 4457 | (window-resizable-p window delta nil ignore)) |
| 4450 | (window-resize window delta nil ignore)))) | 4458 | (window-resize window delta nil ignore)))) |
| 4451 | ;; Adjust horizontally. | 4459 | ;; Adjust horizontally. |
| 4452 | (if (memq window-size-fixed '(t width)) | 4460 | (if (memq window-size-fixed '(t width)) |
| @@ -4454,13 +4462,13 @@ value can be also stored on disk and read back in a new session." | |||
| 4454 | (let ((delta (- (cdr (assq 'total-width item)) | 4462 | (let ((delta (- (cdr (assq 'total-width item)) |
| 4455 | (window-total-width window))) | 4463 | (window-total-width window))) |
| 4456 | window-size-fixed) | 4464 | window-size-fixed) |
| 4457 | (when (window--resizable-p window delta) | 4465 | (when (window-resizable-p window delta) |
| 4458 | (window-resize window delta))) | 4466 | (window-resize window delta))) |
| 4459 | ;; Else check whether the window is not wide enough. | 4467 | ;; Else check whether the window is not wide enough. |
| 4460 | (let* ((min-size (window-min-size window t ignore)) | 4468 | (let* ((min-size (window-min-size window t ignore)) |
| 4461 | (delta (- min-size (window-total-size window t)))) | 4469 | (delta (- min-size (window-total-size window t)))) |
| 4462 | (when (and (> delta 0) | 4470 | (when (and (> delta 0) |
| 4463 | (window--resizable-p window delta t ignore)) | 4471 | (window-resizable-p window delta t ignore)) |
| 4464 | (window-resize window delta t ignore)))) | 4472 | (window-resize window delta t ignore)))) |
| 4465 | ;; Set dedicated status. | 4473 | ;; Set dedicated status. |
| 4466 | (set-window-dedicated-p window (cdr (assq 'dedicated state))) | 4474 | (set-window-dedicated-p window (cdr (assq 'dedicated state))) |
| @@ -5211,7 +5219,7 @@ live." | |||
| 5211 | (* (window-total-size (frame-root-window window)) | 5219 | (* (window-total-size (frame-root-window window)) |
| 5212 | height)))) | 5220 | height)))) |
| 5213 | (delta (- new-height (window-total-size window)))) | 5221 | (delta (- new-height (window-total-size window)))) |
| 5214 | (when (and (window--resizable-p window delta nil 'safe) | 5222 | (when (and (window-resizable-p window delta nil 'safe) |
| 5215 | (window-combined-p window)) | 5223 | (window-combined-p window)) |
| 5216 | (window-resize window delta nil 'safe)))) | 5224 | (window-resize window delta nil 'safe)))) |
| 5217 | ((functionp height) | 5225 | ((functionp height) |
| @@ -5227,7 +5235,7 @@ live." | |||
| 5227 | (* (window-total-size (frame-root-window window) t) | 5235 | (* (window-total-size (frame-root-window window) t) |
| 5228 | width)))) | 5236 | width)))) |
| 5229 | (delta (- new-width (window-total-size window t)))) | 5237 | (delta (- new-width (window-total-size window t)))) |
| 5230 | (when (and (window--resizable-p window delta t 'safe) | 5238 | (when (and (window-resizable-p window delta t 'safe) |
| 5231 | (window-combined-p window t)) | 5239 | (window-combined-p window t)) |
| 5232 | (window-resize window delta t 'safe)))) | 5240 | (window-resize window delta t 'safe)))) |
| 5233 | ((functionp width) | 5241 | ((functionp width) |