diff options
| author | Stefan Monnier | 2006-03-29 08:00:23 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2006-03-29 08:00:23 +0000 |
| commit | 293bd733237d2a0658dbd9098d819954e3386e6e (patch) | |
| tree | 0cbdbeb8d734f8279639b20ed62744e1ecb41fc8 /src | |
| parent | bdba217b303242c4556aec783fbb080092458a1d (diff) | |
| download | emacs-293bd733237d2a0658dbd9098d819954e3386e6e.tar.gz emacs-293bd733237d2a0658dbd9098d819954e3386e6e.zip | |
(tool_bar_items): Use map_keymap.
(process_tool_bar_item): Add dummy args to fit the required interface.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 16 | ||||
| -rw-r--r-- | src/keyboard.c | 19 |
2 files changed, 15 insertions, 20 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index bc9a29f8978..cce64d4572d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * keyboard.c (tool_bar_items): Use map_keymap. | ||
| 4 | (process_tool_bar_item): Add dummy args to fit the required interface. | ||
| 5 | |||
| 1 | 2006-03-25 Eli Zaretskii <eliz@gnu.org> | 6 | 2006-03-25 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag | 8 | * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag |
| @@ -13,8 +18,7 @@ | |||
| 13 | (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900. | 18 | (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900. |
| 14 | (Fdecode_time): Cast tm_year to EMACS_INT. | 19 | (Fdecode_time): Cast tm_year to EMACS_INT. |
| 15 | (Fcurrent_time_string): Report an invalid time specification if | 20 | (Fcurrent_time_string): Report an invalid time specification if |
| 16 | the argument is invalid. Also, check for out-of-range time | 21 | the argument is invalid. Also, check for out-of-range time stamps. |
| 17 | stamps. | ||
| 18 | 22 | ||
| 19 | 2006-03-24 Kim F. Storm <storm@cua.dk> | 23 | 2006-03-24 Kim F. Storm <storm@cua.dk> |
| 20 | 24 | ||
| @@ -54,8 +58,8 @@ | |||
| 54 | 58 | ||
| 55 | 2006-03-21 Ken Raeburn <raeburn@raeburn.org> | 59 | 2006-03-21 Ken Raeburn <raeburn@raeburn.org> |
| 56 | 60 | ||
| 57 | * xdisp.c (store_next_glyph): Renamed from append_glyph. | 61 | * xdisp.c (store_next_glyph): Rename from append_glyph. |
| 58 | (generate_stretch_glyph): Renamed from produce_stretch_glyph. | 62 | (generate_stretch_glyph): Rename from produce_stretch_glyph. |
| 59 | All callers changed accordingly. | 63 | All callers changed accordingly. |
| 60 | 64 | ||
| 61 | 2006-03-21 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 65 | 2006-03-21 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| @@ -896,8 +900,8 @@ | |||
| 896 | 900 | ||
| 897 | * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries. | 901 | * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries. |
| 898 | (find_field): Set before_field to after_field when pos is at BEGV. | 902 | (find_field): Set before_field to after_field when pos is at BEGV. |
| 899 | (Fline_beginning_position, Fline_end_position): Clarify | 903 | (Fline_beginning_position, Fline_end_position): |
| 900 | confusing doc string. | 904 | Clarify confusing doc string. |
| 901 | 905 | ||
| 902 | * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc | 906 | * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc |
| 903 | string. | 907 | string. |
diff --git a/src/keyboard.c b/src/keyboard.c index a1b8ad34b07..5da1b79ff68 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -7581,7 +7581,7 @@ Lisp_Object QCimage; | |||
| 7581 | /* Function prototypes. */ | 7581 | /* Function prototypes. */ |
| 7582 | 7582 | ||
| 7583 | static void init_tool_bar_items P_ ((Lisp_Object)); | 7583 | static void init_tool_bar_items P_ ((Lisp_Object)); |
| 7584 | static void process_tool_bar_item P_ ((Lisp_Object, Lisp_Object)); | 7584 | static void process_tool_bar_item P_ ((Lisp_Object, Lisp_Object, void*, Lisp_Object)); |
| 7585 | static int parse_tool_bar_item P_ ((Lisp_Object, Lisp_Object)); | 7585 | static int parse_tool_bar_item P_ ((Lisp_Object, Lisp_Object)); |
| 7586 | static void append_tool_bar_item P_ ((void)); | 7586 | static void append_tool_bar_item P_ ((void)); |
| 7587 | 7587 | ||
| @@ -7659,17 +7659,7 @@ tool_bar_items (reuse, nitems) | |||
| 7659 | 7659 | ||
| 7660 | keymap = get_keymap (access_keymap (maps[i], Qtool_bar, 1, 0, 1), 0, 1); | 7660 | keymap = get_keymap (access_keymap (maps[i], Qtool_bar, 1, 0, 1), 0, 1); |
| 7661 | if (CONSP (keymap)) | 7661 | if (CONSP (keymap)) |
| 7662 | { | 7662 | map_keymap (keymap, process_tool_bar_item, Qnil, NULL, 1); |
| 7663 | Lisp_Object tail; | ||
| 7664 | |||
| 7665 | /* KEYMAP is a list `(keymap (KEY . BINDING) ...)'. */ | ||
| 7666 | for (tail = keymap; CONSP (tail); tail = XCDR (tail)) | ||
| 7667 | { | ||
| 7668 | Lisp_Object keydef = XCAR (tail); | ||
| 7669 | if (CONSP (keydef)) | ||
| 7670 | process_tool_bar_item (XCAR (keydef), XCDR (keydef)); | ||
| 7671 | } | ||
| 7672 | } | ||
| 7673 | } | 7663 | } |
| 7674 | 7664 | ||
| 7675 | Vinhibit_quit = oquit; | 7665 | Vinhibit_quit = oquit; |
| @@ -7681,8 +7671,9 @@ tool_bar_items (reuse, nitems) | |||
| 7681 | /* Process the definition of KEY which is DEF. */ | 7671 | /* Process the definition of KEY which is DEF. */ |
| 7682 | 7672 | ||
| 7683 | static void | 7673 | static void |
| 7684 | process_tool_bar_item (key, def) | 7674 | process_tool_bar_item (key, def, args, data) |
| 7685 | Lisp_Object key, def; | 7675 | Lisp_Object key, def, data; |
| 7676 | void *args; | ||
| 7686 | { | 7677 | { |
| 7687 | int i; | 7678 | int i; |
| 7688 | extern Lisp_Object Qundefined; | 7679 | extern Lisp_Object Qundefined; |