[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/keyboard.c
From: |
Kim F. Storm |
Subject: |
[Emacs-diffs] Changes to emacs/src/keyboard.c |
Date: |
Wed, 20 Feb 2002 09:51:47 -0500 |
Index: emacs/src/keyboard.c
diff -c emacs/src/keyboard.c:1.656 emacs/src/keyboard.c:1.657
*** emacs/src/keyboard.c:1.656 Sat Feb 16 04:51:31 2002
--- emacs/src/keyboard.c Wed Feb 20 09:51:46 2002
***************
*** 6496,6513 ****
}
else
{
! /* No, so use major and minor mode keymaps and keymap property. */
! int extra_maps = 2;
! Lisp_Object map = get_local_map (PT, current_buffer, Qkeymap);
! if (!NILP (map))
! extra_maps = 3;
nmaps = current_minor_maps (NULL, &tmaps);
! maps = (Lisp_Object *) alloca ((nmaps + extra_maps)
! * sizeof (maps[0]));
bcopy (tmaps, maps, nmaps * sizeof (maps[0]));
! if (!NILP (map))
! maps[nmaps++] = map;
! maps[nmaps++] = get_local_map (PT, current_buffer, Qlocal_map);
}
maps[nmaps++] = current_global_map;
}
--- 6496,6509 ----
}
else
{
! /* No, so use major and minor mode keymaps.
! Don't include local-map or keymap properties, as menu-bar
! bindings are not supported in those maps (that would require
! checking for menu-bar updates after every command). */
nmaps = current_minor_maps (NULL, &tmaps);
! maps = (Lisp_Object *) alloca ((nmaps + 2) * sizeof (maps[0]));
bcopy (tmaps, maps, nmaps * sizeof (maps[0]));
! maps[nmaps++] = current_buffer->keymap;
}
maps[nmaps++] = current_global_map;
}
***************
*** 7148,7165 ****
}
else
{
! /* No, so use major and minor mode keymaps and keymap property. */
! int extra_maps = 2;
! Lisp_Object map = get_local_map (PT, current_buffer, Qkeymap);
! if (!NILP (map))
! extra_maps = 3;
nmaps = current_minor_maps (NULL, &tmaps);
! maps = (Lisp_Object *) alloca ((nmaps + extra_maps)
! * sizeof (maps[0]));
bcopy (tmaps, maps, nmaps * sizeof (maps[0]));
! if (!NILP (map))
! maps[nmaps++] = map;
! maps[nmaps++] = get_local_map (PT, current_buffer, Qlocal_map);
}
/* Add global keymap at the end. */
--- 7144,7157 ----
}
else
{
! /* No, so use major and minor mode keymaps.
! Don't include local-map or keymap properties, as tool-bar
! bindings are not supported in those maps (that would require
! checking for tool-bar updates after every command). */
nmaps = current_minor_maps (NULL, &tmaps);
! maps = (Lisp_Object *) alloca ((nmaps + 2) * sizeof (maps[0]));
bcopy (tmaps, maps, nmaps * sizeof (maps[0]));
! maps[nmaps++] = current_buffer->keymap;
}
/* Add global keymap at the end. */
***************
*** 9479,9527 ****
RETURN_UNGCPRO (value);
}
- /* Find the set of keymaps now active.
- Store into *MAPS_P a vector holding the various maps
- and return the number of them. The vector was malloc'd
- and the caller should free it. */
-
- int
- current_active_maps (maps_p)
- Lisp_Object **maps_p;
- {
- Lisp_Object *tmaps, *maps;
- int nmaps;
-
- /* Should overriding-terminal-local-map and overriding-local-map apply? */
- if (!NILP (Voverriding_local_map_menu_flag))
- {
- /* Yes, use them (if non-nil) as well as the global map. */
- maps = (Lisp_Object *) xmalloc (3 * sizeof (maps[0]));
- nmaps = 0;
- if (!NILP (current_kboard->Voverriding_terminal_local_map))
- maps[nmaps++] = current_kboard->Voverriding_terminal_local_map;
- if (!NILP (Voverriding_local_map))
- maps[nmaps++] = Voverriding_local_map;
- }
- else
- {
- /* No, so use major and minor mode keymaps and keymap property. */
- int extra_maps = 2;
- Lisp_Object map = get_local_map (PT, current_buffer, Qkeymap);
- if (!NILP (map))
- extra_maps = 3;
- nmaps = current_minor_maps (NULL, &tmaps);
- maps = (Lisp_Object *) alloca ((nmaps + extra_maps)
- * sizeof (maps[0]));
- bcopy (tmaps, maps, nmaps * sizeof (maps[0]));
- if (!NILP (map))
- maps[nmaps++] = map;
- maps[nmaps++] = get_local_map (PT, current_buffer, Qlocal_map);
- }
- maps[nmaps++] = current_global_map;
-
- *maps_p = maps;
- return nmaps;
- }
/* Return nonzero if input events are pending. */
--- 9471,9476 ----
- [Emacs-diffs] Changes to emacs/src/keyboard.c, Pavel Janík, 2002/02/02
- [Emacs-diffs] Changes to emacs/src/keyboard.c, Pavel Janík, 2002/02/06
- [Emacs-diffs] Changes to emacs/src/keyboard.c, Kim F. Storm, 2002/02/06
- [Emacs-diffs] Changes to emacs/src/keyboard.c, Richard M. Stallman, 2002/02/13
- [Emacs-diffs] Changes to emacs/src/keyboard.c, Pavel Janík, 2002/02/16
- [Emacs-diffs] Changes to emacs/src/keyboard.c,
Kim F. Storm <=
- [Emacs-diffs] Changes to emacs/src/keyboard.c, Kim F. Storm, 2002/02/20
- [Emacs-diffs] Changes to emacs/src/keyboard.c, Kim F. Storm, 2002/02/23
- [Emacs-diffs] Changes to emacs/src/keyboard.c, Kenichi Handa, 2002/02/28