diff options
| author | Dan Nicolaescu | 2009-11-21 02:33:45 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2009-11-21 02:33:45 +0000 |
| commit | b0ca0f33f7a256b1d7791ff2598ed2272b34abb1 (patch) | |
| tree | 098d5d5fdd9284170dde866e859f4d7612fa0830 /src | |
| parent | e572025ff11352705a5145cf77cdf6227f36d4b4 (diff) | |
| download | emacs-b0ca0f33f7a256b1d7791ff2598ed2272b34abb1.tar.gz emacs-b0ca0f33f7a256b1d7791ff2598ed2272b34abb1.zip | |
* xterm.c (x_new_font):
* print.c (print_object):
* cmds.c (Fself_insert_command): Move declarations before statements.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/cmds.c | 2 | ||||
| -rw-r--r-- | src/print.c | 7 | ||||
| -rw-r--r-- | src/xterm.c | 8 |
4 files changed, 15 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index acfffd39d7a..452cee484f2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * xterm.c (x_new_font): | ||
| 4 | * print.c (print_object): | ||
| 5 | * cmds.c (Fself_insert_command): Move declarations before statements. | ||
| 6 | |||
| 1 | 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change) | 7 | 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change) |
| 2 | 8 | ||
| 3 | * s/cygwin.h: Remove unneeded linker flags. | 9 | * s/cygwin.h: Remove unneeded linker flags. |
diff --git a/src/cmds.c b/src/cmds.c index 69b967aa7e2..008fd6b82c2 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -330,8 +330,8 @@ After insertion, the value of `auto-fill-function' is called if the | |||
| 330 | (n) | 330 | (n) |
| 331 | Lisp_Object n; | 331 | Lisp_Object n; |
| 332 | { | 332 | { |
| 333 | CHECK_NUMBER (n); | ||
| 334 | int remove_boundary = 1; | 333 | int remove_boundary = 1; |
| 334 | CHECK_NUMBER (n); | ||
| 335 | 335 | ||
| 336 | if (!EQ (Vthis_command, current_kboard->Vlast_command)) | 336 | if (!EQ (Vthis_command, current_kboard->Vlast_command)) |
| 337 | nonundocount = 0; | 337 | nonundocount = 0; |
diff --git a/src/print.c b/src/print.c index 24d497ed365..613660b582c 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -2034,6 +2034,7 @@ print_object (obj, printcharfun, escapeflag) | |||
| 2034 | else if (HASH_TABLE_P (obj)) | 2034 | else if (HASH_TABLE_P (obj)) |
| 2035 | { | 2035 | { |
| 2036 | struct Lisp_Hash_Table *h = XHASH_TABLE (obj); | 2036 | struct Lisp_Hash_Table *h = XHASH_TABLE (obj); |
| 2037 | int i, real_size, size; | ||
| 2037 | #if 0 | 2038 | #if 0 |
| 2038 | strout ("#<hash-table", -1, -1, printcharfun, 0); | 2039 | strout ("#<hash-table", -1, -1, printcharfun, 0); |
| 2039 | if (SYMBOLP (h->test)) | 2040 | if (SYMBOLP (h->test)) |
| @@ -2086,10 +2087,8 @@ print_object (obj, printcharfun, escapeflag) | |||
| 2086 | strout (" data ", -1, -1, printcharfun, 0); | 2087 | strout (" data ", -1, -1, printcharfun, 0); |
| 2087 | 2088 | ||
| 2088 | /* Print the data here as a plist. */ | 2089 | /* Print the data here as a plist. */ |
| 2089 | int i; | 2090 | real_size = HASH_TABLE_SIZE (h); |
| 2090 | 2091 | size = real_size; | |
| 2091 | int real_size = HASH_TABLE_SIZE (h); | ||
| 2092 | int size = real_size; | ||
| 2093 | 2092 | ||
| 2094 | /* Don't print more elements than the specified maximum. */ | 2093 | /* Don't print more elements than the specified maximum. */ |
| 2095 | if (NATNUMP (Vprint_length) | 2094 | if (NATNUMP (Vprint_length) |
diff --git a/src/xterm.c b/src/xterm.c index 3349dc05b95..c4cf3de12fc 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -8054,7 +8054,9 @@ x_new_font (f, font_object, fontset) | |||
| 8054 | problems because the tip frame has no widget. */ | 8054 | problems because the tip frame has no widget. */ |
| 8055 | if (NILP (tip_frame) || XFRAME (tip_frame) != f) | 8055 | if (NILP (tip_frame) || XFRAME (tip_frame) != f) |
| 8056 | { | 8056 | { |
| 8057 | /* When the frame is maximized/fullscreen or running under for | 8057 | int rows, cols; |
| 8058 | |||
| 8059 | /* When the frame is maximized/fullscreen or running under for | ||
| 8058 | example Xmonad, x_set_window_size will be a no-op. | 8060 | example Xmonad, x_set_window_size will be a no-op. |
| 8059 | In that case, the right thing to do is extend rows/cols to | 8061 | In that case, the right thing to do is extend rows/cols to |
| 8060 | the current frame size. We do that first if x_set_window_size | 8062 | the current frame size. We do that first if x_set_window_size |
| @@ -8067,8 +8069,8 @@ x_new_font (f, font_object, fontset) | |||
| 8067 | is however. */ | 8069 | is however. */ |
| 8068 | pixelh -= FRAME_MENUBAR_HEIGHT (f); | 8070 | pixelh -= FRAME_MENUBAR_HEIGHT (f); |
| 8069 | #endif | 8071 | #endif |
| 8070 | int rows = FRAME_PIXEL_HEIGHT_TO_TEXT_LINES (f, pixelh); | 8072 | rows = FRAME_PIXEL_HEIGHT_TO_TEXT_LINES (f, pixelh); |
| 8071 | int cols = FRAME_PIXEL_WIDTH_TO_TEXT_COLS (f, FRAME_PIXEL_WIDTH (f)); | 8073 | cols = FRAME_PIXEL_WIDTH_TO_TEXT_COLS (f, FRAME_PIXEL_WIDTH (f)); |
| 8072 | 8074 | ||
| 8073 | change_frame_size (f, rows, cols, 0, 1, 0); | 8075 | change_frame_size (f, rows, cols, 0, 1, 0); |
| 8074 | x_set_window_size (f, 0, FRAME_COLS (f), FRAME_LINES (f)); | 8076 | x_set_window_size (f, 0, FRAME_COLS (f), FRAME_LINES (f)); |