diff options
| author | Miles Bader | 2007-08-21 04:55:30 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-08-21 04:55:30 +0000 |
| commit | 1fb072d1dff954c21d4805196df62c8eeead301c (patch) | |
| tree | da374db1a51e2a355b46f26a1c99e1ac5db5dca4 /src | |
| parent | aaf34461ff5804e5cebe163b31e535da72e81d87 (diff) | |
| parent | bdaf8a62d53cf8d5a0dc4f0dc530ecd6fc1f44fe (diff) | |
| download | emacs-1fb072d1dff954c21d4805196df62c8eeead301c.tar.gz emacs-1fb072d1dff954c21d4805196df62c8eeead301c.zip | |
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 852-856)
- Update from CVS
- Merge from emacs--rel--22
* emacs--rel--22 (patch 93-96)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 245)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--multi-tty--0--patch-32
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 26 | ||||
| -rw-r--r-- | src/alloc.c | 2 | ||||
| -rw-r--r-- | src/emacs.c | 5 | ||||
| -rw-r--r-- | src/eval.c | 10 | ||||
| -rw-r--r-- | src/insdel.c | 9 | ||||
| -rw-r--r-- | src/minibuf.c | 41 | ||||
| -rw-r--r-- | src/term.c | 13 | ||||
| -rw-r--r-- | src/xterm.c | 34 |
8 files changed, 90 insertions, 50 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e3c212924b3..3962c174970 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,29 @@ | |||
| 1 | 2007-08-19 Richard Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * eval.c (Ffunction, Fquote): Signal error if not 1 argument. | ||
| 4 | |||
| 5 | 2007-08-19 Andreas Schwab <schwab@suse.de> | ||
| 6 | |||
| 7 | * alloc.c (pure): Round PURESIZE up. | ||
| 8 | |||
| 9 | 2007-08-17 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | ||
| 10 | |||
| 11 | * xterm.c (handle_one_xevent): Remove check that mouse click is in | ||
| 12 | active frame. | ||
| 13 | |||
| 14 | 2007-08-16 Richard Stallman <rms@gnu.org> | ||
| 15 | |||
| 16 | * eval.c (Fcommandp): Add parens to clarify. | ||
| 17 | |||
| 18 | * minibuf.c (Fall_completions): Use enum for type of table. | ||
| 19 | |||
| 20 | * emacs.c (USAGE2): Improve text. | ||
| 21 | |||
| 22 | 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int> | ||
| 23 | |||
| 24 | * term.c (tty_default_color_capabilities): Declare static | ||
| 25 | variables in file scope, to avoid HPUX compiler problem. | ||
| 26 | |||
| 1 | 2007-08-13 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 27 | 2007-08-13 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| 2 | 28 | ||
| 3 | * gtkutil.c (update_frame_tool_bar): Use -1 as index | 29 | * gtkutil.c (update_frame_tool_bar): Use -1 as index |
diff --git a/src/alloc.c b/src/alloc.c index 3f081491e85..8aea81a0f72 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -266,7 +266,7 @@ Lisp_Object Vmemory_full; | |||
| 266 | remapping on more recent systems because this is less important | 266 | remapping on more recent systems because this is less important |
| 267 | nowadays than in the days of small memories and timesharing. */ | 267 | nowadays than in the days of small memories and timesharing. */ |
| 268 | 268 | ||
| 269 | EMACS_INT pure[PURESIZE / sizeof (EMACS_INT)] = {1,}; | 269 | EMACS_INT pure[(PURESIZE + sizeof (EMACS_INT) - 1) / sizeof (EMACS_INT)] = {1,}; |
| 270 | #define PUREBEG (char *) pure | 270 | #define PUREBEG (char *) pure |
| 271 | 271 | ||
| 272 | #else /* HAVE_SHM */ | 272 | #else /* HAVE_SHM */ |
diff --git a/src/emacs.c b/src/emacs.c index e23f8083a31..55475e57799 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -281,9 +281,8 @@ Initialization options:\n\ | |||
| 281 | Action options:\n\ | 281 | Action options:\n\ |
| 282 | \n\ | 282 | \n\ |
| 283 | FILE visit FILE using find-file\n\ | 283 | FILE visit FILE using find-file\n\ |
| 284 | +LINE FILE visit FILE using find-file, then go to line LINE\n\ | 284 | +LINE go to line LINE in next FILE\n\ |
| 285 | +LINE:COLUMN FILE visit FILE using find-file, then go to line LINE,\n\ | 285 | +LINE:COLUMN go to line LINE, column COLUMN, in next FILE\n\ |
| 286 | column COLUMN\n\ | ||
| 287 | --directory, -L DIR add DIR to variable load-path\n\ | 286 | --directory, -L DIR add DIR to variable load-path\n\ |
| 288 | --eval EXPR evaluate Emacs Lisp expression EXPR\n\ | 287 | --eval EXPR evaluate Emacs Lisp expression EXPR\n\ |
| 289 | --execute EXPR evaluate Emacs Lisp expression EXPR\n\ | 288 | --execute EXPR evaluate Emacs Lisp expression EXPR\n\ |
diff --git a/src/eval.c b/src/eval.c index 13ea0ba7ebf..830476a61bc 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -202,6 +202,8 @@ Lisp_Object Vmacro_declaration_function; | |||
| 202 | 202 | ||
| 203 | extern Lisp_Object Qrisky_local_variable; | 203 | extern Lisp_Object Qrisky_local_variable; |
| 204 | 204 | ||
| 205 | extern Lisp_Object Qfunction; | ||
| 206 | |||
| 205 | static Lisp_Object funcall_lambda P_ ((Lisp_Object, int, Lisp_Object*)); | 207 | static Lisp_Object funcall_lambda P_ ((Lisp_Object, int, Lisp_Object*)); |
| 206 | static void unwind_to_catch P_ ((struct catchtag *, Lisp_Object)) NO_RETURN; | 208 | static void unwind_to_catch P_ ((struct catchtag *, Lisp_Object)) NO_RETURN; |
| 207 | 209 | ||
| @@ -539,7 +541,7 @@ usage: (setq [SYM VAL]...) */) | |||
| 539 | register Lisp_Object val, sym; | 541 | register Lisp_Object val, sym; |
| 540 | struct gcpro gcpro1; | 542 | struct gcpro gcpro1; |
| 541 | 543 | ||
| 542 | if (NILP(args)) | 544 | if (NILP (args)) |
| 543 | return Qnil; | 545 | return Qnil; |
| 544 | 546 | ||
| 545 | args_left = args; | 547 | args_left = args; |
| @@ -564,6 +566,8 @@ usage: (quote ARG) */) | |||
| 564 | (args) | 566 | (args) |
| 565 | Lisp_Object args; | 567 | Lisp_Object args; |
| 566 | { | 568 | { |
| 569 | if (!NILP (Fcdr (args))) | ||
| 570 | xsignal2 (Qwrong_number_of_arguments, Qquote, Flength (args)); | ||
| 567 | return Fcar (args); | 571 | return Fcar (args); |
| 568 | } | 572 | } |
| 569 | 573 | ||
| @@ -575,6 +579,8 @@ usage: (function ARG) */) | |||
| 575 | (args) | 579 | (args) |
| 576 | Lisp_Object args; | 580 | Lisp_Object args; |
| 577 | { | 581 | { |
| 582 | if (!NILP (Fcdr (args))) | ||
| 583 | xsignal2 (Qwrong_number_of_arguments, Qfunction, Flength (args)); | ||
| 578 | return Fcar (args); | 584 | return Fcar (args); |
| 579 | } | 585 | } |
| 580 | 586 | ||
| @@ -2083,7 +2089,7 @@ then strings and vectors are not accepted. */) | |||
| 2083 | 2089 | ||
| 2084 | /* Strings and vectors are keyboard macros. */ | 2090 | /* Strings and vectors are keyboard macros. */ |
| 2085 | if (STRINGP (fun) || VECTORP (fun)) | 2091 | if (STRINGP (fun) || VECTORP (fun)) |
| 2086 | return NILP (for_call_interactively) ? Qt : Qnil; | 2092 | return (NILP (for_call_interactively) ? Qt : Qnil); |
| 2087 | 2093 | ||
| 2088 | /* Lists may represent commands. */ | 2094 | /* Lists may represent commands. */ |
| 2089 | if (!CONSP (fun)) | 2095 | if (!CONSP (fun)) |
diff --git a/src/insdel.c b/src/insdel.c index 19823623091..cd8e2738f9a 100644 --- a/src/insdel.c +++ b/src/insdel.c | |||
| @@ -2138,10 +2138,11 @@ prepare_to_modify_buffer (start, end, preserve_ptr) | |||
| 2138 | (! NILP (end_marker) ? Fmarker_position (end_marker) : end) | 2138 | (! NILP (end_marker) ? Fmarker_position (end_marker) : end) |
| 2139 | 2139 | ||
| 2140 | /* Set a variable to nil if an error occurred. | 2140 | /* Set a variable to nil if an error occurred. |
| 2141 | VAL is a cons-cell whose car is the variable name, and whose cdr is | 2141 | Don't change the variable if there was no error. |
| 2142 | either nil (to mean that there was indeed an error), or non-nil to mean | 2142 | VAL is a cons-cell (VARIABLE . NO-ERROR-FLAG). |
| 2143 | that the was no error (which thus causes this function to do | 2143 | VARIABLE is the variable to maybe set to nil. |
| 2144 | nothing). */ | 2144 | NO-ERROR-FLAG is nil if there was an error, |
| 2145 | anything else meaning no error (so this function does nothing). */ | ||
| 2145 | Lisp_Object | 2146 | Lisp_Object |
| 2146 | reset_var_on_error (val) | 2147 | reset_var_on_error (val) |
| 2147 | Lisp_Object val; | 2148 | Lisp_Object val; |
diff --git a/src/minibuf.c b/src/minibuf.c index c84c83c1c8e..489c714fcb4 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -1294,11 +1294,14 @@ is used to further constrain the set of candidates. */) | |||
| 1294 | int bestmatchsize = 0; | 1294 | int bestmatchsize = 0; |
| 1295 | /* These are in bytes, too. */ | 1295 | /* These are in bytes, too. */ |
| 1296 | int compare, matchsize; | 1296 | int compare, matchsize; |
| 1297 | int type = (HASH_TABLE_P (collection) ? 3 | 1297 | enum { function_table, list_table, obarray_table, hash_table} |
| 1298 | : VECTORP (collection) ? 2 | 1298 | type = (HASH_TABLE_P (collection) ? hash_table |
| 1299 | : NILP (collection) || (CONSP (collection) | 1299 | : VECTORP (collection) ? obarray_table |
| 1300 | && (!SYMBOLP (XCAR (collection)) | 1300 | : ((NILP (collection) |
| 1301 | || NILP (XCAR (collection))))); | 1301 | || (CONSP (collection) |
| 1302 | && (!SYMBOLP (XCAR (collection)) | ||
| 1303 | || NILP (XCAR (collection))))) | ||
| 1304 | ? list_table : function_table)); | ||
| 1302 | int index = 0, obsize = 0; | 1305 | int index = 0, obsize = 0; |
| 1303 | int matchcount = 0; | 1306 | int matchcount = 0; |
| 1304 | int bindcount = -1; | 1307 | int bindcount = -1; |
| @@ -1306,7 +1309,7 @@ is used to further constrain the set of candidates. */) | |||
| 1306 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; | 1309 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; |
| 1307 | 1310 | ||
| 1308 | CHECK_STRING (string); | 1311 | CHECK_STRING (string); |
| 1309 | if (type == 0) | 1312 | if (type == function_table) |
| 1310 | return call3 (collection, string, predicate, Qnil); | 1313 | return call3 (collection, string, predicate, Qnil); |
| 1311 | 1314 | ||
| 1312 | bestmatch = bucket = Qnil; | 1315 | bestmatch = bucket = Qnil; |
| @@ -1314,7 +1317,7 @@ is used to further constrain the set of candidates. */) | |||
| 1314 | 1317 | ||
| 1315 | /* If COLLECTION is not a list, set TAIL just for gc pro. */ | 1318 | /* If COLLECTION is not a list, set TAIL just for gc pro. */ |
| 1316 | tail = collection; | 1319 | tail = collection; |
| 1317 | if (type == 2) | 1320 | if (type == obarray_table) |
| 1318 | { | 1321 | { |
| 1319 | collection = check_obarray (collection); | 1322 | collection = check_obarray (collection); |
| 1320 | obsize = XVECTOR (collection)->size; | 1323 | obsize = XVECTOR (collection)->size; |
| @@ -1328,7 +1331,7 @@ is used to further constrain the set of candidates. */) | |||
| 1328 | /* elt gets the alist element or symbol. | 1331 | /* elt gets the alist element or symbol. |
| 1329 | eltstring gets the name to check as a completion. */ | 1332 | eltstring gets the name to check as a completion. */ |
| 1330 | 1333 | ||
| 1331 | if (type == 1) | 1334 | if (type == list_table) |
| 1332 | { | 1335 | { |
| 1333 | if (!CONSP (tail)) | 1336 | if (!CONSP (tail)) |
| 1334 | break; | 1337 | break; |
| @@ -1336,7 +1339,7 @@ is used to further constrain the set of candidates. */) | |||
| 1336 | eltstring = CONSP (elt) ? XCAR (elt) : elt; | 1339 | eltstring = CONSP (elt) ? XCAR (elt) : elt; |
| 1337 | tail = XCDR (tail); | 1340 | tail = XCDR (tail); |
| 1338 | } | 1341 | } |
| 1339 | else if (type == 2) | 1342 | else if (type == obarray_table) |
| 1340 | { | 1343 | { |
| 1341 | if (!EQ (bucket, zero)) | 1344 | if (!EQ (bucket, zero)) |
| 1342 | { | 1345 | { |
| @@ -1357,7 +1360,7 @@ is used to further constrain the set of candidates. */) | |||
| 1357 | continue; | 1360 | continue; |
| 1358 | } | 1361 | } |
| 1359 | } | 1362 | } |
| 1360 | else /* if (type == 3) */ | 1363 | else /* if (type == hash_table) */ |
| 1361 | { | 1364 | { |
| 1362 | while (index < HASH_TABLE_SIZE (XHASH_TABLE (collection)) | 1365 | while (index < HASH_TABLE_SIZE (XHASH_TABLE (collection)) |
| 1363 | && NILP (HASH_HASH (XHASH_TABLE (collection), index))) | 1366 | && NILP (HASH_HASH (XHASH_TABLE (collection), index))) |
| @@ -1411,15 +1414,17 @@ is used to further constrain the set of candidates. */) | |||
| 1411 | tem = Fcommandp (elt, Qnil); | 1414 | tem = Fcommandp (elt, Qnil); |
| 1412 | else | 1415 | else |
| 1413 | { | 1416 | { |
| 1414 | if (bindcount >= 0) { | 1417 | if (bindcount >= 0) |
| 1415 | unbind_to (bindcount, Qnil); | 1418 | { |
| 1416 | bindcount = -1; | 1419 | unbind_to (bindcount, Qnil); |
| 1417 | } | 1420 | bindcount = -1; |
| 1421 | } | ||
| 1418 | GCPRO4 (tail, string, eltstring, bestmatch); | 1422 | GCPRO4 (tail, string, eltstring, bestmatch); |
| 1419 | tem = type == 3 | 1423 | tem = (type == hash_table |
| 1420 | ? call2 (predicate, elt, | 1424 | ? call2 (predicate, elt, |
| 1421 | HASH_VALUE (XHASH_TABLE (collection), index - 1)) | 1425 | HASH_VALUE (XHASH_TABLE (collection), |
| 1422 | : call1 (predicate, elt); | 1426 | index - 1)) |
| 1427 | : call1 (predicate, elt)); | ||
| 1423 | UNGCPRO; | 1428 | UNGCPRO; |
| 1424 | } | 1429 | } |
| 1425 | if (NILP (tem)) continue; | 1430 | if (NILP (tem)) continue; |
diff --git a/src/term.c b/src/term.c index 5d8e0f2a61f..c906e1eb15a 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -1967,14 +1967,21 @@ is not on a tty device. */) | |||
| 1967 | 1967 | ||
| 1968 | #ifndef WINDOWSNT | 1968 | #ifndef WINDOWSNT |
| 1969 | 1969 | ||
| 1970 | /* Declare here rather than in the function, as in the rest of Emacs, | ||
| 1971 | to work around an HPUX compiler bug (?). See | ||
| 1972 | http://lists.gnu.org/archive/html/emacs-devel/2007-08/msg00410.html */ | ||
| 1973 | static int default_max_colors; | ||
| 1974 | static int default_max_pairs; | ||
| 1975 | static int default_no_color_video; | ||
| 1976 | static char *default_orig_pair; | ||
| 1977 | static char *default_set_foreground; | ||
| 1978 | static char *default_set_background; | ||
| 1979 | |||
| 1970 | /* Save or restore the default color-related capabilities of this | 1980 | /* Save or restore the default color-related capabilities of this |
| 1971 | terminal. */ | 1981 | terminal. */ |
| 1972 | static void | 1982 | static void |
| 1973 | tty_default_color_capabilities (struct tty_display_info *tty, int save) | 1983 | tty_default_color_capabilities (struct tty_display_info *tty, int save) |
| 1974 | { | 1984 | { |
| 1975 | static char | ||
| 1976 | *default_orig_pair, *default_set_foreground, *default_set_background; | ||
| 1977 | static int default_max_colors, default_max_pairs, default_no_color_video; | ||
| 1978 | 1985 | ||
| 1979 | if (save) | 1986 | if (save) |
| 1980 | { | 1987 | { |
diff --git a/src/xterm.c b/src/xterm.c index 1ced63932e5..0e56b04c1b0 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -6866,27 +6866,23 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit) | |||
| 6866 | } | 6866 | } |
| 6867 | 6867 | ||
| 6868 | if (!tool_bar_p) | 6868 | if (!tool_bar_p) |
| 6869 | if (!dpyinfo->x_focus_frame | ||
| 6870 | || f == dpyinfo->x_focus_frame) | ||
| 6871 | { | ||
| 6872 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) | 6869 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) |
| 6873 | if (! popup_activated ()) | 6870 | if (! popup_activated ()) |
| 6874 | #endif | 6871 | #endif |
| 6875 | { | 6872 | { |
| 6876 | if (ignore_next_mouse_click_timeout) | 6873 | if (ignore_next_mouse_click_timeout) |
| 6877 | { | 6874 | { |
| 6878 | if (event.type == ButtonPress | 6875 | if (event.type == ButtonPress |
| 6879 | && (int)(event.xbutton.time - ignore_next_mouse_click_timeout) > 0) | 6876 | && (int)(event.xbutton.time - ignore_next_mouse_click_timeout) > 0) |
| 6880 | { | 6877 | { |
| 6881 | ignore_next_mouse_click_timeout = 0; | 6878 | ignore_next_mouse_click_timeout = 0; |
| 6882 | construct_mouse_click (&inev.ie, &event.xbutton, f); | 6879 | construct_mouse_click (&inev.ie, &event.xbutton, f); |
| 6883 | } | 6880 | } |
| 6884 | if (event.type == ButtonRelease) | 6881 | if (event.type == ButtonRelease) |
| 6885 | ignore_next_mouse_click_timeout = 0; | 6882 | ignore_next_mouse_click_timeout = 0; |
| 6886 | } | 6883 | } |
| 6887 | else | 6884 | else |
| 6888 | construct_mouse_click (&inev.ie, &event.xbutton, f); | 6885 | construct_mouse_click (&inev.ie, &event.xbutton, f); |
| 6889 | } | ||
| 6890 | } | 6886 | } |
| 6891 | } | 6887 | } |
| 6892 | else | 6888 | else |