diff options
| author | Eli Zaretskii | 2010-01-09 11:27:11 -0500 |
|---|---|---|
| committer | Eli Zaretskii | 2010-01-09 11:27:11 -0500 |
| commit | 1db6ebe40405dec23b51eb8015c58be0bc46fe13 (patch) | |
| tree | 216dca55abb260d2e84840b921d9a13db0920f79 | |
| parent | 8d6a842ab025fecc9fab5665a7ac846957d0b739 (diff) | |
| parent | d427a9fad2840b356f6bb7bcb89fd654d506ed90 (diff) | |
| download | emacs-1db6ebe40405dec23b51eb8015c58be0bc46fe13.tar.gz emacs-1db6ebe40405dec23b51eb8015c58be0bc46fe13.zip | |
Merge from mainline.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/startup.el | 4 | ||||
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/editfns.c | 3 | ||||
| -rw-r--r-- | src/xfns.c | 39 |
5 files changed, 57 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 95410b9393a..70874a9c2fb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-01-09 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * startup.el (command-line-1): Use orig-argi to check for ignored X and | ||
| 4 | NS options. | ||
| 5 | |||
| 1 | 2010-01-08 Kenichi Handa <handa@m17n.org> | 6 | 2010-01-08 Kenichi Handa <handa@m17n.org> |
| 2 | 7 | ||
| 3 | * international/fontset.el (build-default-fontset-data): Exclude | 8 | * international/fontset.el (build-default-fontset-data): Exclude |
diff --git a/lisp/startup.el b/lisp/startup.el index da0264dba20..a8f2eae0613 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -2184,12 +2184,12 @@ A fancy display is used on graphic displays, normal otherwise." | |||
| 2184 | (setq cl1-line (string-to-number (match-string 1 argi)) | 2184 | (setq cl1-line (string-to-number (match-string 1 argi)) |
| 2185 | cl1-column (string-to-number (match-string 2 argi)))) | 2185 | cl1-column (string-to-number (match-string 2 argi)))) |
| 2186 | 2186 | ||
| 2187 | ((setq cl1-tem (assoc argi command-line-x-option-alist)) | 2187 | ((setq cl1-tem (assoc orig-argi command-line-x-option-alist)) |
| 2188 | ;; Ignore X-windows options and their args if not using X. | 2188 | ;; Ignore X-windows options and their args if not using X. |
| 2189 | (setq command-line-args-left | 2189 | (setq command-line-args-left |
| 2190 | (nthcdr (nth 1 cl1-tem) command-line-args-left))) | 2190 | (nthcdr (nth 1 cl1-tem) command-line-args-left))) |
| 2191 | 2191 | ||
| 2192 | ((setq cl1-tem (assoc argi command-line-ns-option-alist)) | 2192 | ((setq cl1-tem (assoc orig-argi command-line-ns-option-alist)) |
| 2193 | ;; Ignore NS-windows options and their args if not using NS. | 2193 | ;; Ignore NS-windows options and their args if not using NS. |
| 2194 | (setq command-line-args-left | 2194 | (setq command-line-args-left |
| 2195 | (nthcdr (nth 1 cl1-tem) command-line-args-left))) | 2195 | (nthcdr (nth 1 cl1-tem) command-line-args-left))) |
diff --git a/src/ChangeLog b/src/ChangeLog index 309c663d1ef..bd9c6cfbfdf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2010-01-09 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * editfns.c (Ffloat_time): Doc fix. | ||
| 4 | |||
| 5 | 2010-01-09 Jan Djärv <jan.h.d@swipnet.se> | ||
| 6 | |||
| 7 | * xfns.c (Fx_create_frame): Don't create frame larger than display | ||
| 8 | by default bug#3643. | ||
| 9 | |||
| 1 | 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 10 | 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 11 | ||
| 3 | * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro. | 12 | * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro. |
diff --git a/src/editfns.c b/src/editfns.c index 927bf50194a..cb302f7b1e7 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -1574,7 +1574,8 @@ instead of the current time. The argument should have the form | |||
| 1574 | have the form (HIGH . LOW), but this is considered obsolete. | 1574 | have the form (HIGH . LOW), but this is considered obsolete. |
| 1575 | 1575 | ||
| 1576 | WARNING: Since the result is floating point, it may not be exact. | 1576 | WARNING: Since the result is floating point, it may not be exact. |
| 1577 | Do not use this function if precise time stamps are required. */) | 1577 | If precise time stamps are required, use either `current-time', |
| 1578 | or (if you need time as a string) `format-time-string'. */) | ||
| 1578 | (specified_time) | 1579 | (specified_time) |
| 1579 | Lisp_Object specified_time; | 1580 | Lisp_Object specified_time; |
| 1580 | { | 1581 | { |
diff --git a/src/xfns.c b/src/xfns.c index 572cf38e0c7..db42e005d75 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -3396,6 +3396,45 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 3396 | /* Compute the size of the X window. */ | 3396 | /* Compute the size of the X window. */ |
| 3397 | window_prompting = x_figure_window_size (f, parms, 1); | 3397 | window_prompting = x_figure_window_size (f, parms, 1); |
| 3398 | 3398 | ||
| 3399 | /* Don't make height higher than display height unless the user asked | ||
| 3400 | for it. */ | ||
| 3401 | height = FRAME_LINES (f); | ||
| 3402 | tem = x_get_arg (dpyinfo, parms, Qheight, 0, 0, RES_TYPE_NUMBER); | ||
| 3403 | if (EQ (tem, Qunbound)) | ||
| 3404 | { | ||
| 3405 | int ph = FRAME_TEXT_LINES_TO_PIXEL_HEIGHT (f, FRAME_LINES (f)); | ||
| 3406 | int dph = DisplayHeight (FRAME_X_DISPLAY (f), FRAME_X_SCREEN_NUMBER (f)); | ||
| 3407 | if (ph > dph) | ||
| 3408 | { | ||
| 3409 | height = FRAME_PIXEL_HEIGHT_TO_TEXT_LINES (f, dph) - | ||
| 3410 | FRAME_TOOL_BAR_LINES (f) - FRAME_MENU_BAR_LINES (f); | ||
| 3411 | if (FRAME_EXTERNAL_TOOL_BAR (f)) | ||
| 3412 | height -= 2; /* We can't know how big it will be. */ | ||
| 3413 | if (FRAME_EXTERNAL_MENU_BAR (f)) | ||
| 3414 | height -= 2; /* We can't know how big it will be. */ | ||
| 3415 | } | ||
| 3416 | } | ||
| 3417 | |||
| 3418 | /* Don't make width wider than display width unless the user asked | ||
| 3419 | for it. */ | ||
| 3420 | width = FRAME_COLS (f); | ||
| 3421 | tem = x_get_arg (dpyinfo, parms, Qwidth, 0, 0, RES_TYPE_NUMBER); | ||
| 3422 | if (EQ (tem, Qunbound)) | ||
| 3423 | { | ||
| 3424 | int pw = FRAME_TEXT_COLS_TO_PIXEL_WIDTH (f, FRAME_COLS (f)); | ||
| 3425 | int dpw = DisplayWidth (FRAME_X_DISPLAY (f), FRAME_X_SCREEN_NUMBER (f)); | ||
| 3426 | if (pw > dpw) | ||
| 3427 | width = FRAME_PIXEL_WIDTH_TO_TEXT_COLS (f, dpw); | ||
| 3428 | } | ||
| 3429 | |||
| 3430 | if (height != FRAME_LINES (f) || width != FRAME_COLS (f)) | ||
| 3431 | { | ||
| 3432 | check_frame_size (f, &height, &width); | ||
| 3433 | FRAME_LINES (f) = height; | ||
| 3434 | SET_FRAME_COLS (f, width); | ||
| 3435 | } | ||
| 3436 | |||
| 3437 | |||
| 3399 | tem = x_get_arg (dpyinfo, parms, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN); | 3438 | tem = x_get_arg (dpyinfo, parms, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN); |
| 3400 | f->no_split = minibuffer_only || EQ (tem, Qt); | 3439 | f->no_split = minibuffer_only || EQ (tem, Qt); |
| 3401 | 3440 | ||