merge trunk
This commit is contained in:
commit
e1ffae3bb6
87 changed files with 1767 additions and 2947 deletions
|
@ -1,5 +1,9 @@
|
|||
2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
|
||||
|
||||
* configure.in: Use -Wold-style-definition if available.
|
||||
This helps with the transition to standard C code, it can be
|
||||
removed when done.
|
||||
|
||||
* configure.in (PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS): Remove.
|
||||
|
||||
* configure.in (UNEXEC_OBJ): Add comment about values for MSDOS
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2010-07-08 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* MAINTAINERS: Update my responsibilities.
|
||||
|
||||
2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
|
||||
|
||||
* CPP-DEFINES (BCOPY_DOWNWARD_SAFE, BCOPY_UPWARD_SAFE)
|
||||
|
|
|
@ -23,6 +23,11 @@ Jason Rumney
|
|||
W32
|
||||
|
||||
Eli Zaretskii
|
||||
|
||||
src/bidi.c
|
||||
bidirectional editing support in xdisp.c and elsewhere
|
||||
lisp/term/tty-colors.el
|
||||
|
||||
The MS-DOS (a.k.a. DJGPP) port:
|
||||
config.bat
|
||||
msdos/*
|
||||
|
@ -35,11 +40,7 @@ Eli Zaretskii
|
|||
lisp/dos-fns.el
|
||||
lisp/dos-w32.el
|
||||
lisp/dos-vars.el
|
||||
|
||||
lisp/term/tty-colors.el
|
||||
lisp/international/codepage.el
|
||||
|
||||
doc/emacs/msdog.texi
|
||||
doc/emacs/msdog.texi
|
||||
|
||||
Kenichi Handa
|
||||
Mule
|
||||
|
@ -91,6 +92,7 @@ Eli Zaretskii
|
|||
info/dir
|
||||
|
||||
src/xfaces.c
|
||||
src/xdisp.c
|
||||
src/term.c
|
||||
src/frame.c
|
||||
src/dired.c
|
||||
|
|
33
configure
vendored
33
configure
vendored
|
@ -4830,6 +4830,39 @@ CFLAGS="$SAVE_CFLAGS"
|
|||
unset has_option
|
||||
unset SAVE_CFLAGS
|
||||
|
||||
### Use -Wold-style-definition if the compiler supports it
|
||||
# This can be removed when conversion to standard C is finished.
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
|
||||
$as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
|
||||
SAVE_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -Wold-style-definition"
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_compile "$LINENO"; then :
|
||||
has_option=yes
|
||||
else
|
||||
has_option=no
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
if test $has_option = yes; then
|
||||
C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
|
||||
$as_echo "$has_option" >&6; }
|
||||
CFLAGS="$SAVE_CFLAGS"
|
||||
unset has_option
|
||||
unset SAVE_CFLAGS
|
||||
|
||||
|
||||
#### Some other nice autoconf tests.
|
||||
|
||||
ac_ext=c
|
||||
|
|
15
configure.in
15
configure.in
|
@ -757,6 +757,21 @@ CFLAGS="$SAVE_CFLAGS"
|
|||
unset has_option
|
||||
unset SAVE_CFLAGS
|
||||
|
||||
### Use -Wold-style-definition if the compiler supports it
|
||||
# This can be removed when conversion to standard C is finished.
|
||||
AC_MSG_CHECKING([whether gcc understands -Wold-style-definition])
|
||||
SAVE_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -Wold-style-definition"
|
||||
AC_TRY_COMPILE([], [], has_option=yes, has_option=no,)
|
||||
if test $has_option = yes; then
|
||||
C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
|
||||
fi
|
||||
AC_MSG_RESULT($has_option)
|
||||
CFLAGS="$SAVE_CFLAGS"
|
||||
unset has_option
|
||||
unset SAVE_CFLAGS
|
||||
|
||||
|
||||
#### Some other nice autoconf tests.
|
||||
|
||||
dnl checks for programs
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2010-07-09 Dan Nicolaescu <dann@ics.uci.edu>
|
||||
|
||||
* make-docfile.c (write_c_args): Deal with type names in DEFUN
|
||||
arguments.
|
||||
|
||||
2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
|
||||
|
||||
* update-game-score.c (P_): Remove macro.
|
||||
|
|
|
@ -450,9 +450,24 @@ write_c_args (FILE *out, char *func, char *buf, int minargs, int maxargs)
|
|||
|
||||
for (p = buf; *p; p++)
|
||||
{
|
||||
char c = *p;
|
||||
char c;
|
||||
int ident_start = 0;
|
||||
|
||||
/* FIXME: this must be made a bit more robust*/
|
||||
|
||||
/* Skip "register Lisp_Object", this can be removed when we get
|
||||
rid of "register" for DEFUNs. */
|
||||
if (strncmp ("register Lisp_Object", p, 20) == 0)
|
||||
p += 20;
|
||||
|
||||
if (strncmp ("Lisp_Object", p, 11) == 0)
|
||||
p += 11;
|
||||
|
||||
if (strncmp ("void", p, 4) == 0)
|
||||
p += 4;
|
||||
|
||||
c = *p;
|
||||
|
||||
/* Notice when we start printing a new identifier. */
|
||||
if ((('A' <= c && c <= 'Z')
|
||||
|| ('a' <= c && c <= 'z')
|
||||
|
|
|
@ -1,3 +1,49 @@
|
|||
2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
|
||||
|
||||
* xlwmenu.c (size_menu_item): Change from K&R to prototype.
|
||||
Change label_width and height to int.
|
||||
(draw_arrow, draw_shadow_rectangle, draw_shadow_rhombus)
|
||||
(draw_separator, display_menu, fit_to_screen, motion_event_is_in_menu)
|
||||
(map_event_to_widget_value): Reformat.
|
||||
(display_menu_item): Change from K&R to prototype.
|
||||
|
||||
* lwlib.c (allocate_widget_info, lw_register_widget): Change from K&R
|
||||
to prototype.
|
||||
(lw_internal_update_other_instances, merge_widget_value): Reformat.
|
||||
|
||||
* lwlib-int.h (widget_creation_function): Fix prototype.
|
||||
|
||||
* lwlib-Xm.c (x_print_complete_resource_name)
|
||||
(make_destroyed_instance, free_destroyed_instance, first_child)
|
||||
(lw_motif_widget_p, resource_motif_string, destroy_all_children)
|
||||
(xm_arm_callback, xm_update_label, xm_update_list)
|
||||
(xm_update_pushbutton, xm_update_cascadebutton)
|
||||
(xm_update_toggle, xm_update_radiobox, make_menu_in_widget)
|
||||
(update_one_menu_entry, xm_update_menu, xm_update_text)
|
||||
(xm_update_text_field, xm_update_one_widget)
|
||||
(xm_update_one_value, activate_button, dialog_key_cb)
|
||||
(make_dialog, mark_dead_instance_destroyed)
|
||||
(find_matching_instance, recenter_widget, recycle_instance)
|
||||
(xm_create_dialog, make_menubar, remove_grabs, make_popup_menu)
|
||||
(make_main, xm_destroy_instance, xm_popup_menu)
|
||||
(set_min_dialog_size, xm_pop_instance, do_call)
|
||||
(xm_internal_update_other_instances, xm_generic_callback)
|
||||
(xm_nosel_callback, xm_pull_down_callback, xm_pop_down_callback)
|
||||
(xm_set_keyboard_focus, xm_set_main_areas, xm_manage_resizing): Change
|
||||
from K&R to prototype.
|
||||
|
||||
* lwlib-Xlw.c (x_print_complete_resource_name): Change from K&R to
|
||||
prototype.
|
||||
(xlw_update_one_value): Reformat.
|
||||
|
||||
* lwlib-Xaw.c (xaw_generic_callback, command_reset)
|
||||
(xaw_update_one_value): Reformat.
|
||||
(xaw_update_one_widget): Reformat and remove dead code.
|
||||
(xaw_scrollbar_scroll, xaw_scrollbar_jump, xaw_create_scrollbar)
|
||||
(xaw_update_scrollbar): Remove (not used).
|
||||
(make_dialog): Change from K&R to prototype. Remove dead code.
|
||||
(xaw_creation_table): Remove scrollbar entry.
|
||||
|
||||
2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
|
||||
|
||||
* lwlib.c (allocate_widget_instance, get_widget_info)
|
||||
|
|
|
@ -71,7 +71,9 @@ struct widget_xft_data
|
|||
|
||||
#endif
|
||||
|
||||
static void xaw_generic_callback (Widget widget, XtPointer closure, XtPointer call_data);
|
||||
static void xaw_generic_callback (Widget widget,
|
||||
XtPointer closure,
|
||||
XtPointer call_data);
|
||||
|
||||
|
||||
Boolean
|
||||
|
@ -81,70 +83,6 @@ lw_xaw_widget_p (Widget widget)
|
|||
XtIsSubclass (widget, dialogWidgetClass));
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void
|
||||
xaw_update_scrollbar (instance, widget, val)
|
||||
widget_instance *instance;
|
||||
Widget widget;
|
||||
widget_value *val;
|
||||
{
|
||||
if (val->scrollbar_data)
|
||||
{
|
||||
scrollbar_values *data = val->scrollbar_data;
|
||||
Dimension height, width;
|
||||
Dimension pos_x, pos_y;
|
||||
int widget_shown, widget_topOfThumb;
|
||||
float new_shown, new_topOfThumb;
|
||||
|
||||
XtVaGetValues (widget,
|
||||
XtNheight, &height,
|
||||
XtNwidth, &width,
|
||||
XtNx, &pos_x,
|
||||
XtNy, &pos_y,
|
||||
XtNtopOfThumb, &widget_topOfThumb,
|
||||
XtNshown, &widget_shown,
|
||||
NULL);
|
||||
|
||||
/*
|
||||
* First size and position the scrollbar widget.
|
||||
* We need to position it to second-guess the Paned widget's notion
|
||||
* of what should happen when the WMShell gets resized.
|
||||
*/
|
||||
if (height != data->scrollbar_height || pos_y != data->scrollbar_pos)
|
||||
{
|
||||
XtConfigureWidget (widget, pos_x, data->scrollbar_pos,
|
||||
width, data->scrollbar_height, 0);
|
||||
|
||||
XtVaSetValues (widget,
|
||||
XtNlength, data->scrollbar_height,
|
||||
XtNthickness, width,
|
||||
NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
* Now the size the scrollbar's slider.
|
||||
*/
|
||||
new_shown = (float) data->slider_size /
|
||||
(float) (data->maximum - data->minimum);
|
||||
|
||||
new_topOfThumb = (float) (data->slider_position - data->minimum) /
|
||||
(float) (data->maximum - data->minimum);
|
||||
|
||||
if (new_shown > 1.0)
|
||||
new_shown = 1.0;
|
||||
if (new_shown < 0)
|
||||
new_shown = 0;
|
||||
|
||||
if (new_topOfThumb > 1.0)
|
||||
new_topOfThumb = 1.0;
|
||||
if (new_topOfThumb < 0)
|
||||
new_topOfThumb = 0;
|
||||
|
||||
if (new_shown != widget_shown || new_topOfThumb != widget_topOfThumb)
|
||||
XawScrollbarSetThumb (widget, new_topOfThumb, new_shown);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_XFT
|
||||
static void
|
||||
|
@ -325,9 +263,9 @@ command_press (Widget widget,
|
|||
|
||||
static void
|
||||
command_reset (Widget widget,
|
||||
XEvent* event,
|
||||
String *params,
|
||||
Cardinal *num_params)
|
||||
XEvent* event,
|
||||
String *params,
|
||||
Cardinal *num_params)
|
||||
{
|
||||
struct widget_xft_data *data = find_xft_data (widget);
|
||||
if (data)
|
||||
|
@ -348,15 +286,11 @@ command_reset (Widget widget,
|
|||
#endif
|
||||
|
||||
void
|
||||
xaw_update_one_widget (widget_instance *instance, Widget widget,
|
||||
widget_value *val, Boolean deep_p)
|
||||
xaw_update_one_widget (widget_instance *instance,
|
||||
Widget widget,
|
||||
widget_value *val,
|
||||
Boolean deep_p)
|
||||
{
|
||||
#if 0
|
||||
if (XtIsSubclass (widget, scrollbarWidgetClass))
|
||||
{
|
||||
xaw_update_scrollbar (instance, widget, val);
|
||||
}
|
||||
#endif
|
||||
if (XtIsSubclass (widget, dialogWidgetClass))
|
||||
{
|
||||
|
||||
|
@ -419,7 +353,9 @@ xaw_update_one_widget (widget_instance *instance, Widget widget,
|
|||
}
|
||||
|
||||
void
|
||||
xaw_update_one_value (widget_instance *instance, Widget widget, widget_value *val)
|
||||
xaw_update_one_value (widget_instance *instance,
|
||||
Widget widget,
|
||||
widget_value *val)
|
||||
{
|
||||
/* This function is not used by the scrollbars and those are the only
|
||||
Athena widget implemented at the moment so do nothing. */
|
||||
|
@ -559,19 +495,17 @@ char buttonTrans[] =
|
|||
#endif
|
||||
|
||||
static Widget
|
||||
make_dialog (name, parent, pop_up_p, shell_title, icon_name, text_input_slot,
|
||||
radio_box, list, left_buttons, right_buttons, instance)
|
||||
char* name;
|
||||
Widget parent;
|
||||
Boolean pop_up_p;
|
||||
char* shell_title;
|
||||
char* icon_name;
|
||||
Boolean text_input_slot;
|
||||
Boolean radio_box;
|
||||
Boolean list;
|
||||
int left_buttons;
|
||||
int right_buttons;
|
||||
widget_instance *instance;
|
||||
make_dialog (char* name,
|
||||
Widget parent,
|
||||
Boolean pop_up_p,
|
||||
char* shell_title,
|
||||
char* icon_name,
|
||||
Boolean text_input_slot,
|
||||
Boolean radio_box,
|
||||
Boolean list,
|
||||
int left_buttons,
|
||||
int right_buttons,
|
||||
widget_instance *instance)
|
||||
{
|
||||
Arg av [20];
|
||||
int ac = 0;
|
||||
|
@ -815,10 +749,6 @@ xaw_generic_callback (Widget widget, XtPointer closure, XtPointer call_data)
|
|||
|
||||
id = instance->info->id;
|
||||
|
||||
#if 0
|
||||
user_data = NULL;
|
||||
XtVaGetValues (widget, XtNuserData, &user_data, NULL);
|
||||
#else
|
||||
/* Damn! Athena doesn't give us a way to hang our own data on the
|
||||
buttons, so we have to go find it... I guess this assumes that
|
||||
all instances of a button have the same call data. */
|
||||
|
@ -834,7 +764,6 @@ xaw_generic_callback (Widget widget, XtPointer closure, XtPointer call_data)
|
|||
if (! val) abort ();
|
||||
user_data = val->call_data;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (instance->info->selection_cb)
|
||||
instance->info->selection_cb (widget, id, user_data);
|
||||
|
@ -885,106 +814,6 @@ wm_delete_window (Widget w,
|
|||
}
|
||||
|
||||
|
||||
/* Scrollbars */
|
||||
|
||||
#if 0
|
||||
static void
|
||||
xaw_scrollbar_scroll (widget, closure, call_data)
|
||||
Widget widget;
|
||||
XtPointer closure;
|
||||
XtPointer call_data;
|
||||
{
|
||||
widget_instance *instance = (widget_instance *) closure;
|
||||
LWLIB_ID id;
|
||||
scroll_event event_data;
|
||||
|
||||
if (!instance || widget->core.being_destroyed)
|
||||
return;
|
||||
|
||||
id = instance->info->id;
|
||||
event_data.slider_value = 0;
|
||||
event_data.time = 0;
|
||||
|
||||
if ((int) call_data > 0)
|
||||
event_data.action = SCROLLBAR_PAGE_DOWN;
|
||||
else
|
||||
event_data.action = SCROLLBAR_PAGE_UP;
|
||||
|
||||
if (instance->info->pre_activate_cb)
|
||||
instance->info->pre_activate_cb (widget, id, (XtPointer) &event_data);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
static void
|
||||
xaw_scrollbar_jump (widget, closure, call_data)
|
||||
Widget widget;
|
||||
XtPointer closure;
|
||||
XtPointer call_data;
|
||||
{
|
||||
widget_instance *instance = (widget_instance *) closure;
|
||||
LWLIB_ID id;
|
||||
scroll_event event_data;
|
||||
scrollbar_values *val =
|
||||
(scrollbar_values *) instance->info->val->scrollbar_data;
|
||||
float percent;
|
||||
|
||||
if (!instance || widget->core.being_destroyed)
|
||||
return;
|
||||
|
||||
id = instance->info->id;
|
||||
|
||||
percent = * (float *) call_data;
|
||||
event_data.slider_value =
|
||||
(int) (percent * (float) (val->maximum - val->minimum)) + val->minimum;
|
||||
|
||||
event_data.time = 0;
|
||||
event_data.action = SCROLLBAR_DRAG;
|
||||
|
||||
if (instance->info->pre_activate_cb)
|
||||
instance->info->pre_activate_cb (widget, id, (XtPointer) &event_data);
|
||||
}
|
||||
#endif
|
||||
|
||||
static Widget
|
||||
xaw_create_scrollbar (widget_instance *instance)
|
||||
{
|
||||
#if 0
|
||||
Arg av[20];
|
||||
int ac = 0;
|
||||
Dimension width;
|
||||
Widget scrollbar;
|
||||
|
||||
XtVaGetValues (instance->parent, XtNwidth, &width, NULL);
|
||||
|
||||
XtSetArg (av[ac], XtNshowGrip, 0); ac++;
|
||||
XtSetArg (av[ac], XtNresizeToPreferred, 1); ac++;
|
||||
XtSetArg (av[ac], XtNallowResize, True); ac++;
|
||||
XtSetArg (av[ac], XtNskipAdjust, True); ac++;
|
||||
XtSetArg (av[ac], XtNwidth, width); ac++;
|
||||
XtSetArg (av[ac], XtNmappedWhenManaged, True); ac++;
|
||||
|
||||
scrollbar =
|
||||
XtCreateWidget (instance->info->name, scrollbarWidgetClass,
|
||||
instance->parent, av, ac);
|
||||
|
||||
/* We have to force the border width to be 0 otherwise the
|
||||
geometry manager likes to start looping for awhile... */
|
||||
XtVaSetValues (scrollbar, XtNborderWidth, 0, NULL);
|
||||
|
||||
XtRemoveAllCallbacks (scrollbar, "jumpProc");
|
||||
XtRemoveAllCallbacks (scrollbar, "scrollProc");
|
||||
|
||||
XtAddCallback (scrollbar, "jumpProc", xaw_scrollbar_jump,
|
||||
(XtPointer) instance);
|
||||
XtAddCallback (scrollbar, "scrollProc", xaw_scrollbar_scroll,
|
||||
(XtPointer) instance);
|
||||
|
||||
return scrollbar;
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
static Widget
|
||||
xaw_create_main (widget_instance *instance)
|
||||
|
@ -1002,7 +831,6 @@ xaw_create_main (widget_instance *instance)
|
|||
widget_creation_entry
|
||||
xaw_creation_table [] =
|
||||
{
|
||||
{"scrollbar", xaw_create_scrollbar},
|
||||
{"main", xaw_create_main},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
|
|
@ -43,8 +43,7 @@ Boston, MA 02110-1301, USA. */
|
|||
This is sometimes handy to have available. */
|
||||
|
||||
void
|
||||
x_print_complete_resource_name (widget)
|
||||
Widget widget;
|
||||
x_print_complete_resource_name (Widget widget)
|
||||
{
|
||||
int i;
|
||||
String names[100];
|
||||
|
@ -223,7 +222,9 @@ xlw_update_one_widget (widget_instance* instance, Widget widget,
|
|||
}
|
||||
|
||||
void
|
||||
xlw_update_one_value (widget_instance *instance, Widget widget, widget_value *val)
|
||||
xlw_update_one_value (widget_instance *instance,
|
||||
Widget widget,
|
||||
widget_value *val)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
280
lwlib/lwlib-Xm.c
280
lwlib/lwlib-Xm.c
|
@ -145,8 +145,7 @@ void xm_manage_resizing (Widget, Boolean);
|
|||
This is sometimes handy to have available. */
|
||||
|
||||
void
|
||||
x_print_complete_resource_name (widget)
|
||||
Widget widget;
|
||||
x_print_complete_resource_name (Widget widget)
|
||||
{
|
||||
int i;
|
||||
String names[100];
|
||||
|
@ -168,12 +167,11 @@ x_print_complete_resource_name (widget)
|
|||
static destroyed_instance *all_destroyed_instances = NULL;
|
||||
|
||||
static destroyed_instance*
|
||||
make_destroyed_instance (name, type, widget, parent, pop_up_p)
|
||||
char* name;
|
||||
char* type;
|
||||
Widget widget;
|
||||
Widget parent;
|
||||
Boolean pop_up_p;
|
||||
make_destroyed_instance (char* name,
|
||||
char* type,
|
||||
Widget widget,
|
||||
Widget parent,
|
||||
Boolean pop_up_p)
|
||||
{
|
||||
destroyed_instance* instance =
|
||||
(destroyed_instance*)malloc (sizeof (destroyed_instance));
|
||||
|
@ -187,8 +185,7 @@ make_destroyed_instance (name, type, widget, parent, pop_up_p)
|
|||
}
|
||||
|
||||
static void
|
||||
free_destroyed_instance (instance)
|
||||
destroyed_instance* instance;
|
||||
free_destroyed_instance (destroyed_instance* instance)
|
||||
{
|
||||
free (instance->name);
|
||||
free (instance->type);
|
||||
|
@ -197,15 +194,13 @@ free_destroyed_instance (instance)
|
|||
|
||||
/* motif utility functions */
|
||||
Widget
|
||||
first_child (widget)
|
||||
Widget widget;
|
||||
first_child (Widget widget)
|
||||
{
|
||||
return ((CompositeWidget)widget)->composite.children [0];
|
||||
}
|
||||
|
||||
Boolean
|
||||
lw_motif_widget_p (widget)
|
||||
Widget widget;
|
||||
lw_motif_widget_p (Widget widget)
|
||||
{
|
||||
return
|
||||
XtClass (widget) == xmDialogShellWidgetClass
|
||||
|
@ -213,9 +208,8 @@ lw_motif_widget_p (widget)
|
|||
}
|
||||
|
||||
static XmString
|
||||
resource_motif_string (widget, name)
|
||||
Widget widget;
|
||||
char* name;
|
||||
resource_motif_string (Widget widget,
|
||||
char* name)
|
||||
{
|
||||
XtResource resource;
|
||||
XmString result = 0;
|
||||
|
@ -237,9 +231,8 @@ resource_motif_string (widget, name)
|
|||
starting with number FIRST_CHILD_TO_DESTROY. */
|
||||
|
||||
static void
|
||||
destroy_all_children (widget, first_child_to_destroy)
|
||||
Widget widget;
|
||||
int first_child_to_destroy;
|
||||
destroy_all_children (Widget widget,
|
||||
int first_child_to_destroy)
|
||||
{
|
||||
Widget* children;
|
||||
unsigned int number;
|
||||
|
@ -285,9 +278,7 @@ destroy_all_children (widget, first_child_to_destroy)
|
|||
is called. */
|
||||
|
||||
static void
|
||||
xm_arm_callback (w, client_data, call_data)
|
||||
Widget w;
|
||||
XtPointer client_data, call_data;
|
||||
xm_arm_callback (Widget w, XtPointer client_data, XtPointer call_data)
|
||||
{
|
||||
XmPushButtonCallbackStruct *cbs = (XmPushButtonCallbackStruct *) call_data;
|
||||
widget_value *wv = (widget_value *) client_data;
|
||||
|
@ -339,10 +330,9 @@ xm_arm_callback (w, client_data, call_data)
|
|||
not null, and contains the label string to display. */
|
||||
|
||||
static void
|
||||
xm_update_label (instance, widget, val)
|
||||
widget_instance* instance;
|
||||
Widget widget;
|
||||
widget_value* val;
|
||||
xm_update_label (widget_instance* instance,
|
||||
Widget widget,
|
||||
widget_value* val)
|
||||
{
|
||||
XmString res_string = 0;
|
||||
XmString built_string = 0;
|
||||
|
@ -390,10 +380,9 @@ xm_update_label (instance, widget, val)
|
|||
|
||||
/* update of list */
|
||||
static void
|
||||
xm_update_list (instance, widget, val)
|
||||
widget_instance* instance;
|
||||
Widget widget;
|
||||
widget_value* val;
|
||||
xm_update_list (widget_instance* instance,
|
||||
Widget widget,
|
||||
widget_value* val)
|
||||
{
|
||||
widget_value* cur;
|
||||
int i;
|
||||
|
@ -414,10 +403,9 @@ xm_update_list (instance, widget, val)
|
|||
|
||||
/* update of buttons */
|
||||
static void
|
||||
xm_update_pushbutton (instance, widget, val)
|
||||
widget_instance* instance;
|
||||
Widget widget;
|
||||
widget_value* val;
|
||||
xm_update_pushbutton (widget_instance* instance,
|
||||
Widget widget,
|
||||
widget_value* val)
|
||||
{
|
||||
XtVaSetValues (widget, XmNalignment, XmALIGNMENT_CENTER, NULL);
|
||||
XtRemoveAllCallbacks (widget, XmNactivateCallback);
|
||||
|
@ -425,10 +413,9 @@ xm_update_pushbutton (instance, widget, val)
|
|||
}
|
||||
|
||||
static void
|
||||
xm_update_cascadebutton (instance, widget, val)
|
||||
widget_instance* instance;
|
||||
Widget widget;
|
||||
widget_value* val;
|
||||
xm_update_cascadebutton (widget_instance* instance,
|
||||
Widget widget,
|
||||
widget_value* val)
|
||||
{
|
||||
/* Should also rebuild the menu by calling ...update_menu... */
|
||||
XtRemoveAllCallbacks (widget, XmNcascadingCallback);
|
||||
|
@ -438,10 +425,9 @@ xm_update_cascadebutton (instance, widget, val)
|
|||
|
||||
/* update toggle and radiobox */
|
||||
static void
|
||||
xm_update_toggle (instance, widget, val)
|
||||
widget_instance* instance;
|
||||
Widget widget;
|
||||
widget_value* val;
|
||||
xm_update_toggle (widget_instance* instance,
|
||||
Widget widget,
|
||||
widget_value* val)
|
||||
{
|
||||
XtRemoveAllCallbacks (widget, XmNvalueChangedCallback);
|
||||
XtAddCallback (widget, XmNvalueChangedCallback,
|
||||
|
@ -451,10 +437,9 @@ xm_update_toggle (instance, widget, val)
|
|||
}
|
||||
|
||||
static void
|
||||
xm_update_radiobox (instance, widget, val)
|
||||
widget_instance* instance;
|
||||
Widget widget;
|
||||
widget_value* val;
|
||||
xm_update_radiobox (widget_instance* instance,
|
||||
Widget widget,
|
||||
widget_value* val)
|
||||
|
||||
{
|
||||
Widget toggle;
|
||||
|
@ -498,11 +483,10 @@ xm_update_radiobox (instance, widget, val)
|
|||
/* KEEP_FIRST_CHILDREN gives the number of initial children to keep. */
|
||||
|
||||
static void
|
||||
make_menu_in_widget (instance, widget, val, keep_first_children)
|
||||
widget_instance* instance;
|
||||
Widget widget;
|
||||
widget_value* val;
|
||||
int keep_first_children;
|
||||
make_menu_in_widget (widget_instance* instance,
|
||||
Widget widget,
|
||||
widget_value* val,
|
||||
int keep_first_children)
|
||||
{
|
||||
Widget* children = 0;
|
||||
int num_children;
|
||||
|
@ -655,11 +639,10 @@ make_menu_in_widget (instance, widget, val, keep_first_children)
|
|||
}
|
||||
|
||||
static void
|
||||
update_one_menu_entry (instance, widget, val, deep_p)
|
||||
widget_instance* instance;
|
||||
Widget widget;
|
||||
widget_value* val;
|
||||
Boolean deep_p;
|
||||
update_one_menu_entry (widget_instance* instance,
|
||||
Widget widget,
|
||||
widget_value* val,
|
||||
Boolean deep_p)
|
||||
{
|
||||
Arg al [256];
|
||||
int ac;
|
||||
|
@ -757,11 +740,10 @@ update_one_menu_entry (instance, widget, val, deep_p)
|
|||
}
|
||||
|
||||
static void
|
||||
xm_update_menu (instance, widget, val, deep_p)
|
||||
widget_instance* instance;
|
||||
Widget widget;
|
||||
widget_value* val;
|
||||
Boolean deep_p;
|
||||
xm_update_menu (widget_instance* instance,
|
||||
Widget widget,
|
||||
widget_value* val,
|
||||
Boolean deep_p)
|
||||
{
|
||||
Widget* children;
|
||||
unsigned int num_children;
|
||||
|
@ -832,10 +814,9 @@ xm_update_menu (instance, widget, val, deep_p)
|
|||
/* update text widgets */
|
||||
|
||||
static void
|
||||
xm_update_text (instance, widget, val)
|
||||
widget_instance* instance;
|
||||
Widget widget;
|
||||
widget_value* val;
|
||||
xm_update_text (widget_instance* instance,
|
||||
Widget widget,
|
||||
widget_value* val)
|
||||
{
|
||||
XmTextSetString (widget, val->value ? val->value : "");
|
||||
XtRemoveAllCallbacks (widget, XmNactivateCallback);
|
||||
|
@ -846,10 +827,9 @@ xm_update_text (instance, widget, val)
|
|||
}
|
||||
|
||||
static void
|
||||
xm_update_text_field (instance, widget, val)
|
||||
widget_instance* instance;
|
||||
Widget widget;
|
||||
widget_value* val;
|
||||
xm_update_text_field (widget_instance* instance,
|
||||
Widget widget,
|
||||
widget_value* val)
|
||||
{
|
||||
XmTextFieldSetString (widget, val->value ? val->value : "");
|
||||
XtRemoveAllCallbacks (widget, XmNactivateCallback);
|
||||
|
@ -863,11 +843,10 @@ xm_update_text_field (instance, widget, val)
|
|||
/* update a motif widget */
|
||||
|
||||
void
|
||||
xm_update_one_widget (instance, widget, val, deep_p)
|
||||
widget_instance* instance;
|
||||
Widget widget;
|
||||
widget_value* val;
|
||||
Boolean deep_p;
|
||||
xm_update_one_widget (widget_instance* instance,
|
||||
Widget widget,
|
||||
widget_value* val,
|
||||
Boolean deep_p)
|
||||
{
|
||||
WidgetClass class;
|
||||
|
||||
|
@ -928,10 +907,9 @@ xm_update_one_widget (instance, widget, val, deep_p)
|
|||
|
||||
/* getting the value back */
|
||||
void
|
||||
xm_update_one_value (instance, widget, val)
|
||||
widget_instance* instance;
|
||||
Widget widget;
|
||||
widget_value* val;
|
||||
xm_update_one_value (widget_instance* instance,
|
||||
Widget widget,
|
||||
widget_value* val)
|
||||
{
|
||||
WidgetClass class = XtClass (widget);
|
||||
widget_value *old_wv;
|
||||
|
@ -1024,10 +1002,9 @@ xm_update_one_value (instance, widget, val)
|
|||
I could not find a way to do that with accelerators.
|
||||
*/
|
||||
static void
|
||||
activate_button (widget, closure, call_data)
|
||||
Widget widget;
|
||||
XtPointer closure;
|
||||
XtPointer call_data;
|
||||
activate_button (Widget widget,
|
||||
XtPointer closure,
|
||||
XtPointer call_data)
|
||||
{
|
||||
Widget button = (Widget)closure;
|
||||
XtCallCallbacks (button, XmNactivateCallback, NULL);
|
||||
|
@ -1037,11 +1014,10 @@ activate_button (widget, closure, call_data)
|
|||
|
||||
/* Called for key press in dialogs. Used to pop down dialog on ESC. */
|
||||
static void
|
||||
dialog_key_cb (widget, closure, event, continue_to_dispatch)
|
||||
Widget widget;
|
||||
XtPointer closure;
|
||||
XEvent *event;
|
||||
Boolean *continue_to_dispatch;
|
||||
dialog_key_cb (Widget widget,
|
||||
XtPointer closure,
|
||||
XEvent *event,
|
||||
Boolean *continue_to_dispatch)
|
||||
{
|
||||
KeySym sym = 0;
|
||||
Modifiers modif_ret;
|
||||
|
@ -1064,18 +1040,16 @@ dialog_key_cb (widget, closure, event, continue_to_dispatch)
|
|||
|
||||
/* dialogs */
|
||||
static Widget
|
||||
make_dialog (name, parent, pop_up_p, shell_title, icon_name, text_input_slot,
|
||||
radio_box, list, left_buttons, right_buttons)
|
||||
char* name;
|
||||
Widget parent;
|
||||
Boolean pop_up_p;
|
||||
char* shell_title;
|
||||
char* icon_name;
|
||||
Boolean text_input_slot;
|
||||
Boolean radio_box;
|
||||
Boolean list;
|
||||
int left_buttons;
|
||||
int right_buttons;
|
||||
make_dialog (char* name,
|
||||
Widget parent,
|
||||
Boolean pop_up_p,
|
||||
char* shell_title,
|
||||
char* icon_name,
|
||||
Boolean text_input_slot,
|
||||
Boolean radio_box,
|
||||
Boolean list,
|
||||
int left_buttons,
|
||||
int right_buttons)
|
||||
{
|
||||
Widget result;
|
||||
Widget form;
|
||||
|
@ -1328,8 +1302,7 @@ make_dialog (name, parent, pop_up_p, shell_title, icon_name, text_input_slot,
|
|||
}
|
||||
|
||||
static destroyed_instance*
|
||||
find_matching_instance (instance)
|
||||
widget_instance* instance;
|
||||
find_matching_instance (widget_instance* instance)
|
||||
{
|
||||
destroyed_instance* cur;
|
||||
destroyed_instance* prev;
|
||||
|
@ -1366,18 +1339,16 @@ find_matching_instance (instance)
|
|||
}
|
||||
|
||||
static void
|
||||
mark_dead_instance_destroyed (widget, closure, call_data)
|
||||
Widget widget;
|
||||
XtPointer closure;
|
||||
XtPointer call_data;
|
||||
mark_dead_instance_destroyed (Widget widget,
|
||||
XtPointer closure,
|
||||
XtPointer call_data)
|
||||
{
|
||||
destroyed_instance* instance = (destroyed_instance*)closure;
|
||||
instance->widget = NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
recenter_widget (widget)
|
||||
Widget widget;
|
||||
recenter_widget (Widget widget)
|
||||
{
|
||||
Widget parent = XtParent (widget);
|
||||
Screen* screen = XtScreen (widget);
|
||||
|
@ -1413,8 +1384,7 @@ recenter_widget (widget)
|
|||
}
|
||||
|
||||
static Widget
|
||||
recycle_instance (instance)
|
||||
destroyed_instance* instance;
|
||||
recycle_instance (destroyed_instance* instance)
|
||||
{
|
||||
Widget widget = instance->widget;
|
||||
|
||||
|
@ -1450,8 +1420,7 @@ recycle_instance (instance)
|
|||
}
|
||||
|
||||
Widget
|
||||
xm_create_dialog (instance)
|
||||
widget_instance* instance;
|
||||
xm_create_dialog (widget_instance* instance)
|
||||
{
|
||||
char* name = instance->info->type;
|
||||
Widget parent = instance->parent;
|
||||
|
@ -1531,8 +1500,7 @@ xm_create_dialog (instance)
|
|||
because we have not yet managed to make it work right in Motif. */
|
||||
|
||||
static Widget
|
||||
make_menubar (instance)
|
||||
widget_instance* instance;
|
||||
make_menubar (widget_instance* instance)
|
||||
{
|
||||
Arg al[3];
|
||||
int ac;
|
||||
|
@ -1543,18 +1511,16 @@ make_menubar (instance)
|
|||
}
|
||||
|
||||
static void
|
||||
remove_grabs (shell, closure, call_data)
|
||||
Widget shell;
|
||||
XtPointer closure;
|
||||
XtPointer call_data;
|
||||
remove_grabs (Widget shell,
|
||||
XtPointer closure,
|
||||
XtPointer call_data)
|
||||
{
|
||||
Widget menu = (Widget) closure;
|
||||
XmRemoveFromPostFromList (menu, XtParent (XtParent (menu)));
|
||||
}
|
||||
|
||||
static Widget
|
||||
make_popup_menu (instance)
|
||||
widget_instance* instance;
|
||||
make_popup_menu (widget_instance* instance)
|
||||
{
|
||||
Widget parent = instance->parent;
|
||||
Window parent_window = parent->core.window;
|
||||
|
@ -1570,8 +1536,7 @@ make_popup_menu (instance)
|
|||
}
|
||||
|
||||
static Widget
|
||||
make_main (instance)
|
||||
widget_instance* instance;
|
||||
make_main (widget_instance* instance)
|
||||
{
|
||||
Widget parent = instance->parent;
|
||||
Widget result;
|
||||
|
@ -1710,8 +1675,7 @@ xm_creation_table [] =
|
|||
|
||||
/* Destruction of instances */
|
||||
void
|
||||
xm_destroy_instance (instance)
|
||||
widget_instance* instance;
|
||||
xm_destroy_instance ( widget_instance* instance)
|
||||
{
|
||||
Widget widget = instance->widget;
|
||||
/* recycle the dialog boxes */
|
||||
|
@ -1745,9 +1709,7 @@ xm_destroy_instance (instance)
|
|||
|
||||
/* popup utility */
|
||||
void
|
||||
xm_popup_menu (widget, event)
|
||||
Widget widget;
|
||||
XEvent *event;
|
||||
xm_popup_menu (Widget widget, XEvent *event)
|
||||
{
|
||||
XButtonPressedEvent dummy;
|
||||
|
||||
|
@ -1795,8 +1757,7 @@ xm_popup_menu (widget, event)
|
|||
}
|
||||
|
||||
static void
|
||||
set_min_dialog_size (w)
|
||||
Widget w;
|
||||
set_min_dialog_size (Widget w)
|
||||
{
|
||||
short width;
|
||||
short height;
|
||||
|
@ -1805,9 +1766,7 @@ set_min_dialog_size (w)
|
|||
}
|
||||
|
||||
void
|
||||
xm_pop_instance (instance, up)
|
||||
widget_instance* instance;
|
||||
Boolean up;
|
||||
xm_pop_instance (widget_instance* instance, Boolean up)
|
||||
{
|
||||
Widget widget = instance->widget;
|
||||
|
||||
|
@ -1836,10 +1795,9 @@ xm_pop_instance (instance, up)
|
|||
/* motif callback */
|
||||
|
||||
static void
|
||||
do_call (widget, closure, type)
|
||||
Widget widget;
|
||||
XtPointer closure;
|
||||
enum do_call_type type;
|
||||
do_call (Widget widget,
|
||||
XtPointer closure,
|
||||
enum do_call_type type)
|
||||
{
|
||||
Arg al [256];
|
||||
int ac;
|
||||
|
@ -1896,10 +1854,9 @@ do_call (widget, closure, type)
|
|||
if the widget was ``destroyed'' by caching it in the all_destroyed_instances
|
||||
list */
|
||||
static void
|
||||
xm_internal_update_other_instances (widget, closure, call_data)
|
||||
Widget widget;
|
||||
XtPointer closure;
|
||||
XtPointer call_data;
|
||||
xm_internal_update_other_instances (Widget widget,
|
||||
XtPointer closure,
|
||||
XtPointer call_data)
|
||||
{
|
||||
Widget parent;
|
||||
for (parent = widget; parent; parent = XtParent (parent))
|
||||
|
@ -1911,20 +1868,18 @@ xm_internal_update_other_instances (widget, closure, call_data)
|
|||
}
|
||||
|
||||
static void
|
||||
xm_generic_callback (widget, closure, call_data)
|
||||
Widget widget;
|
||||
XtPointer closure;
|
||||
XtPointer call_data;
|
||||
xm_generic_callback (Widget widget,
|
||||
XtPointer closure,
|
||||
XtPointer call_data)
|
||||
{
|
||||
lw_internal_update_other_instances (widget, closure, call_data);
|
||||
do_call (widget, closure, selection);
|
||||
}
|
||||
|
||||
static void
|
||||
xm_nosel_callback (widget, closure, call_data)
|
||||
Widget widget;
|
||||
XtPointer closure;
|
||||
XtPointer call_data;
|
||||
xm_nosel_callback (Widget widget,
|
||||
XtPointer closure,
|
||||
XtPointer call_data)
|
||||
{
|
||||
/* This callback is only called when a dialog box is dismissed with
|
||||
the wm's destroy button (WM_DELETE_WINDOW.) We want the dialog
|
||||
|
@ -1939,10 +1894,9 @@ xm_nosel_callback (widget, closure, call_data)
|
|||
}
|
||||
|
||||
static void
|
||||
xm_pull_down_callback (widget, closure, call_data)
|
||||
Widget widget;
|
||||
XtPointer closure;
|
||||
XtPointer call_data;
|
||||
xm_pull_down_callback (Widget widget,
|
||||
XtPointer closure,
|
||||
XtPointer call_data)
|
||||
{
|
||||
Widget parent = XtParent (widget);
|
||||
|
||||
|
@ -1963,10 +1917,9 @@ xm_pull_down_callback (widget, closure, call_data)
|
|||
menu, whether or not its submenu is visible. */
|
||||
|
||||
static void
|
||||
xm_pop_down_callback (widget, closure, call_data)
|
||||
Widget widget;
|
||||
XtPointer closure;
|
||||
XtPointer call_data;
|
||||
xm_pop_down_callback (Widget widget,
|
||||
XtPointer closure,
|
||||
XtPointer call_data)
|
||||
{
|
||||
widget_instance *instance = (widget_instance *) closure;
|
||||
|
||||
|
@ -1978,9 +1931,7 @@ xm_pop_down_callback (widget, closure, call_data)
|
|||
|
||||
/* set the keyboard focus */
|
||||
void
|
||||
xm_set_keyboard_focus (parent, w)
|
||||
Widget parent;
|
||||
Widget w;
|
||||
xm_set_keyboard_focus (Widget parent, Widget w)
|
||||
{
|
||||
XmProcessTraversal (w, 0);
|
||||
XtSetKeyboardFocus (parent, w);
|
||||
|
@ -1988,10 +1939,9 @@ xm_set_keyboard_focus (parent, w)
|
|||
|
||||
/* Motif hack to set the main window areas. */
|
||||
void
|
||||
xm_set_main_areas (parent, menubar, work_area)
|
||||
Widget parent;
|
||||
Widget menubar;
|
||||
Widget work_area;
|
||||
xm_set_main_areas (Widget parent,
|
||||
Widget menubar,
|
||||
Widget work_area)
|
||||
{
|
||||
XmMainWindowSetAreas (parent,
|
||||
menubar, /* menubar (maybe 0) */
|
||||
|
@ -2003,9 +1953,7 @@ xm_set_main_areas (parent, menubar, work_area)
|
|||
|
||||
/* Motif hack to control resizing on the menubar. */
|
||||
void
|
||||
xm_manage_resizing (w, flag)
|
||||
Widget w;
|
||||
Boolean flag;
|
||||
xm_manage_resizing (Widget w, Boolean flag)
|
||||
{
|
||||
XtVaSetValues (w, XtNallowShellResize, flag, NULL);
|
||||
}
|
||||
|
|
|
@ -58,8 +58,7 @@ typedef struct _widget_info
|
|||
struct _widget_info* next;
|
||||
} widget_info;
|
||||
|
||||
typedef Widget
|
||||
(*widget_creation_function) ();
|
||||
typedef Widget (*widget_creation_function) (widget_instance *instance);
|
||||
|
||||
typedef struct _widget_creation_entry
|
||||
{
|
||||
|
|
|
@ -249,16 +249,14 @@ copy_widget_value_tree (widget_value *val, change_type change)
|
|||
}
|
||||
|
||||
static widget_info *
|
||||
allocate_widget_info (type, name, id, val, pre_activate_cb,
|
||||
selection_cb, post_activate_cb, highlight_cb)
|
||||
char* type;
|
||||
char* name;
|
||||
LWLIB_ID id;
|
||||
widget_value* val;
|
||||
lw_callback pre_activate_cb;
|
||||
lw_callback selection_cb;
|
||||
lw_callback post_activate_cb;
|
||||
lw_callback highlight_cb;
|
||||
allocate_widget_info (char* type,
|
||||
char* name,
|
||||
LWLIB_ID id,
|
||||
widget_value* val,
|
||||
lw_callback pre_activate_cb,
|
||||
lw_callback selection_cb,
|
||||
lw_callback post_activate_cb,
|
||||
lw_callback highlight_cb)
|
||||
{
|
||||
widget_info* info = (widget_info*)malloc (sizeof (widget_info));
|
||||
info->type = safe_strdup (type);
|
||||
|
@ -431,7 +429,10 @@ safe_strcmp (char *s1, char *s2)
|
|||
|
||||
|
||||
static widget_value *
|
||||
merge_widget_value (widget_value *val1, widget_value *val2, int level, int *change_p)
|
||||
merge_widget_value (widget_value *val1,
|
||||
widget_value *val2,
|
||||
int level,
|
||||
int *change_p)
|
||||
{
|
||||
change_type change, this_one_change;
|
||||
widget_value* merged_next;
|
||||
|
@ -822,16 +823,14 @@ instantiate_widget_instance (widget_instance *instance)
|
|||
}
|
||||
|
||||
void
|
||||
lw_register_widget (type, name, id, val, pre_activate_cb,
|
||||
selection_cb, post_activate_cb, highlight_cb)
|
||||
char* type;
|
||||
char* name;
|
||||
LWLIB_ID id;
|
||||
widget_value* val;
|
||||
lw_callback pre_activate_cb;
|
||||
lw_callback selection_cb;
|
||||
lw_callback post_activate_cb;
|
||||
lw_callback highlight_cb;
|
||||
lw_register_widget (char* type,
|
||||
char* name,
|
||||
LWLIB_ID id,
|
||||
widget_value* val,
|
||||
lw_callback pre_activate_cb,
|
||||
lw_callback selection_cb,
|
||||
lw_callback post_activate_cb,
|
||||
lw_callback highlight_cb)
|
||||
{
|
||||
if (!get_widget_info (id, False))
|
||||
allocate_widget_info (type, name, id, val, pre_activate_cb, selection_cb,
|
||||
|
@ -1162,7 +1161,9 @@ static Boolean lwlib_updating;
|
|||
modified to update other instances of the widgets. Closure should be the
|
||||
widget_instance. */
|
||||
void
|
||||
lw_internal_update_other_instances (Widget widget, XtPointer closure, XtPointer call_data)
|
||||
lw_internal_update_other_instances (Widget widget,
|
||||
XtPointer closure,
|
||||
XtPointer call_data)
|
||||
{
|
||||
widget_instance* instance = (widget_instance*)closure;
|
||||
char* name = XtName (widget);
|
||||
|
|
|
@ -187,9 +187,9 @@ xlwMenuResources[] =
|
|||
|
||||
static Boolean XlwMenuSetValues(Widget current, Widget request, Widget new,
|
||||
ArgList args, Cardinal *num_args);
|
||||
static void XlwMenuRealize(Widget w, Mask *valueMask, XSetWindowAttributes *attributes);
|
||||
static void XlwMenuRealize(Widget, Mask *, XSetWindowAttributes *);
|
||||
static void XlwMenuResize(Widget w);
|
||||
static void XlwMenuInitialize(Widget request, Widget mw, ArgList args, Cardinal *num_args);
|
||||
static void XlwMenuInitialize(Widget, Widget, ArgList, Cardinal *);
|
||||
static void XlwMenuRedisplay(Widget w, XEvent *ev, Region region);
|
||||
static void XlwMenuDestroy(Widget w);
|
||||
static void XlwMenuClassInitialize(void);
|
||||
|
@ -473,15 +473,13 @@ resource_widget_value (XlwMenuWidget mw, widget_value *val)
|
|||
|
||||
/* Returns the sizes of an item */
|
||||
static void
|
||||
size_menu_item (mw, val, horizontal_p, label_width, rest_width, button_width,
|
||||
height)
|
||||
XlwMenuWidget mw;
|
||||
widget_value* val;
|
||||
int horizontal_p;
|
||||
int* label_width;
|
||||
int* rest_width;
|
||||
int* button_width;
|
||||
int* height;
|
||||
size_menu_item (XlwMenuWidget mw,
|
||||
widget_value* val,
|
||||
int horizontal_p,
|
||||
int* label_width,
|
||||
int* rest_width,
|
||||
int* button_width,
|
||||
int* height)
|
||||
{
|
||||
enum menu_separator separator;
|
||||
|
||||
|
@ -525,12 +523,12 @@ size_menu_item (mw, val, horizontal_p, label_width, rest_width, button_width,
|
|||
static void
|
||||
size_menu (XlwMenuWidget mw, int level)
|
||||
{
|
||||
unsigned int label_width = 0;
|
||||
int label_width = 0;
|
||||
int rest_width = 0;
|
||||
int button_width = 0;
|
||||
int max_rest_width = 0;
|
||||
int max_button_width = 0;
|
||||
unsigned int height = 0;
|
||||
int height = 0;
|
||||
int horizontal_p = mw->menu.horizontal && (level == 0);
|
||||
widget_value* val;
|
||||
window_state* ws;
|
||||
|
@ -589,7 +587,13 @@ size_menu (XlwMenuWidget mw, int level)
|
|||
/* Display code */
|
||||
|
||||
static void
|
||||
draw_arrow (XlwMenuWidget mw, Window window, GC gc, int x, int y, int width, int down_p)
|
||||
draw_arrow (XlwMenuWidget mw,
|
||||
Window window,
|
||||
GC gc,
|
||||
int x,
|
||||
int y,
|
||||
int width,
|
||||
int down_p)
|
||||
{
|
||||
Display *dpy = XtDisplay (mw);
|
||||
GC top_gc = mw->menu.shadow_top_gc;
|
||||
|
@ -646,7 +650,14 @@ draw_arrow (XlwMenuWidget mw, Window window, GC gc, int x, int y, int width, int
|
|||
|
||||
|
||||
static void
|
||||
draw_shadow_rectangle (XlwMenuWidget mw, Window window, int x, int y, int width, int height, int erase_p, int down_p)
|
||||
draw_shadow_rectangle (XlwMenuWidget mw,
|
||||
Window window,
|
||||
int x,
|
||||
int y,
|
||||
int width,
|
||||
int height,
|
||||
int erase_p,
|
||||
int down_p)
|
||||
{
|
||||
Display *dpy = XtDisplay (mw);
|
||||
GC top_gc = !erase_p ? mw->menu.shadow_top_gc : mw->menu.background_gc;
|
||||
|
@ -702,7 +713,14 @@ draw_shadow_rectangle (XlwMenuWidget mw, Window window, int x, int y, int width,
|
|||
|
||||
|
||||
static void
|
||||
draw_shadow_rhombus (XlwMenuWidget mw, Window window, int x, int y, int width, int height, int erase_p, int down_p)
|
||||
draw_shadow_rhombus (XlwMenuWidget mw,
|
||||
Window window,
|
||||
int x,
|
||||
int y,
|
||||
int width,
|
||||
int height,
|
||||
int erase_p,
|
||||
int down_p)
|
||||
{
|
||||
Display *dpy = XtDisplay (mw);
|
||||
GC top_gc = !erase_p ? mw->menu.shadow_top_gc : mw->menu.background_gc;
|
||||
|
@ -796,7 +814,12 @@ draw_radio (XlwMenuWidget mw, Window window, int x, int y, int selected_p)
|
|||
separator to draw. TYPE is the separator type. */
|
||||
|
||||
static void
|
||||
draw_separator (XlwMenuWidget mw, Window window, int x, int y, int width, enum menu_separator type)
|
||||
draw_separator (XlwMenuWidget mw,
|
||||
Window window,
|
||||
int x,
|
||||
int y,
|
||||
int width,
|
||||
enum menu_separator type)
|
||||
{
|
||||
Display *dpy = XtDisplay (mw);
|
||||
XGCValues xgcv;
|
||||
|
@ -946,15 +969,13 @@ separator_height (enum menu_separator separator)
|
|||
the menu item was. */
|
||||
|
||||
static void
|
||||
display_menu_item (mw, val, ws, where, highlighted_p, horizontal_p,
|
||||
just_compute_p)
|
||||
XlwMenuWidget mw;
|
||||
widget_value* val;
|
||||
window_state* ws;
|
||||
XPoint* where;
|
||||
Boolean highlighted_p;
|
||||
Boolean horizontal_p;
|
||||
Boolean just_compute_p;
|
||||
display_menu_item (XlwMenuWidget mw,
|
||||
widget_value* val,
|
||||
window_state* ws,
|
||||
XPoint* where,
|
||||
Boolean highlighted_p,
|
||||
Boolean horizontal_p,
|
||||
Boolean just_compute_p)
|
||||
{
|
||||
GC deco_gc;
|
||||
GC text_gc;
|
||||
|
@ -1137,7 +1158,12 @@ display_menu_item (mw, val, ws, where, highlighted_p, horizontal_p,
|
|||
}
|
||||
|
||||
static void
|
||||
display_menu (XlwMenuWidget mw, int level, Boolean just_compute_p, XPoint *highlighted_pos, XPoint *hit, widget_value **hit_return)
|
||||
display_menu (XlwMenuWidget mw,
|
||||
int level,
|
||||
Boolean just_compute_p,
|
||||
XPoint *highlighted_pos,
|
||||
XPoint *hit,
|
||||
widget_value **hit_return)
|
||||
{
|
||||
widget_value* val;
|
||||
widget_value* following_item;
|
||||
|
@ -1345,7 +1371,10 @@ xlwmenu_window_p (Widget w, Window window)
|
|||
|
||||
/* Make the window fit in the screen */
|
||||
static void
|
||||
fit_to_screen (XlwMenuWidget mw, window_state *ws, window_state *previous_ws, Boolean horizontal_p)
|
||||
fit_to_screen (XlwMenuWidget mw,
|
||||
window_state *ws,
|
||||
window_state *previous_ws,
|
||||
Boolean horizontal_p)
|
||||
{
|
||||
unsigned int screen_width = WidthOfScreen (XtScreen (mw));
|
||||
unsigned int screen_height = HeightOfScreen (XtScreen (mw));
|
||||
|
@ -1519,7 +1548,10 @@ remap_menubar (XlwMenuWidget mw)
|
|||
}
|
||||
|
||||
static Boolean
|
||||
motion_event_is_in_menu (XlwMenuWidget mw, XMotionEvent *ev, int level, XPoint *relative_pos)
|
||||
motion_event_is_in_menu (XlwMenuWidget mw,
|
||||
XMotionEvent *ev,
|
||||
int level,
|
||||
XPoint *relative_pos)
|
||||
{
|
||||
window_state* ws = &mw->menu.windows [level];
|
||||
int shadow = level == 0 ? 0 : mw->menu.shadow_thickness;
|
||||
|
@ -1532,7 +1564,10 @@ motion_event_is_in_menu (XlwMenuWidget mw, XMotionEvent *ev, int level, XPoint *
|
|||
}
|
||||
|
||||
static Boolean
|
||||
map_event_to_widget_value (XlwMenuWidget mw, XMotionEvent *ev, widget_value **val, int *level)
|
||||
map_event_to_widget_value (XlwMenuWidget mw,
|
||||
XMotionEvent *ev,
|
||||
widget_value **val,
|
||||
int *level)
|
||||
{
|
||||
int i;
|
||||
XPoint relative_pos;
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
2010-07-08 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* sed1v2.inp (stamp-oldxmenu): Don't edit out in `temacs:' target,
|
||||
which doesn't exist.
|
||||
|
||||
* sed2v2.inp (HAVE_MEMCPY): Don't edit, defined on <sys/config.h>.
|
||||
|
||||
2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
|
||||
|
||||
* sed1v2.inp: Remove reference to prefix-args.
|
||||
|
|
|
@ -128,7 +128,6 @@ s/\.h\.in/.h-in/
|
|||
/^[ ]*$/d
|
||||
/^ if test -f/,/^ fi$/c\
|
||||
command.com /c if exist .gdbinit rm -f _gdbinit
|
||||
/^temacs:/s/stamp-oldxmenu//
|
||||
/^ if test "\${CANNOT_DUMP}" =/,/^ else /d
|
||||
/^ fi/d
|
||||
/^ LC_ALL=C \$(RUN_TEMACS)/i\
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
/^#undef HAVE_CBRT *$/s/^.*$/#define HAVE_CBRT 1/
|
||||
/^#undef HAVE_DIFFTIME *$/s/^.*$/#define HAVE_DIFFTIME 1/
|
||||
/^#undef HAVE_FPATHCONF *$/s/^.*$/#define HAVE_FPATHCONF 1/
|
||||
/^#undef HAVE_MEMCPY *$/s/^.*$/#define HAVE_MEMCPY 1/
|
||||
/^#undef HAVE_MEMSET *$/s/^.*$/#define HAVE_MEMSET 1/
|
||||
/^#undef HAVE_MEMCMP *$/s/^.*$/#define HAVE_MEMCMP 1/
|
||||
/^#undef HAVE_MEMMOVE *$/s/^.*$/#define HAVE_MEMMOVE 1/
|
||||
|
|
|
@ -1,3 +1,87 @@
|
|||
2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
|
||||
|
||||
* alloc.c: Convert DEFUNs to standard C.
|
||||
* buffer.c:
|
||||
* bytecode.c:
|
||||
* callint.c:
|
||||
* callproc.c:
|
||||
* casefiddle.c:
|
||||
* casetab.c:
|
||||
* category.c:
|
||||
* character.c:
|
||||
* charset.c:
|
||||
* chartab.c:
|
||||
* cmds.c:
|
||||
* coding.c:
|
||||
* composite.c:
|
||||
* data.c:
|
||||
* dbusbind.c:
|
||||
* dired.c:
|
||||
* dispnew.c:
|
||||
* doc.c:
|
||||
* dosfns.c:
|
||||
* editfns.c:
|
||||
* emacs.c:
|
||||
* eval.c:
|
||||
* fileio.c:
|
||||
* filelock.c:
|
||||
* floatfns.c:
|
||||
* fns.c:
|
||||
* font.c:
|
||||
* fontset.c:
|
||||
* frame.c:
|
||||
* fringe.c:
|
||||
* image.c:
|
||||
* indent.c:
|
||||
* insdel.c:
|
||||
* keyboard.c:
|
||||
* keymap.c:
|
||||
* lread.c:
|
||||
* macros.c:
|
||||
* marker.c:
|
||||
* menu.c:
|
||||
* minibuf.c:
|
||||
* msdos.c:
|
||||
* nsfns.m:
|
||||
* nsmenu.m:
|
||||
* nsselect.m:
|
||||
* print.c:
|
||||
* process.c:
|
||||
* search.c:
|
||||
* sound.c:
|
||||
* syntax.c:
|
||||
* term.c:
|
||||
* terminal.c:
|
||||
* textprop.c:
|
||||
* undo.c:
|
||||
* w16select.c:
|
||||
* w32console.c:
|
||||
* w32fns.c:
|
||||
* w32font.c:
|
||||
* w32menu.c:
|
||||
* w32proc.c:
|
||||
* w32select.c:
|
||||
* window.c:
|
||||
* xdisp.c:
|
||||
* xfaces.c:
|
||||
* xfns.c:
|
||||
* xmenu.c:
|
||||
* xselect.c:
|
||||
* xsettings.c:
|
||||
* xsmfns.c: Likewise.
|
||||
|
||||
|
||||
2010-07-08 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* process.c (kbd_is_on_hold, hold_keyboard_input)
|
||||
(unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
|
||||
|
||||
2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
|
||||
|
||||
* xmenu.c (set_frame_menubar, create_and_show_popup_menu)
|
||||
(create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
|
||||
unless USE_LUCID.
|
||||
|
||||
2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
|
||||
|
||||
* xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration.
|
||||
|
|
43
src/alloc.c
43
src/alloc.c
|
@ -2250,8 +2250,7 @@ DEFUN ("make-string", Fmake_string, Smake_string, 2, 2, 0,
|
|||
doc: /* Return a newly created string of length LENGTH, with INIT in each element.
|
||||
LENGTH must be an integer.
|
||||
INIT must be an integer that represents a character. */)
|
||||
(length, init)
|
||||
Lisp_Object length, init;
|
||||
(Lisp_Object length, Lisp_Object init)
|
||||
{
|
||||
register Lisp_Object val;
|
||||
register unsigned char *p, *end;
|
||||
|
@ -2294,8 +2293,7 @@ INIT must be an integer that represents a character. */)
|
|||
DEFUN ("make-bool-vector", Fmake_bool_vector, Smake_bool_vector, 2, 2, 0,
|
||||
doc: /* Return a new bool-vector of length LENGTH, using INIT for each element.
|
||||
LENGTH must be a number. INIT matters only in whether it is t or nil. */)
|
||||
(length, init)
|
||||
Lisp_Object length, init;
|
||||
(Lisp_Object length, Lisp_Object init)
|
||||
{
|
||||
register Lisp_Object val;
|
||||
struct Lisp_Bool_Vector *p;
|
||||
|
@ -2687,8 +2685,7 @@ free_cons (struct Lisp_Cons *ptr)
|
|||
|
||||
DEFUN ("cons", Fcons, Scons, 2, 2, 0,
|
||||
doc: /* Create a new cons, give it CAR and CDR as components, and return it. */)
|
||||
(car, cdr)
|
||||
Lisp_Object car, cdr;
|
||||
(Lisp_Object car, Lisp_Object cdr)
|
||||
{
|
||||
register Lisp_Object val;
|
||||
|
||||
|
@ -2783,9 +2780,7 @@ DEFUN ("list", Flist, Slist, 0, MANY, 0,
|
|||
doc: /* Return a newly created list with specified arguments as elements.
|
||||
Any number of arguments, even zero arguments, are allowed.
|
||||
usage: (list &rest OBJECTS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
register Lisp_Object *args;
|
||||
(int nargs, register Lisp_Object *args)
|
||||
{
|
||||
register Lisp_Object val;
|
||||
val = Qnil;
|
||||
|
@ -2801,8 +2796,7 @@ usage: (list &rest OBJECTS) */)
|
|||
|
||||
DEFUN ("make-list", Fmake_list, Smake_list, 2, 2, 0,
|
||||
doc: /* Return a newly created list of length LENGTH, with each element being INIT. */)
|
||||
(length, init)
|
||||
register Lisp_Object length, init;
|
||||
(register Lisp_Object length, Lisp_Object init)
|
||||
{
|
||||
register Lisp_Object val;
|
||||
register int size;
|
||||
|
@ -2979,8 +2973,7 @@ allocate_process (void)
|
|||
DEFUN ("make-vector", Fmake_vector, Smake_vector, 2, 2, 0,
|
||||
doc: /* Return a newly created vector of length LENGTH, with each element being INIT.
|
||||
See also the function `vector'. */)
|
||||
(length, init)
|
||||
register Lisp_Object length, init;
|
||||
(register Lisp_Object length, Lisp_Object init)
|
||||
{
|
||||
Lisp_Object vector;
|
||||
register EMACS_INT sizei;
|
||||
|
@ -3003,9 +2996,7 @@ DEFUN ("vector", Fvector, Svector, 0, MANY, 0,
|
|||
doc: /* Return a newly created vector with specified arguments as elements.
|
||||
Any number of arguments, even zero arguments, are allowed.
|
||||
usage: (vector &rest OBJECTS) */)
|
||||
(nargs, args)
|
||||
register int nargs;
|
||||
Lisp_Object *args;
|
||||
(register int nargs, Lisp_Object *args)
|
||||
{
|
||||
register Lisp_Object len, val;
|
||||
register int index;
|
||||
|
@ -3027,9 +3018,7 @@ stack size, (optional) doc string, and (optional) interactive spec.
|
|||
The first four arguments are required; at most six have any
|
||||
significance.
|
||||
usage: (make-byte-code ARGLIST BYTE-CODE CONSTANTS DEPTH &optional DOCSTRING INTERACTIVE-SPEC &rest ELEMENTS) */)
|
||||
(nargs, args)
|
||||
register int nargs;
|
||||
Lisp_Object *args;
|
||||
(register int nargs, Lisp_Object *args)
|
||||
{
|
||||
register Lisp_Object len, val;
|
||||
register int index;
|
||||
|
@ -3111,8 +3100,7 @@ init_symbol (void)
|
|||
DEFUN ("make-symbol", Fmake_symbol, Smake_symbol, 1, 1, 0,
|
||||
doc: /* Return a newly allocated uninterned symbol whose name is NAME.
|
||||
Its value and function definition are void, and its property list is nil. */)
|
||||
(name)
|
||||
Lisp_Object name;
|
||||
(Lisp_Object name)
|
||||
{
|
||||
register Lisp_Object val;
|
||||
register struct Lisp_Symbol *p;
|
||||
|
@ -3273,7 +3261,7 @@ make_save_value (void *pointer, int integer)
|
|||
|
||||
DEFUN ("make-marker", Fmake_marker, Smake_marker, 0, 0, 0,
|
||||
doc: /* Return a newly allocated marker which does not point at any place. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
register Lisp_Object val;
|
||||
register struct Lisp_Marker *p;
|
||||
|
@ -4002,7 +3990,7 @@ static double avg_live;
|
|||
|
||||
DEFUN ("gc-status", Fgc_status, Sgc_status, 0, 0, "",
|
||||
doc: /* Show information about live and zombie objects. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object args[8], zombie_list = Qnil;
|
||||
int i;
|
||||
|
@ -4796,8 +4784,7 @@ DEFUN ("purecopy", Fpurecopy, Spurecopy, 1, 1, 0,
|
|||
doc: /* Make a copy of object OBJ in pure storage.
|
||||
Recursively copies contents of vectors and cons cells.
|
||||
Does not copy symbols. Copies strings without text properties. */)
|
||||
(obj)
|
||||
register Lisp_Object obj;
|
||||
(register Lisp_Object obj)
|
||||
{
|
||||
if (NILP (Vpurify_flag))
|
||||
return obj;
|
||||
|
@ -4898,7 +4885,7 @@ Garbage collection happens automatically if you cons more than
|
|||
(USED-STRINGS . FREE-STRINGS))
|
||||
However, if there was overflow in pure space, `garbage-collect'
|
||||
returns nil, because real GC can't be done. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
register struct specbinding *bind;
|
||||
struct catchtag *catch;
|
||||
|
@ -6115,7 +6102,7 @@ DEFUN ("memory-limit", Fmemory_limit, Smemory_limit, 0, 0, 0,
|
|||
doc: /* Return the address of the last byte Emacs has allocated, divided by 1024.
|
||||
This may be helpful in debugging Emacs's memory usage.
|
||||
We divide the value by 1024 to make sure it fits in a Lisp integer. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object end;
|
||||
|
||||
|
@ -6137,7 +6124,7 @@ objects consed.
|
|||
MISCS include overlays, markers, and some internal types.
|
||||
Frames, windows, buffers, and subprocesses count as vectors
|
||||
(but the contents of a buffer's text do not count here). */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object consed[8];
|
||||
|
||||
|
|
138
src/buffer.c
138
src/buffer.c
|
@ -190,8 +190,7 @@ nsberror (Lisp_Object spec)
|
|||
DEFUN ("buffer-live-p", Fbuffer_live_p, Sbuffer_live_p, 1, 1, 0,
|
||||
doc: /* Return non-nil if OBJECT is a buffer which has not been killed.
|
||||
Value is nil if OBJECT is not a buffer or if it has been killed. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
return ((BUFFERP (object) && ! NILP (XBUFFER (object)->name))
|
||||
? Qt : Qnil);
|
||||
|
@ -202,8 +201,7 @@ DEFUN ("buffer-list", Fbuffer_list, Sbuffer_list, 0, 1, 0,
|
|||
If the optional arg FRAME is a frame, we return the buffer list
|
||||
in the proper order for that frame: the buffers in FRAME's `buffer-list'
|
||||
frame parameter come first, followed by the rest of the buffers. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object general;
|
||||
general = Fmapcar (Qcdr, Vbuffer_alist);
|
||||
|
@ -266,8 +264,7 @@ DEFUN ("get-buffer", Fget_buffer, Sget_buffer, 1, 1, 0,
|
|||
BUFFER-OR-NAME must be either a string or a buffer. If BUFFER-OR-NAME
|
||||
is a string and there is no buffer with that name, return nil. If
|
||||
BUFFER-OR-NAME is a buffer, return it as given. */)
|
||||
(buffer_or_name)
|
||||
register Lisp_Object buffer_or_name;
|
||||
(register Lisp_Object buffer_or_name)
|
||||
{
|
||||
if (BUFFERP (buffer_or_name))
|
||||
return buffer_or_name;
|
||||
|
@ -281,8 +278,7 @@ DEFUN ("get-file-buffer", Fget_file_buffer, Sget_file_buffer, 1, 1, 0,
|
|||
The buffer's `buffer-file-name' must match exactly the expansion of FILENAME.
|
||||
If there is no such live buffer, return nil.
|
||||
See also `find-buffer-visiting'. */)
|
||||
(filename)
|
||||
register Lisp_Object filename;
|
||||
(register Lisp_Object filename)
|
||||
{
|
||||
register Lisp_Object tail, buf, tem;
|
||||
Lisp_Object handler;
|
||||
|
@ -337,8 +333,7 @@ buffer does not keep undo information.
|
|||
|
||||
If BUFFER-OR-NAME is a buffer instead of a string, return it as given,
|
||||
even if it is dead. The return value is never nil. */)
|
||||
(buffer_or_name)
|
||||
register Lisp_Object buffer_or_name;
|
||||
(register Lisp_Object buffer_or_name)
|
||||
{
|
||||
register Lisp_Object buffer, name;
|
||||
register struct buffer *b;
|
||||
|
@ -533,8 +528,7 @@ NAME should be a string which is not the name of an existing buffer.
|
|||
Optional argument CLONE non-nil means preserve BASE-BUFFER's state,
|
||||
such as major and minor modes, in the indirect buffer.
|
||||
CLONE nil means the indirect buffer's state is reset to default values. */)
|
||||
(base_buffer, name, clone)
|
||||
Lisp_Object base_buffer, name, clone;
|
||||
(Lisp_Object base_buffer, Lisp_Object name, Lisp_Object clone)
|
||||
{
|
||||
Lisp_Object buf, tem;
|
||||
struct buffer *b;
|
||||
|
@ -829,8 +823,7 @@ Otherwise modify name by appending `<NUMBER>', incrementing NUMBER
|
|||
\(starting at 2) until an unused name is found, and then return that name.
|
||||
Optional second argument IGNORE specifies a name that is okay to use (if
|
||||
it is in the sequence to be tried) even if a buffer with that name exists. */)
|
||||
(name, ignore)
|
||||
register Lisp_Object name, ignore;
|
||||
(register Lisp_Object name, Lisp_Object ignore)
|
||||
{
|
||||
register Lisp_Object gentemp, tem;
|
||||
int count;
|
||||
|
@ -864,8 +857,7 @@ DEFUN ("buffer-name", Fbuffer_name, Sbuffer_name, 0, 1, 0,
|
|||
doc: /* Return the name of BUFFER, as a string.
|
||||
BUFFER defaults to the current buffer.
|
||||
Return nil if BUFFER has been killed. */)
|
||||
(buffer)
|
||||
register Lisp_Object buffer;
|
||||
(register Lisp_Object buffer)
|
||||
{
|
||||
if (NILP (buffer))
|
||||
return current_buffer->name;
|
||||
|
@ -876,8 +868,7 @@ Return nil if BUFFER has been killed. */)
|
|||
DEFUN ("buffer-file-name", Fbuffer_file_name, Sbuffer_file_name, 0, 1, 0,
|
||||
doc: /* Return name of file BUFFER is visiting, or nil if none.
|
||||
No argument or nil as argument means use the current buffer. */)
|
||||
(buffer)
|
||||
register Lisp_Object buffer;
|
||||
(register Lisp_Object buffer)
|
||||
{
|
||||
if (NILP (buffer))
|
||||
return current_buffer->filename;
|
||||
|
@ -890,8 +881,7 @@ DEFUN ("buffer-base-buffer", Fbuffer_base_buffer, Sbuffer_base_buffer,
|
|||
doc: /* Return the base buffer of indirect buffer BUFFER.
|
||||
If BUFFER is not indirect, return nil.
|
||||
BUFFER defaults to the current buffer. */)
|
||||
(buffer)
|
||||
register Lisp_Object buffer;
|
||||
(register Lisp_Object buffer)
|
||||
{
|
||||
struct buffer *base;
|
||||
Lisp_Object base_buffer;
|
||||
|
@ -915,9 +905,7 @@ DEFUN ("buffer-local-value", Fbuffer_local_value,
|
|||
doc: /* Return the value of VARIABLE in BUFFER.
|
||||
If VARIABLE does not have a buffer-local binding in BUFFER, the value
|
||||
is the default binding of the variable. */)
|
||||
(variable, buffer)
|
||||
register Lisp_Object variable;
|
||||
register Lisp_Object buffer;
|
||||
(register Lisp_Object variable, register Lisp_Object buffer)
|
||||
{
|
||||
register struct buffer *buf;
|
||||
register Lisp_Object result;
|
||||
|
@ -1015,8 +1003,7 @@ Most elements look like (SYMBOL . VALUE), describing one variable.
|
|||
For a symbol that is locally unbound, just the symbol appears in the value.
|
||||
Note that storing new VALUEs in these elements doesn't change the variables.
|
||||
No argument or nil as argument means use current buffer as BUFFER. */)
|
||||
(buffer)
|
||||
register Lisp_Object buffer;
|
||||
(register Lisp_Object buffer)
|
||||
{
|
||||
register struct buffer *buf;
|
||||
register Lisp_Object result;
|
||||
|
@ -1058,8 +1045,7 @@ DEFUN ("buffer-modified-p", Fbuffer_modified_p, Sbuffer_modified_p,
|
|||
0, 1, 0,
|
||||
doc: /* Return t if BUFFER was modified since its file was last read or saved.
|
||||
No argument or nil as argument means use current buffer as BUFFER. */)
|
||||
(buffer)
|
||||
register Lisp_Object buffer;
|
||||
(register Lisp_Object buffer)
|
||||
{
|
||||
register struct buffer *buf;
|
||||
if (NILP (buffer))
|
||||
|
@ -1077,8 +1063,7 @@ DEFUN ("set-buffer-modified-p", Fset_buffer_modified_p, Sset_buffer_modified_p,
|
|||
1, 1, 0,
|
||||
doc: /* Mark current buffer as modified or unmodified according to FLAG.
|
||||
A non-nil FLAG means mark the buffer modified. */)
|
||||
(flag)
|
||||
register Lisp_Object flag;
|
||||
(register Lisp_Object flag)
|
||||
{
|
||||
register int already;
|
||||
register Lisp_Object fn;
|
||||
|
@ -1147,8 +1132,7 @@ DEFUN ("restore-buffer-modified-p", Frestore_buffer_modified_p,
|
|||
doc: /* Like `set-buffer-modified-p', with a difference concerning redisplay.
|
||||
It is not ensured that mode lines will be updated to show the modified
|
||||
state of the current buffer. Use with care. */)
|
||||
(flag)
|
||||
Lisp_Object flag;
|
||||
(Lisp_Object flag)
|
||||
{
|
||||
#ifdef CLASH_DETECTION
|
||||
Lisp_Object fn;
|
||||
|
@ -1178,8 +1162,7 @@ DEFUN ("buffer-modified-tick", Fbuffer_modified_tick, Sbuffer_modified_tick,
|
|||
Each buffer has a tick counter which is incremented each time the
|
||||
text in that buffer is changed. It wraps around occasionally.
|
||||
No argument or nil as argument means use current buffer as BUFFER. */)
|
||||
(buffer)
|
||||
register Lisp_Object buffer;
|
||||
(register Lisp_Object buffer)
|
||||
{
|
||||
register struct buffer *buf;
|
||||
if (NILP (buffer))
|
||||
|
@ -1203,8 +1186,7 @@ values returned by two individual calls of `buffer-chars-modified-tick',
|
|||
you can tell whether a character change occurred in that buffer in
|
||||
between these calls. No argument or nil as argument means use current
|
||||
buffer as BUFFER. */)
|
||||
(buffer)
|
||||
register Lisp_Object buffer;
|
||||
(register Lisp_Object buffer)
|
||||
{
|
||||
register struct buffer *buf;
|
||||
if (NILP (buffer))
|
||||
|
@ -1230,8 +1212,7 @@ If UNIQUE is non-nil, come up with a new name using
|
|||
Interactively, you can set UNIQUE with a prefix argument.
|
||||
We return the name we actually gave the buffer.
|
||||
This does not change the name of the visited file (if any). */)
|
||||
(newname, unique)
|
||||
register Lisp_Object newname, unique;
|
||||
(register Lisp_Object newname, Lisp_Object unique)
|
||||
{
|
||||
register Lisp_Object tem, buf;
|
||||
|
||||
|
@ -1278,8 +1259,7 @@ If the optional third argument FRAME is non-nil, use that frame's
|
|||
buffer list instead of the selected frame's buffer list.
|
||||
If no other buffer exists, the buffer `*scratch*' is returned.
|
||||
If BUFFER is omitted or nil, some interesting buffer is returned. */)
|
||||
(buffer, visible_ok, frame)
|
||||
register Lisp_Object buffer, visible_ok, frame;
|
||||
(register Lisp_Object buffer, Lisp_Object visible_ok, Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object Fset_buffer_major_mode (Lisp_Object buffer);
|
||||
register Lisp_Object tail, buf, notsogood, tem, pred, add_ons;
|
||||
|
@ -1350,8 +1330,7 @@ DEFUN ("buffer-enable-undo", Fbuffer_enable_undo, Sbuffer_enable_undo,
|
|||
0, 1, "",
|
||||
doc: /* Start keeping undo information for buffer BUFFER.
|
||||
No argument or nil as argument means do this for the current buffer. */)
|
||||
(buffer)
|
||||
register Lisp_Object buffer;
|
||||
(register Lisp_Object buffer)
|
||||
{
|
||||
Lisp_Object real_buffer;
|
||||
|
||||
|
@ -1392,8 +1371,7 @@ is running.
|
|||
|
||||
Any processes that have this buffer as the `process-buffer' are killed
|
||||
with SIGHUP. */)
|
||||
(buffer_or_name)
|
||||
Lisp_Object buffer_or_name;
|
||||
(Lisp_Object buffer_or_name)
|
||||
{
|
||||
Lisp_Object buffer;
|
||||
register struct buffer *b;
|
||||
|
@ -1682,8 +1660,7 @@ For the *scratch* buffer, use `initial-major-mode', otherwise choose a mode
|
|||
according to `default-major-mode'.
|
||||
Use this function before selecting the buffer, since it may need to inspect
|
||||
the current buffer's major mode. */)
|
||||
(buffer)
|
||||
Lisp_Object buffer;
|
||||
(Lisp_Object buffer)
|
||||
{
|
||||
int count;
|
||||
Lisp_Object function;
|
||||
|
@ -1770,8 +1747,7 @@ its buffer, use `pop-to-buffer' for displaying the buffer.
|
|||
WARNING: This is NOT the way to work on another buffer temporarily
|
||||
within a Lisp program! Use `set-buffer' instead. That avoids
|
||||
messing with the window-buffer correspondences. */)
|
||||
(buffer_or_name, norecord)
|
||||
Lisp_Object buffer_or_name, norecord;
|
||||
(Lisp_Object buffer_or_name, Lisp_Object norecord)
|
||||
{
|
||||
if (EQ (buffer_or_name, Fwindow_buffer (selected_window)))
|
||||
{
|
||||
|
@ -1800,7 +1776,7 @@ messing with the window-buffer correspondences. */)
|
|||
|
||||
DEFUN ("current-buffer", Fcurrent_buffer, Scurrent_buffer, 0, 0, 0,
|
||||
doc: /* Return the current buffer as a Lisp object. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
register Lisp_Object buf;
|
||||
XSETBUFFER (buf, current_buffer);
|
||||
|
@ -1986,8 +1962,7 @@ also `save-excursion' when you want to make a buffer current
|
|||
temporarily. This function does not display the buffer, so its effect
|
||||
ends when the current command terminates. Use `switch-to-buffer' or
|
||||
`pop-to-buffer' to switch buffers permanently. */)
|
||||
(buffer_or_name)
|
||||
register Lisp_Object buffer_or_name;
|
||||
(register Lisp_Object buffer_or_name)
|
||||
{
|
||||
register Lisp_Object buffer;
|
||||
buffer = Fget_buffer (buffer_or_name);
|
||||
|
@ -2012,7 +1987,7 @@ set_buffer_if_live (Lisp_Object buffer)
|
|||
DEFUN ("barf-if-buffer-read-only", Fbarf_if_buffer_read_only,
|
||||
Sbarf_if_buffer_read_only, 0, 0, 0,
|
||||
doc: /* Signal a `buffer-read-only' error if the current buffer is read-only. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (!NILP (current_buffer->read_only)
|
||||
&& NILP (Vinhibit_read_only))
|
||||
|
@ -2032,8 +2007,7 @@ from the selected window if it is displayed there. If the selected
|
|||
window is dedicated to its buffer, delete that window if there are other
|
||||
windows on the same frame. If the selected window is the only window on
|
||||
its frame, iconify that frame. */)
|
||||
(buffer_or_name)
|
||||
register Lisp_Object buffer_or_name;
|
||||
(register Lisp_Object buffer_or_name)
|
||||
{
|
||||
Lisp_Object buffer;
|
||||
|
||||
|
@ -2087,7 +2061,7 @@ DEFUN ("erase-buffer", Ferase_buffer, Serase_buffer, 0, 0, "*",
|
|||
doc: /* Delete the entire contents of the current buffer.
|
||||
Any narrowing restriction in effect (see `narrow-to-region') is removed,
|
||||
so the buffer is truly empty after this. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Fwiden ();
|
||||
|
||||
|
@ -2161,8 +2135,7 @@ extern void r_alloc_reset_variable (POINTER_TYPE *, POINTER_TYPE *);
|
|||
DEFUN ("buffer-swap-text", Fbuffer_swap_text, Sbuffer_swap_text,
|
||||
1, 1, 0,
|
||||
doc: /* Swap the text between current buffer and BUFFER. */)
|
||||
(buffer)
|
||||
Lisp_Object buffer;
|
||||
(Lisp_Object buffer)
|
||||
{
|
||||
struct buffer *other_buffer;
|
||||
CHECK_BUFFER (buffer);
|
||||
|
@ -2300,8 +2273,7 @@ If FLAG is `to', this makes the buffer a multibyte buffer by changing
|
|||
all eight-bit bytes to eight-bit characters.
|
||||
If the multibyte flag was really changed, undo information of the
|
||||
current buffer is cleared. */)
|
||||
(flag)
|
||||
Lisp_Object flag;
|
||||
(Lisp_Object flag)
|
||||
{
|
||||
struct Lisp_Marker *tail, *markers;
|
||||
struct buffer *other;
|
||||
|
@ -2599,7 +2571,7 @@ a non-nil `permanent-local' property are not eliminated by this function.
|
|||
|
||||
The first thing this function does is run
|
||||
the normal hook `change-major-mode-hook'. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (!NILP (Vrun_hooks))
|
||||
call1 (Vrun_hooks, Qchange_major_mode_hook);
|
||||
|
@ -3700,8 +3672,7 @@ fix_overlays_before (struct buffer *bp, EMACS_INT prev, EMACS_INT pos)
|
|||
|
||||
DEFUN ("overlayp", Foverlayp, Soverlayp, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is an overlay. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
return (OVERLAYP (object) ? Qt : Qnil);
|
||||
}
|
||||
|
@ -3716,9 +3687,7 @@ for the front of the overlay advance when text is inserted there
|
|||
The fifth arg REAR-ADVANCE, if non-nil, makes the marker
|
||||
for the rear of the overlay advance when text is inserted there
|
||||
\(which means the text *is* included in the overlay). */)
|
||||
(beg, end, buffer, front_advance, rear_advance)
|
||||
Lisp_Object beg, end, buffer;
|
||||
Lisp_Object front_advance, rear_advance;
|
||||
(Lisp_Object beg, Lisp_Object end, Lisp_Object buffer, Lisp_Object front_advance, Lisp_Object rear_advance)
|
||||
{
|
||||
Lisp_Object overlay;
|
||||
struct buffer *b;
|
||||
|
@ -3838,8 +3807,7 @@ DEFUN ("move-overlay", Fmove_overlay, Smove_overlay, 3, 4, 0,
|
|||
If BUFFER is omitted, leave OVERLAY in the same buffer it inhabits now.
|
||||
If BUFFER is omitted, and OVERLAY is in no buffer, put it in the current
|
||||
buffer. */)
|
||||
(overlay, beg, end, buffer)
|
||||
Lisp_Object overlay, beg, end, buffer;
|
||||
(Lisp_Object overlay, Lisp_Object beg, Lisp_Object end, Lisp_Object buffer)
|
||||
{
|
||||
struct buffer *b, *ob;
|
||||
Lisp_Object obuffer;
|
||||
|
@ -3948,8 +3916,7 @@ buffer. */)
|
|||
|
||||
DEFUN ("delete-overlay", Fdelete_overlay, Sdelete_overlay, 1, 1, 0,
|
||||
doc: /* Delete the overlay OVERLAY from its buffer. */)
|
||||
(overlay)
|
||||
Lisp_Object overlay;
|
||||
(Lisp_Object overlay)
|
||||
{
|
||||
Lisp_Object buffer;
|
||||
struct buffer *b;
|
||||
|
@ -3989,8 +3956,7 @@ DEFUN ("delete-overlay", Fdelete_overlay, Sdelete_overlay, 1, 1, 0,
|
|||
|
||||
DEFUN ("overlay-start", Foverlay_start, Soverlay_start, 1, 1, 0,
|
||||
doc: /* Return the position at which OVERLAY starts. */)
|
||||
(overlay)
|
||||
Lisp_Object overlay;
|
||||
(Lisp_Object overlay)
|
||||
{
|
||||
CHECK_OVERLAY (overlay);
|
||||
|
||||
|
@ -3999,8 +3965,7 @@ DEFUN ("overlay-start", Foverlay_start, Soverlay_start, 1, 1, 0,
|
|||
|
||||
DEFUN ("overlay-end", Foverlay_end, Soverlay_end, 1, 1, 0,
|
||||
doc: /* Return the position at which OVERLAY ends. */)
|
||||
(overlay)
|
||||
Lisp_Object overlay;
|
||||
(Lisp_Object overlay)
|
||||
{
|
||||
CHECK_OVERLAY (overlay);
|
||||
|
||||
|
@ -4010,8 +3975,7 @@ DEFUN ("overlay-end", Foverlay_end, Soverlay_end, 1, 1, 0,
|
|||
DEFUN ("overlay-buffer", Foverlay_buffer, Soverlay_buffer, 1, 1, 0,
|
||||
doc: /* Return the buffer OVERLAY belongs to.
|
||||
Return nil if OVERLAY has been deleted. */)
|
||||
(overlay)
|
||||
Lisp_Object overlay;
|
||||
(Lisp_Object overlay)
|
||||
{
|
||||
CHECK_OVERLAY (overlay);
|
||||
|
||||
|
@ -4022,8 +3986,7 @@ DEFUN ("overlay-properties", Foverlay_properties, Soverlay_properties, 1, 1, 0,
|
|||
doc: /* Return a list of the properties on OVERLAY.
|
||||
This is a copy of OVERLAY's plist; modifying its conses has no effect on
|
||||
OVERLAY. */)
|
||||
(overlay)
|
||||
Lisp_Object overlay;
|
||||
(Lisp_Object overlay)
|
||||
{
|
||||
CHECK_OVERLAY (overlay);
|
||||
|
||||
|
@ -4033,8 +3996,7 @@ OVERLAY. */)
|
|||
|
||||
DEFUN ("overlays-at", Foverlays_at, Soverlays_at, 1, 1, 0,
|
||||
doc: /* Return a list of the overlays that contain the character at POS. */)
|
||||
(pos)
|
||||
Lisp_Object pos;
|
||||
(Lisp_Object pos)
|
||||
{
|
||||
int noverlays;
|
||||
Lisp_Object *overlay_vec;
|
||||
|
@ -4066,8 +4028,7 @@ and also contained within the specified region.
|
|||
Empty overlays are included in the result if they are located at BEG,
|
||||
between BEG and END, or at END provided END denotes the position at the
|
||||
end of the buffer. */)
|
||||
(beg, end)
|
||||
Lisp_Object beg, end;
|
||||
(Lisp_Object beg, Lisp_Object end)
|
||||
{
|
||||
int noverlays;
|
||||
Lisp_Object *overlay_vec;
|
||||
|
@ -4097,8 +4058,7 @@ DEFUN ("next-overlay-change", Fnext_overlay_change, Snext_overlay_change,
|
|||
doc: /* Return the next position after POS where an overlay starts or ends.
|
||||
If there are no overlay boundaries from POS to (point-max),
|
||||
the value is (point-max). */)
|
||||
(pos)
|
||||
Lisp_Object pos;
|
||||
(Lisp_Object pos)
|
||||
{
|
||||
int noverlays;
|
||||
EMACS_INT endpos;
|
||||
|
@ -4139,8 +4099,7 @@ DEFUN ("previous-overlay-change", Fprevious_overlay_change,
|
|||
doc: /* Return the previous position before POS where an overlay starts or ends.
|
||||
If there are no overlay boundaries from (point-min) to POS,
|
||||
the value is (point-min). */)
|
||||
(pos)
|
||||
Lisp_Object pos;
|
||||
(Lisp_Object pos)
|
||||
{
|
||||
int noverlays;
|
||||
EMACS_INT prevpos;
|
||||
|
@ -4176,7 +4135,7 @@ the cdr has all the overlays after the overlay center.
|
|||
Recentering overlays moves overlays between these lists.
|
||||
The lists you get are copies, so that changing them has no effect.
|
||||
However, the overlays you get are the real objects that the buffer uses. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
struct Lisp_Overlay *ol;
|
||||
Lisp_Object before = Qnil, after = Qnil, tmp;
|
||||
|
@ -4197,8 +4156,7 @@ DEFUN ("overlay-recenter", Foverlay_recenter, Soverlay_recenter, 1, 1, 0,
|
|||
doc: /* Recenter the overlays of the current buffer around position POS.
|
||||
That makes overlay lookup faster for positions near POS (but perhaps slower
|
||||
for positions far away from POS). */)
|
||||
(pos)
|
||||
Lisp_Object pos;
|
||||
(Lisp_Object pos)
|
||||
{
|
||||
CHECK_NUMBER_COERCE_MARKER (pos);
|
||||
|
||||
|
@ -4208,8 +4166,7 @@ for positions far away from POS). */)
|
|||
|
||||
DEFUN ("overlay-get", Foverlay_get, Soverlay_get, 2, 2, 0,
|
||||
doc: /* Get the property of overlay OVERLAY with property name PROP. */)
|
||||
(overlay, prop)
|
||||
Lisp_Object overlay, prop;
|
||||
(Lisp_Object overlay, Lisp_Object prop)
|
||||
{
|
||||
CHECK_OVERLAY (overlay);
|
||||
return lookup_char_property (XOVERLAY (overlay)->plist, prop, 0);
|
||||
|
@ -4217,8 +4174,7 @@ DEFUN ("overlay-get", Foverlay_get, Soverlay_get, 2, 2, 0,
|
|||
|
||||
DEFUN ("overlay-put", Foverlay_put, Soverlay_put, 3, 3, 0,
|
||||
doc: /* Set one property of overlay OVERLAY: give property PROP value VALUE. */)
|
||||
(overlay, prop, value)
|
||||
Lisp_Object overlay, prop, value;
|
||||
(Lisp_Object overlay, Lisp_Object prop, Lisp_Object value)
|
||||
{
|
||||
Lisp_Object tail, buffer;
|
||||
int changed;
|
||||
|
|
|
@ -403,8 +403,7 @@ The first argument, BYTESTR, is a string of byte code;
|
|||
the second, VECTOR, a vector of constants;
|
||||
the third, MAXDEPTH, the maximum stack depth used in this function.
|
||||
If the third argument is incorrect, Emacs may crash. */)
|
||||
(bytestr, vector, maxdepth)
|
||||
Lisp_Object bytestr, vector, maxdepth;
|
||||
(Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth)
|
||||
{
|
||||
int count = SPECPDL_INDEX ();
|
||||
#ifdef BYTE_CODE_METER
|
||||
|
|
|
@ -131,8 +131,7 @@ If the string begins with `^' and `shift-select-mode' is non-nil,
|
|||
You may use `@', `*', and `^' together. They are processed in the
|
||||
order that they appear, before reading any arguments.
|
||||
usage: (interactive &optional ARGS) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
return Qnil;
|
||||
}
|
||||
|
@ -263,8 +262,7 @@ Optional third arg KEYS, if given, specifies the sequence of events to
|
|||
supply, as a vector, if the command inquires which events were used to
|
||||
invoke it. If KEYS is omitted or nil, the return value of
|
||||
`this-command-keys-vector' is used. */)
|
||||
(function, record_flag, keys)
|
||||
Lisp_Object function, record_flag, keys;
|
||||
(Lisp_Object function, Lisp_Object record_flag, Lisp_Object keys)
|
||||
{
|
||||
Lisp_Object *args, *visargs;
|
||||
Lisp_Object specs;
|
||||
|
@ -872,8 +870,7 @@ DEFUN ("prefix-numeric-value", Fprefix_numeric_value, Sprefix_numeric_value,
|
|||
doc: /* Return numeric meaning of raw prefix argument RAW.
|
||||
A raw prefix argument is what you get from `(interactive "P")'.
|
||||
Its numeric meaning is what you would get from `(interactive "p")'. */)
|
||||
(raw)
|
||||
Lisp_Object raw;
|
||||
(Lisp_Object raw)
|
||||
{
|
||||
Lisp_Object val;
|
||||
|
||||
|
|
|
@ -215,9 +215,7 @@ and returns a numeric exit status or a signal description string.
|
|||
If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.
|
||||
|
||||
usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
register Lisp_Object *args;
|
||||
(int nargs, register Lisp_Object *args)
|
||||
{
|
||||
Lisp_Object infile, buffer, current_dir, path;
|
||||
int display_p;
|
||||
|
@ -877,9 +875,7 @@ and returns a numeric exit status or a signal description string.
|
|||
If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.
|
||||
|
||||
usage: (call-process-region START END PROGRAM &optional DELETE BUFFER DISPLAY &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
register Lisp_Object *args;
|
||||
(int nargs, register Lisp_Object *args)
|
||||
{
|
||||
struct gcpro gcpro1;
|
||||
Lisp_Object filename_string;
|
||||
|
@ -1383,8 +1379,7 @@ This function searches `process-environment' for VARIABLE.
|
|||
If optional parameter ENV is a list, then search this list instead of
|
||||
`process-environment', and return t when encountering a negative entry
|
||||
\(an entry for a variable with no value). */)
|
||||
(variable, env)
|
||||
Lisp_Object variable, env;
|
||||
(Lisp_Object variable, Lisp_Object env)
|
||||
{
|
||||
char *value;
|
||||
int valuelen;
|
||||
|
|
|
@ -153,8 +153,7 @@ DEFUN ("upcase", Fupcase, Supcase, 1, 1, 0,
|
|||
The argument may be a character or string. The result has the same type.
|
||||
The argument object is not altered--the value is a copy.
|
||||
See also `capitalize', `downcase' and `upcase-initials'. */)
|
||||
(obj)
|
||||
Lisp_Object obj;
|
||||
(Lisp_Object obj)
|
||||
{
|
||||
return casify_object (CASE_UP, obj);
|
||||
}
|
||||
|
@ -163,8 +162,7 @@ DEFUN ("downcase", Fdowncase, Sdowncase, 1, 1, 0,
|
|||
doc: /* Convert argument to lower case and return that.
|
||||
The argument may be a character or string. The result has the same type.
|
||||
The argument object is not altered--the value is a copy. */)
|
||||
(obj)
|
||||
Lisp_Object obj;
|
||||
(Lisp_Object obj)
|
||||
{
|
||||
return casify_object (CASE_DOWN, obj);
|
||||
}
|
||||
|
@ -175,8 +173,7 @@ This means that each word's first character is upper case
|
|||
and the rest is lower case.
|
||||
The argument may be a character or string. The result has the same type.
|
||||
The argument object is not altered--the value is a copy. */)
|
||||
(obj)
|
||||
Lisp_Object obj;
|
||||
(Lisp_Object obj)
|
||||
{
|
||||
return casify_object (CASE_CAPITALIZE, obj);
|
||||
}
|
||||
|
@ -188,8 +185,7 @@ DEFUN ("upcase-initials", Fupcase_initials, Supcase_initials, 1, 1, 0,
|
|||
Do not change the other letters of each word.
|
||||
The argument may be a character or string. The result has the same type.
|
||||
The argument object is not altered--the value is a copy. */)
|
||||
(obj)
|
||||
Lisp_Object obj;
|
||||
(Lisp_Object obj)
|
||||
{
|
||||
return casify_object (CASE_CAPITALIZE_UP, obj);
|
||||
}
|
||||
|
@ -306,8 +302,7 @@ These arguments specify the starting and ending character numbers of
|
|||
the region to operate on. When used as a command, the text between
|
||||
point and the mark is operated on.
|
||||
See also `capitalize-region'. */)
|
||||
(beg, end)
|
||||
Lisp_Object beg, end;
|
||||
(Lisp_Object beg, Lisp_Object end)
|
||||
{
|
||||
casify_region (CASE_UP, beg, end);
|
||||
return Qnil;
|
||||
|
@ -318,8 +313,7 @@ DEFUN ("downcase-region", Fdowncase_region, Sdowncase_region, 2, 2, "r",
|
|||
These arguments specify the starting and ending character numbers of
|
||||
the region to operate on. When used as a command, the text between
|
||||
point and the mark is operated on. */)
|
||||
(beg, end)
|
||||
Lisp_Object beg, end;
|
||||
(Lisp_Object beg, Lisp_Object end)
|
||||
{
|
||||
casify_region (CASE_DOWN, beg, end);
|
||||
return Qnil;
|
||||
|
@ -331,8 +325,7 @@ Capitalized form means each word's first character is upper case
|
|||
and the rest of it is lower case.
|
||||
In programs, give two arguments, the starting and ending
|
||||
character positions to operate on. */)
|
||||
(beg, end)
|
||||
Lisp_Object beg, end;
|
||||
(Lisp_Object beg, Lisp_Object end)
|
||||
{
|
||||
casify_region (CASE_CAPITALIZE, beg, end);
|
||||
return Qnil;
|
||||
|
@ -346,8 +339,7 @@ DEFUN ("upcase-initials-region", Fupcase_initials_region,
|
|||
Subsequent letters of each word are not changed.
|
||||
In programs, give two arguments, the starting and ending
|
||||
character positions to operate on. */)
|
||||
(beg, end)
|
||||
Lisp_Object beg, end;
|
||||
(Lisp_Object beg, Lisp_Object end)
|
||||
{
|
||||
casify_region (CASE_CAPITALIZE_UP, beg, end);
|
||||
return Qnil;
|
||||
|
@ -376,8 +368,7 @@ DEFUN ("upcase-word", Fupcase_word, Supcase_word, 1, 1, "p",
|
|||
doc: /* Convert following word (or ARG words) to upper case, moving over.
|
||||
With negative argument, convert previous words but do not move.
|
||||
See also `capitalize-word'. */)
|
||||
(arg)
|
||||
Lisp_Object arg;
|
||||
(Lisp_Object arg)
|
||||
{
|
||||
Lisp_Object beg, end;
|
||||
EMACS_INT newpoint;
|
||||
|
@ -391,8 +382,7 @@ See also `capitalize-word'. */)
|
|||
DEFUN ("downcase-word", Fdowncase_word, Sdowncase_word, 1, 1, "p",
|
||||
doc: /* Convert following word (or ARG words) to lower case, moving over.
|
||||
With negative argument, convert previous words but do not move. */)
|
||||
(arg)
|
||||
Lisp_Object arg;
|
||||
(Lisp_Object arg)
|
||||
{
|
||||
Lisp_Object beg, end;
|
||||
EMACS_INT newpoint;
|
||||
|
@ -408,8 +398,7 @@ DEFUN ("capitalize-word", Fcapitalize_word, Scapitalize_word, 1, 1, "p",
|
|||
This gives the word(s) a first character in upper case
|
||||
and the rest lower case.
|
||||
With negative argument, capitalize previous words but do not move. */)
|
||||
(arg)
|
||||
Lisp_Object arg;
|
||||
(Lisp_Object arg)
|
||||
{
|
||||
Lisp_Object beg, end;
|
||||
EMACS_INT newpoint;
|
||||
|
|
|
@ -41,8 +41,7 @@ static void shuffle (Lisp_Object table, Lisp_Object c, Lisp_Object elt);
|
|||
DEFUN ("case-table-p", Fcase_table_p, Scase_table_p, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a case table.
|
||||
See `set-case-table' for more information on these data structures. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
Lisp_Object up, canon, eqv;
|
||||
|
||||
|
@ -71,7 +70,7 @@ check_case_table (Lisp_Object obj)
|
|||
|
||||
DEFUN ("current-case-table", Fcurrent_case_table, Scurrent_case_table, 0, 0, 0,
|
||||
doc: /* Return the case table of the current buffer. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return current_buffer->downcase_table;
|
||||
}
|
||||
|
@ -79,7 +78,7 @@ DEFUN ("current-case-table", Fcurrent_case_table, Scurrent_case_table, 0, 0, 0,
|
|||
DEFUN ("standard-case-table", Fstandard_case_table, Sstandard_case_table, 0, 0, 0,
|
||||
doc: /* Return the standard case table.
|
||||
This is the one used for new buffers. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return Vascii_downcase_table;
|
||||
}
|
||||
|
@ -103,8 +102,7 @@ CANONICALIZE maps each character to a canonical equivalent;
|
|||
EQUIVALENCES is a map that cyclicly permutes each equivalence class
|
||||
(of characters with the same canonical equivalent); it may be nil,
|
||||
in which case it is deduced from CANONICALIZE. */)
|
||||
(table)
|
||||
Lisp_Object table;
|
||||
(Lisp_Object table)
|
||||
{
|
||||
return set_case_table (table, 0);
|
||||
}
|
||||
|
@ -112,8 +110,7 @@ EQUIVALENCES is a map that cyclicly permutes each equivalence class
|
|||
DEFUN ("set-standard-case-table", Fset_standard_case_table, Sset_standard_case_table, 1, 1, 0,
|
||||
doc: /* Select a new standard case table for new buffers.
|
||||
See `set-case-table' for more info on case tables. */)
|
||||
(table)
|
||||
Lisp_Object table;
|
||||
(Lisp_Object table)
|
||||
{
|
||||
return set_case_table (table, 1);
|
||||
}
|
||||
|
|
|
@ -89,8 +89,7 @@ DEFUN ("make-category-set", Fmake_category_set, Smake_category_set, 1, 1, 0,
|
|||
CATEGORIES is a string of category mnemonics.
|
||||
The value is a bool-vector which has t at the indices corresponding to
|
||||
those categories. */)
|
||||
(categories)
|
||||
Lisp_Object categories;
|
||||
(Lisp_Object categories)
|
||||
{
|
||||
Lisp_Object val;
|
||||
int len;
|
||||
|
@ -126,8 +125,7 @@ should be a terse text (preferably less than 16 characters),
|
|||
and the rest lines should be the full description.
|
||||
The category is defined only in category table TABLE, which defaults to
|
||||
the current buffer's category table. */)
|
||||
(category, docstring, table)
|
||||
Lisp_Object category, docstring, table;
|
||||
(Lisp_Object category, Lisp_Object docstring, Lisp_Object table)
|
||||
{
|
||||
CHECK_CATEGORY (category);
|
||||
CHECK_STRING (docstring);
|
||||
|
@ -146,8 +144,7 @@ DEFUN ("category-docstring", Fcategory_docstring, Scategory_docstring, 1, 2, 0,
|
|||
doc: /* Return the documentation string of CATEGORY, as defined in TABLE.
|
||||
TABLE should be a category table and defaults to the current buffer's
|
||||
category table. */)
|
||||
(category, table)
|
||||
Lisp_Object category, table;
|
||||
(Lisp_Object category, Lisp_Object table)
|
||||
{
|
||||
CHECK_CATEGORY (category);
|
||||
table = check_category_table (table);
|
||||
|
@ -161,8 +158,7 @@ DEFUN ("get-unused-category", Fget_unused_category, Sget_unused_category,
|
|||
If no category remains available, return nil.
|
||||
The optional argument TABLE specifies which category table to modify;
|
||||
it defaults to the current buffer's category table. */)
|
||||
(table)
|
||||
Lisp_Object table;
|
||||
(Lisp_Object table)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -180,8 +176,7 @@ it defaults to the current buffer's category table. */)
|
|||
|
||||
DEFUN ("category-table-p", Fcategory_table_p, Scategory_table_p, 1, 1, 0,
|
||||
doc: /* Return t if ARG is a category table. */)
|
||||
(arg)
|
||||
Lisp_Object arg;
|
||||
(Lisp_Object arg)
|
||||
{
|
||||
if (CHAR_TABLE_P (arg)
|
||||
&& EQ (XCHAR_TABLE (arg)->purpose, Qcategory_table))
|
||||
|
@ -206,7 +201,7 @@ check_category_table (Lisp_Object table)
|
|||
DEFUN ("category-table", Fcategory_table, Scategory_table, 0, 0, 0,
|
||||
doc: /* Return the current category table.
|
||||
This is the one specified by the current buffer. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return current_buffer->category_table;
|
||||
}
|
||||
|
@ -215,7 +210,7 @@ DEFUN ("standard-category-table", Fstandard_category_table,
|
|||
Sstandard_category_table, 0, 0, 0,
|
||||
doc: /* Return the standard category table.
|
||||
This is the one used for new buffers. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return Vstandard_category_table;
|
||||
}
|
||||
|
@ -255,8 +250,7 @@ DEFUN ("copy-category-table", Fcopy_category_table, Scopy_category_table,
|
|||
0, 1, 0,
|
||||
doc: /* Construct a new category table and return it.
|
||||
It is a copy of the TABLE, which defaults to the standard category table. */)
|
||||
(table)
|
||||
Lisp_Object table;
|
||||
(Lisp_Object table)
|
||||
{
|
||||
if (!NILP (table))
|
||||
check_category_table (table);
|
||||
|
@ -269,7 +263,7 @@ It is a copy of the TABLE, which defaults to the standard category table. */)
|
|||
DEFUN ("make-category-table", Fmake_category_table, Smake_category_table,
|
||||
0, 0, 0,
|
||||
doc: /* Construct a new and empty category table and return it. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object val;
|
||||
int i;
|
||||
|
@ -286,8 +280,7 @@ DEFUN ("make-category-table", Fmake_category_table, Smake_category_table,
|
|||
DEFUN ("set-category-table", Fset_category_table, Sset_category_table, 1, 1, 0,
|
||||
doc: /* Specify TABLE as the category table for the current buffer.
|
||||
Return TABLE. */)
|
||||
(table)
|
||||
Lisp_Object table;
|
||||
(Lisp_Object table)
|
||||
{
|
||||
int idx;
|
||||
table = check_category_table (table);
|
||||
|
@ -308,8 +301,7 @@ char_category_set (int c)
|
|||
DEFUN ("char-category-set", Fchar_category_set, Schar_category_set, 1, 1, 0,
|
||||
doc: /* Return the category set of CHAR.
|
||||
usage: (char-category-set CHAR) */)
|
||||
(ch)
|
||||
Lisp_Object ch;
|
||||
(Lisp_Object ch)
|
||||
{
|
||||
CHECK_NUMBER (ch);
|
||||
return CATEGORY_SET (XFASTINT (ch));
|
||||
|
@ -321,8 +313,7 @@ DEFUN ("category-set-mnemonics", Fcategory_set_mnemonics,
|
|||
CATEGORY-SET is a bool-vector, and the categories \"in\" it are those
|
||||
that are indexes where t occurs in the bool-vector.
|
||||
The return value is a string containing those same categories. */)
|
||||
(category_set)
|
||||
Lisp_Object category_set;
|
||||
(Lisp_Object category_set)
|
||||
{
|
||||
int i, j;
|
||||
char str[96];
|
||||
|
@ -361,8 +352,7 @@ CHARACTER can be either a single character or a cons representing the
|
|||
lower and upper ends of an inclusive character range to modify.
|
||||
If optional fourth argument RESET is non-nil,
|
||||
then delete CATEGORY from the category set instead of adding it. */)
|
||||
(character, category, table, reset)
|
||||
Lisp_Object character, category, table, reset;
|
||||
(Lisp_Object character, Lisp_Object category, Lisp_Object table, Lisp_Object reset)
|
||||
{
|
||||
Lisp_Object set_value; /* Actual value to be set in category sets. */
|
||||
Lisp_Object category_set;
|
||||
|
|
|
@ -288,15 +288,14 @@ multibyte_char_to_unibyte_safe (int c)
|
|||
|
||||
DEFUN ("characterp", Fcharacterp, Scharacterp, 1, 2, 0,
|
||||
doc: /* Return non-nil if OBJECT is a character. */)
|
||||
(object, ignore)
|
||||
Lisp_Object object, ignore;
|
||||
(Lisp_Object object, Lisp_Object ignore)
|
||||
{
|
||||
return (CHARACTERP (object) ? Qt : Qnil);
|
||||
}
|
||||
|
||||
DEFUN ("max-char", Fmax_char, Smax_char, 0, 0, 0,
|
||||
doc: /* Return the character of the maximum code. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return make_number (MAX_CHAR);
|
||||
}
|
||||
|
@ -304,8 +303,7 @@ DEFUN ("max-char", Fmax_char, Smax_char, 0, 0, 0,
|
|||
DEFUN ("unibyte-char-to-multibyte", Funibyte_char_to_multibyte,
|
||||
Sunibyte_char_to_multibyte, 1, 1, 0,
|
||||
doc: /* Convert the byte CH to multibyte character. */)
|
||||
(ch)
|
||||
Lisp_Object ch;
|
||||
(Lisp_Object ch)
|
||||
{
|
||||
int c;
|
||||
|
||||
|
@ -321,8 +319,7 @@ DEFUN ("multibyte-char-to-unibyte", Fmultibyte_char_to_unibyte,
|
|||
Smultibyte_char_to_unibyte, 1, 1, 0,
|
||||
doc: /* Convert the multibyte character CH to a byte.
|
||||
If the multibyte character does not represent a byte, return -1. */)
|
||||
(ch)
|
||||
Lisp_Object ch;
|
||||
(Lisp_Object ch)
|
||||
{
|
||||
int cm;
|
||||
|
||||
|
@ -343,8 +340,7 @@ DEFUN ("char-bytes", Fchar_bytes, Schar_bytes, 1, 1, 0,
|
|||
doc: /* Return 1 regardless of the argument CHAR.
|
||||
This is now an obsolete function. We keep it just for backward compatibility.
|
||||
usage: (char-bytes CHAR) */)
|
||||
(ch)
|
||||
Lisp_Object ch;
|
||||
(Lisp_Object ch)
|
||||
{
|
||||
CHECK_CHARACTER (ch);
|
||||
return make_number (1);
|
||||
|
@ -355,8 +351,7 @@ DEFUN ("char-width", Fchar_width, Schar_width, 1, 1, 0,
|
|||
The width is measured by how many columns it occupies on the screen.
|
||||
Tab is taken to occupy `tab-width' columns.
|
||||
usage: (char-width CHAR) */)
|
||||
(ch)
|
||||
Lisp_Object ch;
|
||||
(Lisp_Object ch)
|
||||
{
|
||||
Lisp_Object disp;
|
||||
int c, width;
|
||||
|
@ -527,8 +522,7 @@ only the base leading-code is considered; the validity of
|
|||
the following bytes is not checked. Tabs in STRING are always
|
||||
taken to occupy `tab-width' columns.
|
||||
usage: (string-width STRING) */)
|
||||
(str)
|
||||
Lisp_Object str;
|
||||
(Lisp_Object str)
|
||||
{
|
||||
Lisp_Object val;
|
||||
|
||||
|
@ -541,8 +535,7 @@ DEFUN ("char-direction", Fchar_direction, Schar_direction, 1, 1, 0,
|
|||
doc: /* Return the direction of CHAR.
|
||||
The returned value is 0 for left-to-right and 1 for right-to-left.
|
||||
usage: (char-direction CHAR) */)
|
||||
(ch)
|
||||
Lisp_Object ch;
|
||||
(Lisp_Object ch)
|
||||
{
|
||||
int c;
|
||||
|
||||
|
@ -922,9 +915,7 @@ DEFUN ("string", Fstring, Sstring, 0, MANY, 0,
|
|||
doc: /*
|
||||
Concatenate all the argument characters and make the result a string.
|
||||
usage: (string &rest CHARACTERS) */)
|
||||
(n, args)
|
||||
int n;
|
||||
Lisp_Object *args;
|
||||
(int n, Lisp_Object *args)
|
||||
{
|
||||
int i, c;
|
||||
unsigned char *buf, *p;
|
||||
|
@ -949,9 +940,7 @@ usage: (string &rest CHARACTERS) */)
|
|||
DEFUN ("unibyte-string", Funibyte_string, Sunibyte_string, 0, MANY, 0,
|
||||
doc: /* Concatenate all the argument bytes and make the result a unibyte string.
|
||||
usage: (unibyte-string &rest BYTES) */)
|
||||
(n, args)
|
||||
int n;
|
||||
Lisp_Object *args;
|
||||
(int n, Lisp_Object *args)
|
||||
{
|
||||
int i, c;
|
||||
unsigned char *buf, *p;
|
||||
|
@ -981,8 +970,7 @@ DEFUN ("char-resolve-modifiers", Fchar_resolve_modifiers,
|
|||
The value is a character with modifiers resolved into the character
|
||||
code. Unresolved modifiers are kept in the value.
|
||||
usage: (char-resolve-modifiers CHAR) */)
|
||||
(character)
|
||||
Lisp_Object character;
|
||||
(Lisp_Object character)
|
||||
{
|
||||
int c;
|
||||
|
||||
|
@ -1001,8 +989,7 @@ non-nil, is an index of a target character in the string.
|
|||
|
||||
If the current buffer (or STRING) is multibyte, and the target
|
||||
character is not ASCII nor 8-bit character, an error is signalled. */)
|
||||
(position, string)
|
||||
Lisp_Object position, string;
|
||||
(Lisp_Object position, Lisp_Object string)
|
||||
{
|
||||
int c;
|
||||
EMACS_INT pos;
|
||||
|
|
|
@ -663,8 +663,7 @@ load_charset (struct charset *charset, int control_flag)
|
|||
|
||||
DEFUN ("charsetp", Fcharsetp, Scharsetp, 1, 1, 0,
|
||||
doc: /* Return non-nil if and only if OBJECT is a charset.*/)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
return (CHARSETP (object) ? Qt : Qnil);
|
||||
}
|
||||
|
@ -830,8 +829,7 @@ characters contained in CHARSET.
|
|||
|
||||
The optional 4th and 5th arguments FROM-CODE and TO-CODE specify the
|
||||
range of code points (in CHARSET) of target characters. */)
|
||||
(function, charset, arg, from_code, to_code)
|
||||
Lisp_Object function, charset, arg, from_code, to_code;
|
||||
(Lisp_Object function, Lisp_Object charset, Lisp_Object arg, Lisp_Object from_code, Lisp_Object to_code)
|
||||
{
|
||||
struct charset *cs;
|
||||
unsigned from, to;
|
||||
|
@ -869,9 +867,7 @@ DEFUN ("define-charset-internal", Fdefine_charset_internal,
|
|||
Sdefine_charset_internal, charset_arg_max, MANY, 0,
|
||||
doc: /* For internal use only.
|
||||
usage: (define-charset-internal ...) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
/* Charset attr vector. */
|
||||
Lisp_Object attrs;
|
||||
|
@ -1342,8 +1338,7 @@ define_charset_internal (Lisp_Object name,
|
|||
DEFUN ("define-charset-alias", Fdefine_charset_alias,
|
||||
Sdefine_charset_alias, 2, 2, 0,
|
||||
doc: /* Define ALIAS as an alias for charset CHARSET. */)
|
||||
(alias, charset)
|
||||
Lisp_Object alias, charset;
|
||||
(Lisp_Object alias, Lisp_Object charset)
|
||||
{
|
||||
Lisp_Object attr;
|
||||
|
||||
|
@ -1356,8 +1351,7 @@ DEFUN ("define-charset-alias", Fdefine_charset_alias,
|
|||
|
||||
DEFUN ("charset-plist", Fcharset_plist, Scharset_plist, 1, 1, 0,
|
||||
doc: /* Return the property list of CHARSET. */)
|
||||
(charset)
|
||||
Lisp_Object charset;
|
||||
(Lisp_Object charset)
|
||||
{
|
||||
Lisp_Object attrs;
|
||||
|
||||
|
@ -1368,8 +1362,7 @@ DEFUN ("charset-plist", Fcharset_plist, Scharset_plist, 1, 1, 0,
|
|||
|
||||
DEFUN ("set-charset-plist", Fset_charset_plist, Sset_charset_plist, 2, 2, 0,
|
||||
doc: /* Set CHARSET's property list to PLIST. */)
|
||||
(charset, plist)
|
||||
Lisp_Object charset, plist;
|
||||
(Lisp_Object charset, Lisp_Object plist)
|
||||
{
|
||||
Lisp_Object attrs;
|
||||
|
||||
|
@ -1389,8 +1382,7 @@ the same meaning as the `:unify-map' attribute in the function
|
|||
`define-charset' (which see).
|
||||
|
||||
Optional third argument DEUNIFY, if non-nil, means to de-unify CHARSET. */)
|
||||
(charset, unify_map, deunify)
|
||||
Lisp_Object charset, unify_map, deunify;
|
||||
(Lisp_Object charset, Lisp_Object unify_map, Lisp_Object deunify)
|
||||
{
|
||||
int id;
|
||||
struct charset *cs;
|
||||
|
@ -1445,8 +1437,7 @@ CHARS is the number of characters in a dimension: 94 or 96.
|
|||
This final char is for private use, thus the range is `0' (48) .. `?' (63).
|
||||
If there's no unused final char for the specified kind of charset,
|
||||
return nil. */)
|
||||
(dimension, chars)
|
||||
Lisp_Object dimension, chars;
|
||||
(Lisp_Object dimension, Lisp_Object chars)
|
||||
{
|
||||
int final_char;
|
||||
|
||||
|
@ -1485,8 +1476,7 @@ DEFUN ("declare-equiv-charset", Fdeclare_equiv_charset, Sdeclare_equiv_charset,
|
|||
On decoding by an ISO-2022 base coding system, when a charset
|
||||
specified by DIMENSION, CHARS, and FINAL-CHAR is designated, behave as
|
||||
if CHARSET is designated instead. */)
|
||||
(dimension, chars, final_char, charset)
|
||||
Lisp_Object dimension, chars, final_char, charset;
|
||||
(Lisp_Object dimension, Lisp_Object chars, Lisp_Object final_char, Lisp_Object charset)
|
||||
{
|
||||
int id;
|
||||
int chars_flag;
|
||||
|
@ -1584,8 +1574,7 @@ Optional arg TABLE if non-nil is a translation table to look up.
|
|||
|
||||
If the current buffer is unibyte, the returned list may contain
|
||||
only `ascii', `eight-bit-control', and `eight-bit-graphic'. */)
|
||||
(beg, end, table)
|
||||
Lisp_Object beg, end, table;
|
||||
(Lisp_Object beg, Lisp_Object end, Lisp_Object table)
|
||||
{
|
||||
Lisp_Object charsets;
|
||||
EMACS_INT from, from_byte, to, stop, stop_byte;
|
||||
|
@ -1636,8 +1625,7 @@ Optional arg TABLE if non-nil is a translation table to look up.
|
|||
|
||||
If STR is unibyte, the returned list may contain
|
||||
only `ascii', `eight-bit-control', and `eight-bit-graphic'. */)
|
||||
(str, table)
|
||||
Lisp_Object str, table;
|
||||
(Lisp_Object str, Lisp_Object table)
|
||||
{
|
||||
Lisp_Object charsets;
|
||||
int i;
|
||||
|
@ -1888,8 +1876,7 @@ CODE-POINT may be a cons (HIGHER-16-BIT-VALUE . LOWER-16-BIT-VALUE).
|
|||
|
||||
Optional argument RESTRICTION specifies a way to map the pair of CCS
|
||||
and CODE-POINT to a character. Currently not supported and just ignored. */)
|
||||
(charset, code_point, restriction)
|
||||
Lisp_Object charset, code_point, restriction;
|
||||
(Lisp_Object charset, Lisp_Object code_point, Lisp_Object restriction)
|
||||
{
|
||||
int c, id;
|
||||
unsigned code;
|
||||
|
@ -1919,8 +1906,7 @@ Return nil if CHARSET doesn't include CH.
|
|||
|
||||
Optional argument RESTRICTION specifies a way to map CH to a
|
||||
code-point in CCS. Currently not supported and just ignored. */)
|
||||
(ch, charset, restriction)
|
||||
Lisp_Object ch, charset, restriction;
|
||||
(Lisp_Object ch, Lisp_Object charset, Lisp_Object restriction)
|
||||
{
|
||||
int id;
|
||||
unsigned code;
|
||||
|
@ -1945,8 +1931,7 @@ DEFUN ("make-char", Fmake_char, Smake_char, 1, 5, 0,
|
|||
CODE1 through CODE4 are optional, but if you don't supply sufficient
|
||||
position codes, it is assumed that the minimum code in each dimension
|
||||
is specified. */)
|
||||
(charset, code1, code2, code3, code4)
|
||||
Lisp_Object charset, code1, code2, code3, code4;
|
||||
(Lisp_Object charset, Lisp_Object code1, Lisp_Object code2, Lisp_Object code3, Lisp_Object code4)
|
||||
{
|
||||
int id, dimension;
|
||||
struct charset *charsetp;
|
||||
|
@ -2062,8 +2047,7 @@ DEFUN ("split-char", Fsplit_char, Ssplit_char, 1, 1, 0,
|
|||
The charset is decided by the current priority order of charsets.
|
||||
A position-code is a byte value of each dimension of the code-point of
|
||||
CH in the charset. */)
|
||||
(ch)
|
||||
Lisp_Object ch;
|
||||
(Lisp_Object ch)
|
||||
{
|
||||
struct charset *charset;
|
||||
int c, dimension;
|
||||
|
@ -2093,8 +2077,7 @@ DEFUN ("char-charset", Fchar_charset, Schar_charset, 1, 2, 0,
|
|||
If optional 2nd arg RESTRICTION is non-nil, it is a list of charsets
|
||||
from which to find the charset. It may also be a coding system. In
|
||||
that case, find the charset from what supported by that coding system. */)
|
||||
(ch, restriction)
|
||||
Lisp_Object ch, restriction;
|
||||
(Lisp_Object ch, Lisp_Object restriction)
|
||||
{
|
||||
struct charset *charset;
|
||||
|
||||
|
@ -2132,8 +2115,7 @@ DEFUN ("charset-after", Fcharset_after, Scharset_after, 0, 1, 0,
|
|||
Return charset of a character in the current buffer at position POS.
|
||||
If POS is nil, it defauls to the current point.
|
||||
If POS is out of range, the value is nil. */)
|
||||
(pos)
|
||||
Lisp_Object pos;
|
||||
(Lisp_Object pos)
|
||||
{
|
||||
Lisp_Object ch;
|
||||
struct charset *charset;
|
||||
|
@ -2155,8 +2137,7 @@ by their DIMENSION, CHARS, and FINAL-CHAR,
|
|||
whereas Emacs distinguishes them by charset symbol.
|
||||
See the documentation of the function `charset-info' for the meanings of
|
||||
DIMENSION, CHARS, and FINAL-CHAR. */)
|
||||
(dimension, chars, final_char)
|
||||
Lisp_Object dimension, chars, final_char;
|
||||
(Lisp_Object dimension, Lisp_Object chars, Lisp_Object final_char)
|
||||
{
|
||||
int id;
|
||||
int chars_flag;
|
||||
|
@ -2175,7 +2156,7 @@ DEFUN ("clear-charset-maps", Fclear_charset_maps, Sclear_charset_maps,
|
|||
Internal use only.
|
||||
Clear temporary charset mapping tables.
|
||||
It should be called only from temacs invoked for dumping. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (temp_charset_work)
|
||||
{
|
||||
|
@ -2193,8 +2174,7 @@ DEFUN ("charset-priority-list", Fcharset_priority_list,
|
|||
Scharset_priority_list, 0, 1, 0,
|
||||
doc: /* Return the list of charsets ordered by priority.
|
||||
HIGHESTP non-nil means just return the highest priority one. */)
|
||||
(highestp)
|
||||
Lisp_Object highestp;
|
||||
(Lisp_Object highestp)
|
||||
{
|
||||
Lisp_Object val = Qnil, list = Vcharset_ordered_list;
|
||||
|
||||
|
@ -2213,9 +2193,7 @@ DEFUN ("set-charset-priority", Fset_charset_priority, Sset_charset_priority,
|
|||
1, MANY, 0,
|
||||
doc: /* Assign higher priority to the charsets given as arguments.
|
||||
usage: (set-charset-priority &rest charsets) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
Lisp_Object new_head, old_list, arglist[2];
|
||||
Lisp_Object list_2022, list_emacs_mule;
|
||||
|
@ -2267,8 +2245,7 @@ DEFUN ("charset-id-internal", Fcharset_id_internal, Scharset_id_internal,
|
|||
0, 1, 0,
|
||||
doc: /* Internal use only.
|
||||
Return charset identification number of CHARSET. */)
|
||||
(charset)
|
||||
Lisp_Object charset;
|
||||
(Lisp_Object charset)
|
||||
{
|
||||
int id;
|
||||
|
||||
|
|
|
@ -62,8 +62,7 @@ PURPOSE should be a symbol. If it has a `char-table-extra-slots'
|
|||
property, the property's value should be an integer between 0 and 10
|
||||
that specifies how many extra slots the char-table has. Otherwise,
|
||||
the char-table has no extra slot. */)
|
||||
(purpose, init)
|
||||
register Lisp_Object purpose, init;
|
||||
(register Lisp_Object purpose, Lisp_Object init)
|
||||
{
|
||||
Lisp_Object vector;
|
||||
Lisp_Object n;
|
||||
|
@ -452,8 +451,7 @@ DEFUN ("char-table-subtype", Fchar_table_subtype, Schar_table_subtype,
|
|||
1, 1, 0,
|
||||
doc: /*
|
||||
Return the subtype of char-table CHAR-TABLE. The value is a symbol. */)
|
||||
(char_table)
|
||||
Lisp_Object char_table;
|
||||
(Lisp_Object char_table)
|
||||
{
|
||||
CHECK_CHAR_TABLE (char_table);
|
||||
|
||||
|
@ -467,8 +465,7 @@ The value is either nil or another char-table.
|
|||
If CHAR-TABLE holds nil for a given character,
|
||||
then the actual applicable value is inherited from the parent char-table
|
||||
\(or from its parents, if necessary). */)
|
||||
(char_table)
|
||||
Lisp_Object char_table;
|
||||
(Lisp_Object char_table)
|
||||
{
|
||||
CHECK_CHAR_TABLE (char_table);
|
||||
|
||||
|
@ -479,8 +476,7 @@ DEFUN ("set-char-table-parent", Fset_char_table_parent, Sset_char_table_parent,
|
|||
2, 2, 0,
|
||||
doc: /* Set the parent char-table of CHAR-TABLE to PARENT.
|
||||
Return PARENT. PARENT must be either nil or another char-table. */)
|
||||
(char_table, parent)
|
||||
Lisp_Object char_table, parent;
|
||||
(Lisp_Object char_table, Lisp_Object parent)
|
||||
{
|
||||
Lisp_Object temp;
|
||||
|
||||
|
@ -503,8 +499,7 @@ Return PARENT. PARENT must be either nil or another char-table. */)
|
|||
DEFUN ("char-table-extra-slot", Fchar_table_extra_slot, Schar_table_extra_slot,
|
||||
2, 2, 0,
|
||||
doc: /* Return the value of CHAR-TABLE's extra-slot number N. */)
|
||||
(char_table, n)
|
||||
Lisp_Object char_table, n;
|
||||
(Lisp_Object char_table, Lisp_Object n)
|
||||
{
|
||||
CHECK_CHAR_TABLE (char_table);
|
||||
CHECK_NUMBER (n);
|
||||
|
@ -519,8 +514,7 @@ DEFUN ("set-char-table-extra-slot", Fset_char_table_extra_slot,
|
|||
Sset_char_table_extra_slot,
|
||||
3, 3, 0,
|
||||
doc: /* Set CHAR-TABLE's extra-slot number N to VALUE. */)
|
||||
(char_table, n, value)
|
||||
Lisp_Object char_table, n, value;
|
||||
(Lisp_Object char_table, Lisp_Object n, Lisp_Object value)
|
||||
{
|
||||
CHECK_CHAR_TABLE (char_table);
|
||||
CHECK_NUMBER (n);
|
||||
|
@ -536,8 +530,7 @@ DEFUN ("char-table-range", Fchar_table_range, Schar_table_range,
|
|||
doc: /* Return the value in CHAR-TABLE for a range of characters RANGE.
|
||||
RANGE should be nil (for the default value),
|
||||
a cons of character codes (for characters in the range), or a character code. */)
|
||||
(char_table, range)
|
||||
Lisp_Object char_table, range;
|
||||
(Lisp_Object char_table, Lisp_Object range)
|
||||
{
|
||||
Lisp_Object val;
|
||||
CHECK_CHAR_TABLE (char_table);
|
||||
|
@ -567,8 +560,7 @@ DEFUN ("set-char-table-range", Fset_char_table_range, Sset_char_table_range,
|
|||
RANGE should be t (for all characters), nil (for the default value),
|
||||
a cons of character codes (for characters in the range),
|
||||
or a character code. Return VALUE. */)
|
||||
(char_table, range, value)
|
||||
Lisp_Object char_table, range, value;
|
||||
(Lisp_Object char_table, Lisp_Object range, Lisp_Object value)
|
||||
{
|
||||
CHECK_CHAR_TABLE (char_table);
|
||||
if (EQ (range, Qt))
|
||||
|
@ -600,8 +592,7 @@ DEFUN ("set-char-table-default", Fset_char_table_default,
|
|||
Sset_char_table_default, 3, 3, 0,
|
||||
doc: /*
|
||||
This function is obsolete and has no effect. */)
|
||||
(char_table, ch, value)
|
||||
Lisp_Object char_table, ch, value;
|
||||
(Lisp_Object char_table, Lisp_Object ch, Lisp_Object value)
|
||||
{
|
||||
return Qnil;
|
||||
}
|
||||
|
@ -653,8 +644,7 @@ DEFUN ("optimize-char-table", Foptimize_char_table, Soptimize_char_table,
|
|||
doc: /* Optimize CHAR-TABLE.
|
||||
TEST is the comparison function used to decide whether two entries are
|
||||
equivalent and can be merged. It defaults to `equal'. */)
|
||||
(char_table, test)
|
||||
Lisp_Object char_table, test;
|
||||
(Lisp_Object char_table, Lisp_Object test)
|
||||
{
|
||||
Lisp_Object elt;
|
||||
int i;
|
||||
|
@ -866,8 +856,7 @@ Call FUNCTION for each character in CHAR-TABLE that has non-nil value.
|
|||
FUNCTION is called with two arguments--a key and a value.
|
||||
The key is a character code or a cons of character codes specifying a
|
||||
range of characters that have the same value. */)
|
||||
(function, char_table)
|
||||
Lisp_Object function, char_table;
|
||||
(Lisp_Object function, Lisp_Object char_table)
|
||||
{
|
||||
CHECK_CHAR_TABLE (char_table);
|
||||
|
||||
|
|
24
src/cmds.c
24
src/cmds.c
|
@ -48,8 +48,7 @@ extern Lisp_Object Vtranslation_table_for_input;
|
|||
|
||||
DEFUN ("forward-point", Fforward_point, Sforward_point, 1, 1, 0,
|
||||
doc: /* Return buffer position N characters after (before if N negative) point. */)
|
||||
(n)
|
||||
Lisp_Object n;
|
||||
(Lisp_Object n)
|
||||
{
|
||||
CHECK_NUMBER (n);
|
||||
|
||||
|
@ -63,8 +62,7 @@ On reaching end or beginning of buffer, stop and signal error.
|
|||
Depending on the bidirectional context, the movement may be to the
|
||||
right or to the left on the screen. This is in contrast with
|
||||
\\[right-char], which see. */)
|
||||
(n)
|
||||
Lisp_Object n;
|
||||
(Lisp_Object n)
|
||||
{
|
||||
if (NILP (n))
|
||||
XSETFASTINT (n, 1);
|
||||
|
@ -103,8 +101,7 @@ On attempt to pass beginning or end of buffer, stop and signal error.
|
|||
Depending on the bidirectional context, the movement may be to the
|
||||
right or to the left on the screen. This is in contrast with
|
||||
\\[left-char], which see. */)
|
||||
(n)
|
||||
Lisp_Object n;
|
||||
(Lisp_Object n)
|
||||
{
|
||||
if (NILP (n))
|
||||
XSETFASTINT (n, 1);
|
||||
|
@ -123,8 +120,7 @@ Returns the count of lines left to move. If moving forward,
|
|||
that is N - number of lines moved; if backward, N + number moved.
|
||||
With positive N, a non-empty line at the end counts as one line
|
||||
successfully moved (for the return value). */)
|
||||
(n)
|
||||
Lisp_Object n;
|
||||
(Lisp_Object n)
|
||||
{
|
||||
int opoint = PT, opoint_byte = PT_BYTE;
|
||||
int pos, pos_byte;
|
||||
|
@ -173,8 +169,7 @@ does not move. To ignore field boundaries bind
|
|||
`inhibit-field-text-motion' to t, or use the `forward-line' function
|
||||
instead. For instance, `(forward-line 0)' does the same thing as
|
||||
`(beginning-of-line)', except that it ignores field boundaries. */)
|
||||
(n)
|
||||
Lisp_Object n;
|
||||
(Lisp_Object n)
|
||||
{
|
||||
if (NILP (n))
|
||||
XSETFASTINT (n, 1);
|
||||
|
@ -197,8 +192,7 @@ point to a different line than the original, unconstrained result. If
|
|||
N is nil or 1, and a rear-sticky field ends at point, the point does
|
||||
not move. To ignore field boundaries bind `inhibit-field-text-motion'
|
||||
to t. */)
|
||||
(n)
|
||||
Lisp_Object n;
|
||||
(Lisp_Object n)
|
||||
{
|
||||
int newpos;
|
||||
|
||||
|
@ -243,8 +237,7 @@ Interactively, N is the prefix arg, and KILLFLAG is set if
|
|||
N was explicitly specified.
|
||||
|
||||
The command `delete-forward' is preferable for interactive use. */)
|
||||
(n, killflag)
|
||||
Lisp_Object n, killflag;
|
||||
(Lisp_Object n, Lisp_Object killflag)
|
||||
{
|
||||
int pos;
|
||||
|
||||
|
@ -286,8 +279,7 @@ Before insertion, `expand-abbrev' is executed if the inserted character does
|
|||
not have word syntax and the previous character in the buffer does.
|
||||
After insertion, the value of `auto-fill-function' is called if the
|
||||
`auto-fill-chars' table has a non-nil value for the inserted character. */)
|
||||
(n)
|
||||
Lisp_Object n;
|
||||
(Lisp_Object n)
|
||||
{
|
||||
int remove_boundary = 1;
|
||||
CHECK_NUMBER (n);
|
||||
|
|
101
src/coding.c
101
src/coding.c
|
@ -8091,8 +8091,7 @@ DEFUN ("coding-system-p", Fcoding_system_p, Scoding_system_p, 1, 1, 0,
|
|||
doc: /* Return t if OBJECT is nil or a coding-system.
|
||||
See the documentation of `define-coding-system' for information
|
||||
about coding-system objects. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (NILP (object)
|
||||
|| CODING_SYSTEM_ID (object) >= 0)
|
||||
|
@ -8106,8 +8105,7 @@ about coding-system objects. */)
|
|||
DEFUN ("read-non-nil-coding-system", Fread_non_nil_coding_system,
|
||||
Sread_non_nil_coding_system, 1, 1, 0,
|
||||
doc: /* Read a coding system from the minibuffer, prompting with string PROMPT. */)
|
||||
(prompt)
|
||||
Lisp_Object prompt;
|
||||
(Lisp_Object prompt)
|
||||
{
|
||||
Lisp_Object val;
|
||||
do
|
||||
|
@ -8124,8 +8122,7 @@ DEFUN ("read-coding-system", Fread_coding_system, Sread_coding_system, 1, 2, 0,
|
|||
If the user enters null input, return second argument DEFAULT-CODING-SYSTEM.
|
||||
Ignores case when completing coding systems (all Emacs coding systems
|
||||
are lower-case). */)
|
||||
(prompt, default_coding_system)
|
||||
Lisp_Object prompt, default_coding_system;
|
||||
(Lisp_Object prompt, Lisp_Object default_coding_system)
|
||||
{
|
||||
Lisp_Object val;
|
||||
int count = SPECPDL_INDEX ();
|
||||
|
@ -8146,8 +8143,7 @@ DEFUN ("check-coding-system", Fcheck_coding_system, Scheck_coding_system,
|
|||
If valid, return CODING-SYSTEM, else signal a `coding-system-error' error.
|
||||
It is valid if it is nil or a symbol defined as a coding system by the
|
||||
function `define-coding-system'. */)
|
||||
(coding_system)
|
||||
Lisp_Object coding_system;
|
||||
(Lisp_Object coding_system)
|
||||
{
|
||||
Lisp_Object define_form;
|
||||
|
||||
|
@ -8499,8 +8495,7 @@ format.
|
|||
|
||||
If optional argument HIGHEST is non-nil, return the coding system of
|
||||
highest priority. */)
|
||||
(start, end, highest)
|
||||
Lisp_Object start, end, highest;
|
||||
(Lisp_Object start, Lisp_Object end, Lisp_Object highest)
|
||||
{
|
||||
int from, to;
|
||||
int from_byte, to_byte;
|
||||
|
@ -8538,8 +8533,7 @@ format.
|
|||
|
||||
If optional argument HIGHEST is non-nil, return the coding system of
|
||||
highest priority. */)
|
||||
(string, highest)
|
||||
Lisp_Object string, highest;
|
||||
(Lisp_Object string, Lisp_Object highest)
|
||||
{
|
||||
CHECK_STRING (string);
|
||||
|
||||
|
@ -8581,8 +8575,7 @@ DEFUN ("find-coding-systems-region-internal",
|
|||
Ffind_coding_systems_region_internal,
|
||||
Sfind_coding_systems_region_internal, 2, 3, 0,
|
||||
doc: /* Internal use only. */)
|
||||
(start, end, exclude)
|
||||
Lisp_Object start, end, exclude;
|
||||
(Lisp_Object start, Lisp_Object end, Lisp_Object exclude)
|
||||
{
|
||||
Lisp_Object coding_attrs_list, safe_codings;
|
||||
EMACS_INT start_byte, end_byte;
|
||||
|
@ -8715,8 +8708,7 @@ list of positions.
|
|||
If optional 5th argument STRING is non-nil, it is a string to search
|
||||
for un-encodable characters. In that case, START and END are indexes
|
||||
to the string. */)
|
||||
(start, end, coding_system, count, string)
|
||||
Lisp_Object start, end, coding_system, count, string;
|
||||
(Lisp_Object start, Lisp_Object end, Lisp_Object coding_system, Lisp_Object count, Lisp_Object string)
|
||||
{
|
||||
int n;
|
||||
struct coding_system coding;
|
||||
|
@ -8831,8 +8823,7 @@ buffer positions. END is ignored.
|
|||
|
||||
If the current buffer (or START if it is a string) is unibyte, the value
|
||||
is nil. */)
|
||||
(start, end, coding_system_list)
|
||||
Lisp_Object start, end, coding_system_list;
|
||||
(Lisp_Object start, Lisp_Object end, Lisp_Object coding_system_list)
|
||||
{
|
||||
Lisp_Object list;
|
||||
EMACS_INT start_byte, end_byte;
|
||||
|
@ -8998,8 +8989,7 @@ If DESTINATION is t, the decoded text is returned.
|
|||
This function sets `last-coding-system-used' to the precise coding system
|
||||
used (which may be different from CODING-SYSTEM if CODING-SYSTEM is
|
||||
not fully specified.) */)
|
||||
(start, end, coding_system, destination)
|
||||
Lisp_Object start, end, coding_system, destination;
|
||||
(Lisp_Object start, Lisp_Object end, Lisp_Object coding_system, Lisp_Object destination)
|
||||
{
|
||||
return code_convert_region (start, end, coding_system, destination, 0, 0);
|
||||
}
|
||||
|
@ -9021,8 +9011,7 @@ If DESTINATION is t, the encoded text is returned.
|
|||
This function sets `last-coding-system-used' to the precise coding system
|
||||
used (which may be different from CODING-SYSTEM if CODING-SYSTEM is
|
||||
not fully specified.) */)
|
||||
(start, end, coding_system, destination)
|
||||
Lisp_Object start, end, coding_system, destination;
|
||||
(Lisp_Object start, Lisp_Object end, Lisp_Object coding_system, Lisp_Object destination)
|
||||
{
|
||||
return code_convert_region (start, end, coding_system, destination, 1, 0);
|
||||
}
|
||||
|
@ -9099,8 +9088,7 @@ case, the return value is the length of the decoded text.
|
|||
This function sets `last-coding-system-used' to the precise coding system
|
||||
used (which may be different from CODING-SYSTEM if CODING-SYSTEM is
|
||||
not fully specified.) */)
|
||||
(string, coding_system, nocopy, buffer)
|
||||
Lisp_Object string, coding_system, nocopy, buffer;
|
||||
(Lisp_Object string, Lisp_Object coding_system, Lisp_Object nocopy, Lisp_Object buffer)
|
||||
{
|
||||
return code_convert_string (string, coding_system, buffer,
|
||||
0, ! NILP (nocopy), 0);
|
||||
|
@ -9120,8 +9108,7 @@ case, the return value is the length of the encoded text.
|
|||
This function sets `last-coding-system-used' to the precise coding system
|
||||
used (which may be different from CODING-SYSTEM if CODING-SYSTEM is
|
||||
not fully specified.) */)
|
||||
(string, coding_system, nocopy, buffer)
|
||||
Lisp_Object string, coding_system, nocopy, buffer;
|
||||
(Lisp_Object string, Lisp_Object coding_system, Lisp_Object nocopy, Lisp_Object buffer)
|
||||
{
|
||||
return code_convert_string (string, coding_system, buffer,
|
||||
1, ! NILP (nocopy), 1);
|
||||
|
@ -9131,8 +9118,7 @@ not fully specified.) */)
|
|||
DEFUN ("decode-sjis-char", Fdecode_sjis_char, Sdecode_sjis_char, 1, 1, 0,
|
||||
doc: /* Decode a Japanese character which has CODE in shift_jis encoding.
|
||||
Return the corresponding character. */)
|
||||
(code)
|
||||
Lisp_Object code;
|
||||
(Lisp_Object code)
|
||||
{
|
||||
Lisp_Object spec, attrs, val;
|
||||
struct charset *charset_roman, *charset_kanji, *charset_kana, *charset;
|
||||
|
@ -9179,8 +9165,7 @@ Return the corresponding character. */)
|
|||
DEFUN ("encode-sjis-char", Fencode_sjis_char, Sencode_sjis_char, 1, 1, 0,
|
||||
doc: /* Encode a Japanese character CH to shift_jis encoding.
|
||||
Return the corresponding code in SJIS. */)
|
||||
(ch)
|
||||
Lisp_Object ch;
|
||||
(Lisp_Object ch)
|
||||
{
|
||||
Lisp_Object spec, attrs, charset_list;
|
||||
int c;
|
||||
|
@ -9208,8 +9193,7 @@ Return the corresponding code in SJIS. */)
|
|||
DEFUN ("decode-big5-char", Fdecode_big5_char, Sdecode_big5_char, 1, 1, 0,
|
||||
doc: /* Decode a Big5 character which has CODE in BIG5 coding system.
|
||||
Return the corresponding character. */)
|
||||
(code)
|
||||
Lisp_Object code;
|
||||
(Lisp_Object code)
|
||||
{
|
||||
Lisp_Object spec, attrs, val;
|
||||
struct charset *charset_roman, *charset_big5, *charset;
|
||||
|
@ -9247,8 +9231,7 @@ Return the corresponding character. */)
|
|||
DEFUN ("encode-big5-char", Fencode_big5_char, Sencode_big5_char, 1, 1, 0,
|
||||
doc: /* Encode the Big5 character CH to BIG5 coding system.
|
||||
Return the corresponding character code in Big5. */)
|
||||
(ch)
|
||||
Lisp_Object ch;
|
||||
(Lisp_Object ch)
|
||||
{
|
||||
Lisp_Object spec, attrs, charset_list;
|
||||
struct charset *charset;
|
||||
|
@ -9275,9 +9258,7 @@ Return the corresponding character code in Big5. */)
|
|||
DEFUN ("set-terminal-coding-system-internal", Fset_terminal_coding_system_internal,
|
||||
Sset_terminal_coding_system_internal, 1, 2, 0,
|
||||
doc: /* Internal use only. */)
|
||||
(coding_system, terminal)
|
||||
Lisp_Object coding_system;
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object coding_system, Lisp_Object terminal)
|
||||
{
|
||||
struct coding_system *terminal_coding = TERMINAL_TERMINAL_CODING (get_terminal (terminal, 1));
|
||||
CHECK_SYMBOL (coding_system);
|
||||
|
@ -9295,8 +9276,7 @@ DEFUN ("set-safe-terminal-coding-system-internal",
|
|||
Fset_safe_terminal_coding_system_internal,
|
||||
Sset_safe_terminal_coding_system_internal, 1, 1, 0,
|
||||
doc: /* Internal use only. */)
|
||||
(coding_system)
|
||||
Lisp_Object coding_system;
|
||||
(Lisp_Object coding_system)
|
||||
{
|
||||
CHECK_SYMBOL (coding_system);
|
||||
setup_coding_system (Fcheck_coding_system (coding_system),
|
||||
|
@ -9313,8 +9293,7 @@ DEFUN ("terminal-coding-system", Fterminal_coding_system,
|
|||
doc: /* Return coding system specified for terminal output on the given terminal.
|
||||
TERMINAL may be a terminal object, a frame, or nil for the selected
|
||||
frame's terminal device. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct coding_system *terminal_coding
|
||||
= TERMINAL_TERMINAL_CODING (get_terminal (terminal, 1));
|
||||
|
@ -9327,9 +9306,7 @@ frame's terminal device. */)
|
|||
DEFUN ("set-keyboard-coding-system-internal", Fset_keyboard_coding_system_internal,
|
||||
Sset_keyboard_coding_system_internal, 1, 2, 0,
|
||||
doc: /* Internal use only. */)
|
||||
(coding_system, terminal)
|
||||
Lisp_Object coding_system;
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object coding_system, Lisp_Object terminal)
|
||||
{
|
||||
struct terminal *t = get_terminal (terminal, 1);
|
||||
CHECK_SYMBOL (coding_system);
|
||||
|
@ -9347,8 +9324,7 @@ DEFUN ("set-keyboard-coding-system-internal", Fset_keyboard_coding_system_intern
|
|||
DEFUN ("keyboard-coding-system",
|
||||
Fkeyboard_coding_system, Skeyboard_coding_system, 0, 1, 0,
|
||||
doc: /* Return coding system specified for decoding keyboard input. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
return CODING_ID_NAME (TERMINAL_KEYBOARD_CODING
|
||||
(get_terminal (terminal, 1))->id);
|
||||
|
@ -9396,9 +9372,7 @@ function to call for FILENAME, that function should examine the
|
|||
contents of BUFFER instead of reading the file.
|
||||
|
||||
usage: (find-operation-coding-system OPERATION ARGUMENTS...) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
Lisp_Object operation, target_idx, target, val;
|
||||
register Lisp_Object chain;
|
||||
|
@ -9474,9 +9448,7 @@ If multiple coding systems belong to the same category,
|
|||
all but the first one are ignored.
|
||||
|
||||
usage: (set-coding-system-priority &rest coding-systems) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
int i, j;
|
||||
int changed[coding_category_max];
|
||||
|
@ -9536,8 +9508,7 @@ The list contains a subset of coding systems; i.e. coding systems
|
|||
assigned to each coding category (see `coding-category-list').
|
||||
|
||||
HIGHESTP non-nil means just return the highest priority one. */)
|
||||
(highestp)
|
||||
Lisp_Object highestp;
|
||||
(Lisp_Object highestp)
|
||||
{
|
||||
int i;
|
||||
Lisp_Object val;
|
||||
|
@ -9583,9 +9554,7 @@ DEFUN ("define-coding-system-internal", Fdefine_coding_system_internal,
|
|||
Sdefine_coding_system_internal, coding_arg_max, MANY, 0,
|
||||
doc: /* For internal use only.
|
||||
usage: (define-coding-system-internal ...) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
Lisp_Object name;
|
||||
Lisp_Object spec_vec; /* [ ATTRS ALIASE EOL_TYPE ] */
|
||||
|
@ -10114,8 +10083,7 @@ usage: (define-coding-system-internal ...) */)
|
|||
DEFUN ("coding-system-put", Fcoding_system_put, Scoding_system_put,
|
||||
3, 3, 0,
|
||||
doc: /* Change value in CODING-SYSTEM's property list PROP to VAL. */)
|
||||
(coding_system, prop, val)
|
||||
Lisp_Object coding_system, prop, val;
|
||||
(Lisp_Object coding_system, Lisp_Object prop, Lisp_Object val)
|
||||
{
|
||||
Lisp_Object spec, attrs;
|
||||
|
||||
|
@ -10171,8 +10139,7 @@ DEFUN ("coding-system-put", Fcoding_system_put, Scoding_system_put,
|
|||
DEFUN ("define-coding-system-alias", Fdefine_coding_system_alias,
|
||||
Sdefine_coding_system_alias, 2, 2, 0,
|
||||
doc: /* Define ALIAS as an alias for CODING-SYSTEM. */)
|
||||
(alias, coding_system)
|
||||
Lisp_Object alias, coding_system;
|
||||
(Lisp_Object alias, Lisp_Object coding_system)
|
||||
{
|
||||
Lisp_Object spec, aliases, eol_type, val;
|
||||
|
||||
|
@ -10212,8 +10179,7 @@ DEFUN ("coding-system-base", Fcoding_system_base, Scoding_system_base,
|
|||
1, 1, 0,
|
||||
doc: /* Return the base of CODING-SYSTEM.
|
||||
Any alias or subsidiary coding system is not a base coding system. */)
|
||||
(coding_system)
|
||||
Lisp_Object coding_system;
|
||||
(Lisp_Object coding_system)
|
||||
{
|
||||
Lisp_Object spec, attrs;
|
||||
|
||||
|
@ -10227,8 +10193,7 @@ Any alias or subsidiary coding system is not a base coding system. */)
|
|||
DEFUN ("coding-system-plist", Fcoding_system_plist, Scoding_system_plist,
|
||||
1, 1, 0,
|
||||
doc: "Return the property list of CODING-SYSTEM.")
|
||||
(coding_system)
|
||||
Lisp_Object coding_system;
|
||||
(Lisp_Object coding_system)
|
||||
{
|
||||
Lisp_Object spec, attrs;
|
||||
|
||||
|
@ -10243,8 +10208,7 @@ DEFUN ("coding-system-plist", Fcoding_system_plist, Scoding_system_plist,
|
|||
DEFUN ("coding-system-aliases", Fcoding_system_aliases, Scoding_system_aliases,
|
||||
1, 1, 0,
|
||||
doc: /* Return the list of aliases of CODING-SYSTEM. */)
|
||||
(coding_system)
|
||||
Lisp_Object coding_system;
|
||||
(Lisp_Object coding_system)
|
||||
{
|
||||
Lisp_Object spec;
|
||||
|
||||
|
@ -10265,8 +10229,7 @@ and CR respectively.
|
|||
A vector value indicates that a format of end-of-line should be
|
||||
detected automatically. Nth element of the vector is the subsidiary
|
||||
coding system whose eol-type is N. */)
|
||||
(coding_system)
|
||||
Lisp_Object coding_system;
|
||||
(Lisp_Object coding_system)
|
||||
{
|
||||
Lisp_Object spec, eol_type;
|
||||
int n;
|
||||
|
|
|
@ -1758,8 +1758,7 @@ where
|
|||
|
||||
If GLYPH is nil, the remaining elements of the glyph-string vector
|
||||
should be ignored. */)
|
||||
(from, to, font_object, string)
|
||||
Lisp_Object font_object, from, to, string;
|
||||
(Lisp_Object from, Lisp_Object to, Lisp_Object font_object, Lisp_Object string)
|
||||
{
|
||||
Lisp_Object gstring, header;
|
||||
EMACS_INT frompos, topos;
|
||||
|
@ -1804,8 +1803,7 @@ DEFUN ("compose-region-internal", Fcompose_region_internal,
|
|||
Compose text in the region between START and END.
|
||||
Optional 3rd and 4th arguments are COMPONENTS and MODIFICATION-FUNC
|
||||
for the composition. See `compose-region' for more details. */)
|
||||
(start, end, components, modification_func)
|
||||
Lisp_Object start, end, components, modification_func;
|
||||
(Lisp_Object start, Lisp_Object end, Lisp_Object components, Lisp_Object modification_func)
|
||||
{
|
||||
validate_region (&start, &end);
|
||||
if (!NILP (components)
|
||||
|
@ -1825,8 +1823,7 @@ DEFUN ("compose-string-internal", Fcompose_string_internal,
|
|||
Compose text between indices START and END of STRING.
|
||||
Optional 4th and 5th arguments are COMPONENTS and MODIFICATION-FUNC
|
||||
for the composition. See `compose-string' for more details. */)
|
||||
(string, start, end, components, modification_func)
|
||||
Lisp_Object string, start, end, components, modification_func;
|
||||
(Lisp_Object string, Lisp_Object start, Lisp_Object end, Lisp_Object components, Lisp_Object modification_func)
|
||||
{
|
||||
CHECK_STRING (string);
|
||||
CHECK_NUMBER (start);
|
||||
|
@ -1847,8 +1844,7 @@ DEFUN ("find-composition-internal", Ffind_composition_internal,
|
|||
|
||||
Return information about composition at or nearest to position POS.
|
||||
See `find-composition' for more details. */)
|
||||
(pos, limit, string, detail_p)
|
||||
Lisp_Object pos, limit, string, detail_p;
|
||||
(Lisp_Object pos, Lisp_Object limit, Lisp_Object string, Lisp_Object detail_p)
|
||||
{
|
||||
Lisp_Object prop, tail, gstring;
|
||||
EMACS_INT start, end, from, to;
|
||||
|
|
290
src/data.c
290
src/data.c
|
@ -154,8 +154,7 @@ sign_extend_lisp_int (EMACS_INT num)
|
|||
|
||||
DEFUN ("eq", Feq, Seq, 2, 2, 0,
|
||||
doc: /* Return t if the two args are the same Lisp object. */)
|
||||
(obj1, obj2)
|
||||
Lisp_Object obj1, obj2;
|
||||
(Lisp_Object obj1, Lisp_Object obj2)
|
||||
{
|
||||
if (EQ (obj1, obj2))
|
||||
return Qt;
|
||||
|
@ -164,8 +163,7 @@ DEFUN ("eq", Feq, Seq, 2, 2, 0,
|
|||
|
||||
DEFUN ("null", Fnull, Snull, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is nil. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (NILP (object))
|
||||
return Qt;
|
||||
|
@ -176,8 +174,7 @@ DEFUN ("type-of", Ftype_of, Stype_of, 1, 1, 0,
|
|||
doc: /* Return a symbol representing the type of OBJECT.
|
||||
The symbol returned names the object's basic type;
|
||||
for example, (type-of 1) returns `integer'. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
switch (XTYPE (object))
|
||||
{
|
||||
|
@ -244,8 +241,7 @@ for example, (type-of 1) returns `integer'. */)
|
|||
|
||||
DEFUN ("consp", Fconsp, Sconsp, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a cons cell. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (CONSP (object))
|
||||
return Qt;
|
||||
|
@ -254,8 +250,7 @@ DEFUN ("consp", Fconsp, Sconsp, 1, 1, 0,
|
|||
|
||||
DEFUN ("atom", Fatom, Satom, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is not a cons cell. This includes nil. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (CONSP (object))
|
||||
return Qnil;
|
||||
|
@ -265,8 +260,7 @@ DEFUN ("atom", Fatom, Satom, 1, 1, 0,
|
|||
DEFUN ("listp", Flistp, Slistp, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a list, that is, a cons cell or nil.
|
||||
Otherwise, return nil. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (CONSP (object) || NILP (object))
|
||||
return Qt;
|
||||
|
@ -275,8 +269,7 @@ Otherwise, return nil. */)
|
|||
|
||||
DEFUN ("nlistp", Fnlistp, Snlistp, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is not a list. Lists include nil. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (CONSP (object) || NILP (object))
|
||||
return Qnil;
|
||||
|
@ -285,8 +278,7 @@ DEFUN ("nlistp", Fnlistp, Snlistp, 1, 1, 0,
|
|||
|
||||
DEFUN ("symbolp", Fsymbolp, Ssymbolp, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a symbol. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (SYMBOLP (object))
|
||||
return Qt;
|
||||
|
@ -299,8 +291,7 @@ DEFUN ("keywordp", Fkeywordp, Skeywordp, 1, 1, 0,
|
|||
doc: /* Return t if OBJECT is a keyword.
|
||||
This means that it is a symbol with a print name beginning with `:'
|
||||
interned in the initial obarray. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (SYMBOLP (object)
|
||||
&& SREF (SYMBOL_NAME (object), 0) == ':'
|
||||
|
@ -311,8 +302,7 @@ interned in the initial obarray. */)
|
|||
|
||||
DEFUN ("vectorp", Fvectorp, Svectorp, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a vector. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (VECTORP (object))
|
||||
return Qt;
|
||||
|
@ -321,8 +311,7 @@ DEFUN ("vectorp", Fvectorp, Svectorp, 1, 1, 0,
|
|||
|
||||
DEFUN ("stringp", Fstringp, Sstringp, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a string. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (STRINGP (object))
|
||||
return Qt;
|
||||
|
@ -332,8 +321,7 @@ DEFUN ("stringp", Fstringp, Sstringp, 1, 1, 0,
|
|||
DEFUN ("multibyte-string-p", Fmultibyte_string_p, Smultibyte_string_p,
|
||||
1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a multibyte string. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (STRINGP (object) && STRING_MULTIBYTE (object))
|
||||
return Qt;
|
||||
|
@ -342,8 +330,7 @@ DEFUN ("multibyte-string-p", Fmultibyte_string_p, Smultibyte_string_p,
|
|||
|
||||
DEFUN ("char-table-p", Fchar_table_p, Schar_table_p, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a char-table. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (CHAR_TABLE_P (object))
|
||||
return Qt;
|
||||
|
@ -353,8 +340,7 @@ DEFUN ("char-table-p", Fchar_table_p, Schar_table_p, 1, 1, 0,
|
|||
DEFUN ("vector-or-char-table-p", Fvector_or_char_table_p,
|
||||
Svector_or_char_table_p, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a char-table or vector. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (VECTORP (object) || CHAR_TABLE_P (object))
|
||||
return Qt;
|
||||
|
@ -363,8 +349,7 @@ DEFUN ("vector-or-char-table-p", Fvector_or_char_table_p,
|
|||
|
||||
DEFUN ("bool-vector-p", Fbool_vector_p, Sbool_vector_p, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a bool-vector. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (BOOL_VECTOR_P (object))
|
||||
return Qt;
|
||||
|
@ -373,8 +358,7 @@ DEFUN ("bool-vector-p", Fbool_vector_p, Sbool_vector_p, 1, 1, 0,
|
|||
|
||||
DEFUN ("arrayp", Farrayp, Sarrayp, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is an array (string or vector). */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (ARRAYP (object))
|
||||
return Qt;
|
||||
|
@ -383,8 +367,7 @@ DEFUN ("arrayp", Farrayp, Sarrayp, 1, 1, 0,
|
|||
|
||||
DEFUN ("sequencep", Fsequencep, Ssequencep, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a sequence (list or array). */)
|
||||
(object)
|
||||
register Lisp_Object object;
|
||||
(register Lisp_Object object)
|
||||
{
|
||||
if (CONSP (object) || NILP (object) || ARRAYP (object))
|
||||
return Qt;
|
||||
|
@ -393,8 +376,7 @@ DEFUN ("sequencep", Fsequencep, Ssequencep, 1, 1, 0,
|
|||
|
||||
DEFUN ("bufferp", Fbufferp, Sbufferp, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is an editor buffer. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (BUFFERP (object))
|
||||
return Qt;
|
||||
|
@ -403,8 +385,7 @@ DEFUN ("bufferp", Fbufferp, Sbufferp, 1, 1, 0,
|
|||
|
||||
DEFUN ("markerp", Fmarkerp, Smarkerp, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a marker (editor pointer). */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (MARKERP (object))
|
||||
return Qt;
|
||||
|
@ -413,8 +394,7 @@ DEFUN ("markerp", Fmarkerp, Smarkerp, 1, 1, 0,
|
|||
|
||||
DEFUN ("subrp", Fsubrp, Ssubrp, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a built-in function. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (SUBRP (object))
|
||||
return Qt;
|
||||
|
@ -424,8 +404,7 @@ DEFUN ("subrp", Fsubrp, Ssubrp, 1, 1, 0,
|
|||
DEFUN ("byte-code-function-p", Fbyte_code_function_p, Sbyte_code_function_p,
|
||||
1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a byte-compiled function object. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (COMPILEDP (object))
|
||||
return Qt;
|
||||
|
@ -434,8 +413,7 @@ DEFUN ("byte-code-function-p", Fbyte_code_function_p, Sbyte_code_function_p,
|
|||
|
||||
DEFUN ("char-or-string-p", Fchar_or_string_p, Schar_or_string_p, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a character or a string. */)
|
||||
(object)
|
||||
register Lisp_Object object;
|
||||
(register Lisp_Object object)
|
||||
{
|
||||
if (CHARACTERP (object) || STRINGP (object))
|
||||
return Qt;
|
||||
|
@ -444,8 +422,7 @@ DEFUN ("char-or-string-p", Fchar_or_string_p, Schar_or_string_p, 1, 1, 0,
|
|||
|
||||
DEFUN ("integerp", Fintegerp, Sintegerp, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is an integer. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (INTEGERP (object))
|
||||
return Qt;
|
||||
|
@ -454,8 +431,7 @@ DEFUN ("integerp", Fintegerp, Sintegerp, 1, 1, 0,
|
|||
|
||||
DEFUN ("integer-or-marker-p", Finteger_or_marker_p, Sinteger_or_marker_p, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is an integer or a marker (editor pointer). */)
|
||||
(object)
|
||||
register Lisp_Object object;
|
||||
(register Lisp_Object object)
|
||||
{
|
||||
if (MARKERP (object) || INTEGERP (object))
|
||||
return Qt;
|
||||
|
@ -464,8 +440,7 @@ DEFUN ("integer-or-marker-p", Finteger_or_marker_p, Sinteger_or_marker_p, 1, 1,
|
|||
|
||||
DEFUN ("natnump", Fnatnump, Snatnump, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a nonnegative integer. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (NATNUMP (object))
|
||||
return Qt;
|
||||
|
@ -474,8 +449,7 @@ DEFUN ("natnump", Fnatnump, Snatnump, 1, 1, 0,
|
|||
|
||||
DEFUN ("numberp", Fnumberp, Snumberp, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a number (floating point or integer). */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (NUMBERP (object))
|
||||
return Qt;
|
||||
|
@ -486,8 +460,7 @@ DEFUN ("numberp", Fnumberp, Snumberp, 1, 1, 0,
|
|||
DEFUN ("number-or-marker-p", Fnumber_or_marker_p,
|
||||
Snumber_or_marker_p, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a number or a marker. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (NUMBERP (object) || MARKERP (object))
|
||||
return Qt;
|
||||
|
@ -496,8 +469,7 @@ DEFUN ("number-or-marker-p", Fnumber_or_marker_p,
|
|||
|
||||
DEFUN ("floatp", Ffloatp, Sfloatp, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a floating point number. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (FLOATP (object))
|
||||
return Qt;
|
||||
|
@ -513,16 +485,14 @@ Error if arg is not nil and not a cons cell. See also `car-safe'.
|
|||
|
||||
See Info node `(elisp)Cons Cells' for a discussion of related basic
|
||||
Lisp concepts such as car, cdr, cons cell and list. */)
|
||||
(list)
|
||||
register Lisp_Object list;
|
||||
(register Lisp_Object list)
|
||||
{
|
||||
return CAR (list);
|
||||
}
|
||||
|
||||
DEFUN ("car-safe", Fcar_safe, Scar_safe, 1, 1, 0,
|
||||
doc: /* Return the car of OBJECT if it is a cons cell, or else nil. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
return CAR_SAFE (object);
|
||||
}
|
||||
|
@ -533,24 +503,21 @@ Error if arg is not nil and not a cons cell. See also `cdr-safe'.
|
|||
|
||||
See Info node `(elisp)Cons Cells' for a discussion of related basic
|
||||
Lisp concepts such as cdr, car, cons cell and list. */)
|
||||
(list)
|
||||
register Lisp_Object list;
|
||||
(register Lisp_Object list)
|
||||
{
|
||||
return CDR (list);
|
||||
}
|
||||
|
||||
DEFUN ("cdr-safe", Fcdr_safe, Scdr_safe, 1, 1, 0,
|
||||
doc: /* Return the cdr of OBJECT if it is a cons cell, or else nil. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
return CDR_SAFE (object);
|
||||
}
|
||||
|
||||
DEFUN ("setcar", Fsetcar, Ssetcar, 2, 2, 0,
|
||||
doc: /* Set the car of CELL to be NEWCAR. Returns NEWCAR. */)
|
||||
(cell, newcar)
|
||||
register Lisp_Object cell, newcar;
|
||||
(register Lisp_Object cell, Lisp_Object newcar)
|
||||
{
|
||||
CHECK_CONS (cell);
|
||||
CHECK_IMPURE (cell);
|
||||
|
@ -560,8 +527,7 @@ DEFUN ("setcar", Fsetcar, Ssetcar, 2, 2, 0,
|
|||
|
||||
DEFUN ("setcdr", Fsetcdr, Ssetcdr, 2, 2, 0,
|
||||
doc: /* Set the cdr of CELL to be NEWCDR. Returns NEWCDR. */)
|
||||
(cell, newcdr)
|
||||
register Lisp_Object cell, newcdr;
|
||||
(register Lisp_Object cell, Lisp_Object newcdr)
|
||||
{
|
||||
CHECK_CONS (cell);
|
||||
CHECK_IMPURE (cell);
|
||||
|
@ -573,8 +539,7 @@ DEFUN ("setcdr", Fsetcdr, Ssetcdr, 2, 2, 0,
|
|||
|
||||
DEFUN ("boundp", Fboundp, Sboundp, 1, 1, 0,
|
||||
doc: /* Return t if SYMBOL's value is not void. */)
|
||||
(symbol)
|
||||
register Lisp_Object symbol;
|
||||
(register Lisp_Object symbol)
|
||||
{
|
||||
Lisp_Object valcontents;
|
||||
struct Lisp_Symbol *sym;
|
||||
|
@ -612,8 +577,7 @@ DEFUN ("boundp", Fboundp, Sboundp, 1, 1, 0,
|
|||
|
||||
DEFUN ("fboundp", Ffboundp, Sfboundp, 1, 1, 0,
|
||||
doc: /* Return t if SYMBOL's function definition is not void. */)
|
||||
(symbol)
|
||||
register Lisp_Object symbol;
|
||||
(register Lisp_Object symbol)
|
||||
{
|
||||
CHECK_SYMBOL (symbol);
|
||||
return (EQ (XSYMBOL (symbol)->function, Qunbound) ? Qnil : Qt);
|
||||
|
@ -622,8 +586,7 @@ DEFUN ("fboundp", Ffboundp, Sfboundp, 1, 1, 0,
|
|||
DEFUN ("makunbound", Fmakunbound, Smakunbound, 1, 1, 0,
|
||||
doc: /* Make SYMBOL's value be void.
|
||||
Return SYMBOL. */)
|
||||
(symbol)
|
||||
register Lisp_Object symbol;
|
||||
(register Lisp_Object symbol)
|
||||
{
|
||||
CHECK_SYMBOL (symbol);
|
||||
if (SYMBOL_CONSTANT_P (symbol))
|
||||
|
@ -635,8 +598,7 @@ Return SYMBOL. */)
|
|||
DEFUN ("fmakunbound", Ffmakunbound, Sfmakunbound, 1, 1, 0,
|
||||
doc: /* Make SYMBOL's function definition be void.
|
||||
Return SYMBOL. */)
|
||||
(symbol)
|
||||
register Lisp_Object symbol;
|
||||
(register Lisp_Object symbol)
|
||||
{
|
||||
CHECK_SYMBOL (symbol);
|
||||
if (NILP (symbol) || EQ (symbol, Qt))
|
||||
|
@ -647,8 +609,7 @@ Return SYMBOL. */)
|
|||
|
||||
DEFUN ("symbol-function", Fsymbol_function, Ssymbol_function, 1, 1, 0,
|
||||
doc: /* Return SYMBOL's function definition. Error if that is void. */)
|
||||
(symbol)
|
||||
register Lisp_Object symbol;
|
||||
(register Lisp_Object symbol)
|
||||
{
|
||||
CHECK_SYMBOL (symbol);
|
||||
if (!EQ (XSYMBOL (symbol)->function, Qunbound))
|
||||
|
@ -658,8 +619,7 @@ DEFUN ("symbol-function", Fsymbol_function, Ssymbol_function, 1, 1, 0,
|
|||
|
||||
DEFUN ("symbol-plist", Fsymbol_plist, Ssymbol_plist, 1, 1, 0,
|
||||
doc: /* Return SYMBOL's property list. */)
|
||||
(symbol)
|
||||
register Lisp_Object symbol;
|
||||
(register Lisp_Object symbol)
|
||||
{
|
||||
CHECK_SYMBOL (symbol);
|
||||
return XSYMBOL (symbol)->plist;
|
||||
|
@ -667,8 +627,7 @@ DEFUN ("symbol-plist", Fsymbol_plist, Ssymbol_plist, 1, 1, 0,
|
|||
|
||||
DEFUN ("symbol-name", Fsymbol_name, Ssymbol_name, 1, 1, 0,
|
||||
doc: /* Return SYMBOL's name, a string. */)
|
||||
(symbol)
|
||||
register Lisp_Object symbol;
|
||||
(register Lisp_Object symbol)
|
||||
{
|
||||
register Lisp_Object name;
|
||||
|
||||
|
@ -679,8 +638,7 @@ DEFUN ("symbol-name", Fsymbol_name, Ssymbol_name, 1, 1, 0,
|
|||
|
||||
DEFUN ("fset", Ffset, Sfset, 2, 2, 0,
|
||||
doc: /* Set SYMBOL's function definition to DEFINITION, and return DEFINITION. */)
|
||||
(symbol, definition)
|
||||
register Lisp_Object symbol, definition;
|
||||
(register Lisp_Object symbol, Lisp_Object definition)
|
||||
{
|
||||
register Lisp_Object function;
|
||||
|
||||
|
@ -714,8 +672,7 @@ Associates the function with the current load file, if any.
|
|||
The optional third argument DOCSTRING specifies the documentation string
|
||||
for SYMBOL; if it is omitted or nil, SYMBOL uses the documentation string
|
||||
determined by DEFINITION. */)
|
||||
(symbol, definition, docstring)
|
||||
register Lisp_Object symbol, definition, docstring;
|
||||
(register Lisp_Object symbol, Lisp_Object definition, Lisp_Object docstring)
|
||||
{
|
||||
CHECK_SYMBOL (symbol);
|
||||
if (CONSP (XSYMBOL (symbol)->function)
|
||||
|
@ -730,8 +687,7 @@ determined by DEFINITION. */)
|
|||
|
||||
DEFUN ("setplist", Fsetplist, Ssetplist, 2, 2, 0,
|
||||
doc: /* Set SYMBOL's property list to NEWPLIST, and return NEWPLIST. */)
|
||||
(symbol, newplist)
|
||||
register Lisp_Object symbol, newplist;
|
||||
(register Lisp_Object symbol, Lisp_Object newplist)
|
||||
{
|
||||
CHECK_SYMBOL (symbol);
|
||||
XSYMBOL (symbol)->plist = newplist;
|
||||
|
@ -744,8 +700,7 @@ SUBR must be a built-in function.
|
|||
The returned value is a pair (MIN . MAX). MIN is the minimum number
|
||||
of args. MAX is the maximum number or the symbol `many', for a
|
||||
function with `&rest' args, or `unevalled' for a special form. */)
|
||||
(subr)
|
||||
Lisp_Object subr;
|
||||
(Lisp_Object subr)
|
||||
{
|
||||
short minargs, maxargs;
|
||||
CHECK_SUBR (subr);
|
||||
|
@ -762,8 +717,7 @@ function with `&rest' args, or `unevalled' for a special form. */)
|
|||
DEFUN ("subr-name", Fsubr_name, Ssubr_name, 1, 1, 0,
|
||||
doc: /* Return name of subroutine SUBR.
|
||||
SUBR must be a built-in function. */)
|
||||
(subr)
|
||||
Lisp_Object subr;
|
||||
(Lisp_Object subr)
|
||||
{
|
||||
const char *name;
|
||||
CHECK_SUBR (subr);
|
||||
|
@ -775,8 +729,7 @@ DEFUN ("interactive-form", Finteractive_form, Sinteractive_form, 1, 1, 0,
|
|||
doc: /* Return the interactive form of CMD or nil if none.
|
||||
If CMD is not a command, the return value is nil.
|
||||
Value, if non-nil, is a list \(interactive SPEC). */)
|
||||
(cmd)
|
||||
Lisp_Object cmd;
|
||||
(Lisp_Object cmd)
|
||||
{
|
||||
Lisp_Object fun = indirect_function (cmd); /* Check cycles. */
|
||||
|
||||
|
@ -868,8 +821,7 @@ If OBJECT is a symbol, follow all variable indirections and return the final
|
|||
variable. If OBJECT is not a symbol, just return it.
|
||||
Signal a cyclic-variable-indirection error if there is a loop in the
|
||||
variable chain of symbols. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (SYMBOLP (object))
|
||||
XSETSYMBOL (object, indirect_variable (XSYMBOL (object)));
|
||||
|
@ -1124,8 +1076,7 @@ find_symbol_value (Lisp_Object symbol)
|
|||
|
||||
DEFUN ("symbol-value", Fsymbol_value, Ssymbol_value, 1, 1, 0,
|
||||
doc: /* Return SYMBOL's value. Error if that is void. */)
|
||||
(symbol)
|
||||
Lisp_Object symbol;
|
||||
(Lisp_Object symbol)
|
||||
{
|
||||
Lisp_Object val;
|
||||
|
||||
|
@ -1138,8 +1089,7 @@ DEFUN ("symbol-value", Fsymbol_value, Ssymbol_value, 1, 1, 0,
|
|||
|
||||
DEFUN ("set", Fset, Sset, 2, 2, 0,
|
||||
doc: /* Set SYMBOL's value to NEWVAL, and return NEWVAL. */)
|
||||
(symbol, newval)
|
||||
register Lisp_Object symbol, newval;
|
||||
(register Lisp_Object symbol, Lisp_Object newval)
|
||||
{
|
||||
set_internal (symbol, newval, Qnil, 0);
|
||||
return newval;
|
||||
|
@ -1387,8 +1337,7 @@ DEFUN ("default-boundp", Fdefault_boundp, Sdefault_boundp, 1, 1, 0,
|
|||
doc: /* Return t if SYMBOL has a non-void default value.
|
||||
This is the value that is seen in buffers that do not have their own values
|
||||
for this variable. */)
|
||||
(symbol)
|
||||
Lisp_Object symbol;
|
||||
(Lisp_Object symbol)
|
||||
{
|
||||
register Lisp_Object value;
|
||||
|
||||
|
@ -1401,8 +1350,7 @@ DEFUN ("default-value", Fdefault_value, Sdefault_value, 1, 1, 0,
|
|||
This is the value that is seen in buffers that do not have their own values
|
||||
for this variable. The default value is meaningful for variables with
|
||||
local bindings in certain buffers. */)
|
||||
(symbol)
|
||||
Lisp_Object symbol;
|
||||
(Lisp_Object symbol)
|
||||
{
|
||||
register Lisp_Object value;
|
||||
|
||||
|
@ -1417,8 +1365,7 @@ DEFUN ("set-default", Fset_default, Sset_default, 2, 2, 0,
|
|||
doc: /* Set SYMBOL's default value to VALUE. SYMBOL and VALUE are evaluated.
|
||||
The default value is seen in buffers that do not have their own values
|
||||
for this variable. */)
|
||||
(symbol, value)
|
||||
Lisp_Object symbol, value;
|
||||
(Lisp_Object symbol, Lisp_Object value)
|
||||
{
|
||||
struct Lisp_Symbol *sym;
|
||||
|
||||
|
@ -1497,8 +1444,7 @@ This sets each VAR's default value to the corresponding VALUE.
|
|||
The VALUE for the Nth VAR can refer to the new default values
|
||||
of previous VARs.
|
||||
usage: (setq-default [VAR VALUE]...) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
register Lisp_Object args_left;
|
||||
register Lisp_Object val, symbol;
|
||||
|
@ -1572,8 +1518,7 @@ In most cases it is better to use `make-local-variable',
|
|||
which makes a variable local in just one buffer.
|
||||
|
||||
The function `default-value' gets the default value and `set-default' sets it. */)
|
||||
(variable)
|
||||
register Lisp_Object variable;
|
||||
(register Lisp_Object variable)
|
||||
{
|
||||
struct Lisp_Symbol *sym;
|
||||
struct Lisp_Buffer_Local_Value *blv = NULL;
|
||||
|
@ -1650,8 +1595,7 @@ See also `make-variable-buffer-local'.
|
|||
|
||||
Do not use `make-local-variable' to make a hook variable buffer-local.
|
||||
Instead, use `add-hook' and specify t for the LOCAL argument. */)
|
||||
(variable)
|
||||
register Lisp_Object variable;
|
||||
(register Lisp_Object variable)
|
||||
{
|
||||
register Lisp_Object tem;
|
||||
int forwarded;
|
||||
|
@ -1752,8 +1696,7 @@ DEFUN ("kill-local-variable", Fkill_local_variable, Skill_local_variable,
|
|||
1, 1, "vKill Local Variable: ",
|
||||
doc: /* Make VARIABLE no longer have a separate value in the current buffer.
|
||||
From now on the default value will apply in this buffer. Return VARIABLE. */)
|
||||
(variable)
|
||||
register Lisp_Object variable;
|
||||
(register Lisp_Object variable)
|
||||
{
|
||||
register Lisp_Object tem;
|
||||
struct Lisp_Buffer_Local_Value *blv;
|
||||
|
@ -1841,8 +1784,7 @@ is to set the VARIABLE frame parameter of that frame. See
|
|||
Note that since Emacs 23.1, variables cannot be both buffer-local and
|
||||
frame-local any more (buffer-local bindings used to take precedence over
|
||||
frame-local bindings). */)
|
||||
(variable)
|
||||
register Lisp_Object variable;
|
||||
(register Lisp_Object variable)
|
||||
{
|
||||
int forwarded;
|
||||
union Lisp_Val_Fwd valcontents;
|
||||
|
@ -1897,8 +1839,7 @@ DEFUN ("local-variable-p", Flocal_variable_p, Slocal_variable_p,
|
|||
1, 2, 0,
|
||||
doc: /* Non-nil if VARIABLE has a local binding in buffer BUFFER.
|
||||
BUFFER defaults to the current buffer. */)
|
||||
(variable, buffer)
|
||||
register Lisp_Object variable, buffer;
|
||||
(register Lisp_Object variable, Lisp_Object buffer)
|
||||
{
|
||||
register struct buffer *buf;
|
||||
struct Lisp_Symbol *sym;
|
||||
|
@ -1962,8 +1903,7 @@ while it does not have a `let'-style binding that was made in BUFFER,
|
|||
will produce a buffer local binding. See Info node
|
||||
`(elisp)Creating Buffer-Local'.
|
||||
BUFFER defaults to the current buffer. */)
|
||||
(variable, buffer)
|
||||
register Lisp_Object variable, buffer;
|
||||
(register Lisp_Object variable, Lisp_Object buffer)
|
||||
{
|
||||
struct Lisp_Symbol *sym;
|
||||
|
||||
|
@ -1996,8 +1936,7 @@ DEFUN ("variable-binding-locus", Fvariable_binding_locus, Svariable_binding_locu
|
|||
If the current binding is buffer-local, the value is the current buffer.
|
||||
If the current binding is frame-local, the value is the selected frame.
|
||||
If the current binding is global (the default), the value is nil. */)
|
||||
(variable)
|
||||
register Lisp_Object variable;
|
||||
(register Lisp_Object variable)
|
||||
{
|
||||
struct Lisp_Symbol *sym;
|
||||
|
||||
|
@ -2047,9 +1986,7 @@ value, like `symbol-value'.
|
|||
|
||||
TERMINAL may be a terminal object, a frame, or nil (meaning the
|
||||
selected frame's terminal device). */)
|
||||
(symbol, terminal)
|
||||
Lisp_Object symbol;
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object symbol, Lisp_Object terminal)
|
||||
{
|
||||
Lisp_Object result;
|
||||
struct terminal *t = get_terminal (terminal, 1);
|
||||
|
@ -2066,10 +2003,7 @@ binding, like `set'.
|
|||
|
||||
TERMINAL may be a terminal object, a frame, or nil (meaning the
|
||||
selected frame's terminal device). */)
|
||||
(symbol, terminal, value)
|
||||
Lisp_Object symbol;
|
||||
Lisp_Object terminal;
|
||||
Lisp_Object value;
|
||||
(Lisp_Object symbol, Lisp_Object terminal, Lisp_Object value)
|
||||
{
|
||||
Lisp_Object result;
|
||||
struct terminal *t = get_terminal (terminal, 1);
|
||||
|
@ -2122,9 +2056,7 @@ If the final symbol in the chain is unbound, signal a void-function error.
|
|||
Optional arg NOERROR non-nil means to return nil instead of signalling.
|
||||
Signal a cyclic-function-indirection error if there is a loop in the
|
||||
function chain of symbols. */)
|
||||
(object, noerror)
|
||||
register Lisp_Object object;
|
||||
Lisp_Object noerror;
|
||||
(register Lisp_Object object, Lisp_Object noerror)
|
||||
{
|
||||
Lisp_Object result;
|
||||
|
||||
|
@ -2148,9 +2080,7 @@ DEFUN ("aref", Faref, Saref, 2, 2, 0,
|
|||
doc: /* Return the element of ARRAY at index IDX.
|
||||
ARRAY may be a vector, a string, a char-table, a bool-vector,
|
||||
or a byte-code object. IDX starts at 0. */)
|
||||
(array, idx)
|
||||
register Lisp_Object array;
|
||||
Lisp_Object idx;
|
||||
(register Lisp_Object array, Lisp_Object idx)
|
||||
{
|
||||
register int idxval;
|
||||
|
||||
|
@ -2204,9 +2134,7 @@ DEFUN ("aset", Faset, Saset, 3, 3, 0,
|
|||
doc: /* Store into the element of ARRAY at index IDX the value NEWELT.
|
||||
Return NEWELT. ARRAY may be a vector, a string, a char-table or a
|
||||
bool-vector. IDX starts at 0. */)
|
||||
(array, idx, newelt)
|
||||
register Lisp_Object array;
|
||||
Lisp_Object idx, newelt;
|
||||
(register Lisp_Object array, Lisp_Object idx, Lisp_Object newelt)
|
||||
{
|
||||
register int idxval;
|
||||
|
||||
|
@ -2360,24 +2288,21 @@ arithcompare (Lisp_Object num1, Lisp_Object num2, enum comparison comparison)
|
|||
|
||||
DEFUN ("=", Feqlsign, Seqlsign, 2, 2, 0,
|
||||
doc: /* Return t if two args, both numbers or markers, are equal. */)
|
||||
(num1, num2)
|
||||
register Lisp_Object num1, num2;
|
||||
(register Lisp_Object num1, Lisp_Object num2)
|
||||
{
|
||||
return arithcompare (num1, num2, equal);
|
||||
}
|
||||
|
||||
DEFUN ("<", Flss, Slss, 2, 2, 0,
|
||||
doc: /* Return t if first arg is less than second arg. Both must be numbers or markers. */)
|
||||
(num1, num2)
|
||||
register Lisp_Object num1, num2;
|
||||
(register Lisp_Object num1, Lisp_Object num2)
|
||||
{
|
||||
return arithcompare (num1, num2, less);
|
||||
}
|
||||
|
||||
DEFUN (">", Fgtr, Sgtr, 2, 2, 0,
|
||||
doc: /* Return t if first arg is greater than second arg. Both must be numbers or markers. */)
|
||||
(num1, num2)
|
||||
register Lisp_Object num1, num2;
|
||||
(register Lisp_Object num1, Lisp_Object num2)
|
||||
{
|
||||
return arithcompare (num1, num2, grtr);
|
||||
}
|
||||
|
@ -2385,8 +2310,7 @@ DEFUN (">", Fgtr, Sgtr, 2, 2, 0,
|
|||
DEFUN ("<=", Fleq, Sleq, 2, 2, 0,
|
||||
doc: /* Return t if first arg is less than or equal to second arg.
|
||||
Both must be numbers or markers. */)
|
||||
(num1, num2)
|
||||
register Lisp_Object num1, num2;
|
||||
(register Lisp_Object num1, Lisp_Object num2)
|
||||
{
|
||||
return arithcompare (num1, num2, less_or_equal);
|
||||
}
|
||||
|
@ -2394,24 +2318,21 @@ Both must be numbers or markers. */)
|
|||
DEFUN (">=", Fgeq, Sgeq, 2, 2, 0,
|
||||
doc: /* Return t if first arg is greater than or equal to second arg.
|
||||
Both must be numbers or markers. */)
|
||||
(num1, num2)
|
||||
register Lisp_Object num1, num2;
|
||||
(register Lisp_Object num1, Lisp_Object num2)
|
||||
{
|
||||
return arithcompare (num1, num2, grtr_or_equal);
|
||||
}
|
||||
|
||||
DEFUN ("/=", Fneq, Sneq, 2, 2, 0,
|
||||
doc: /* Return t if first arg is not equal to second arg. Both must be numbers or markers. */)
|
||||
(num1, num2)
|
||||
register Lisp_Object num1, num2;
|
||||
(register Lisp_Object num1, Lisp_Object num2)
|
||||
{
|
||||
return arithcompare (num1, num2, notequal);
|
||||
}
|
||||
|
||||
DEFUN ("zerop", Fzerop, Szerop, 1, 1, 0,
|
||||
doc: /* Return t if NUMBER is zero. */)
|
||||
(number)
|
||||
register Lisp_Object number;
|
||||
(register Lisp_Object number)
|
||||
{
|
||||
CHECK_NUMBER_OR_FLOAT (number);
|
||||
|
||||
|
@ -2460,8 +2381,7 @@ DEFUN ("number-to-string", Fnumber_to_string, Snumber_to_string, 1, 1, 0,
|
|||
doc: /* Return the decimal representation of NUMBER as a string.
|
||||
Uses a minus sign if negative.
|
||||
NUMBER may be an integer or a floating point number. */)
|
||||
(number)
|
||||
Lisp_Object number;
|
||||
(Lisp_Object number)
|
||||
{
|
||||
char buffer[VALBITS];
|
||||
|
||||
|
@ -2512,8 +2432,7 @@ It ignores leading spaces and tabs, and all trailing chars.
|
|||
If BASE, interpret STRING as a number in that base. If BASE isn't
|
||||
present, base 10 is used. BASE must be between 2 and 16 (inclusive).
|
||||
If the base used is not 10, STRING is always parsed as integer. */)
|
||||
(string, base)
|
||||
register Lisp_Object string, base;
|
||||
(register Lisp_Object string, Lisp_Object base)
|
||||
{
|
||||
register unsigned char *p;
|
||||
register int b;
|
||||
|
@ -2732,9 +2651,7 @@ float_arith_driver (double accum, register int argnum, enum arithop code, int na
|
|||
DEFUN ("+", Fplus, Splus, 0, MANY, 0,
|
||||
doc: /* Return sum of any number of arguments, which are numbers or markers.
|
||||
usage: (+ &rest NUMBERS-OR-MARKERS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
return arith_driver (Aadd, nargs, args);
|
||||
}
|
||||
|
@ -2744,9 +2661,7 @@ DEFUN ("-", Fminus, Sminus, 0, MANY, 0,
|
|||
With one arg, negates it. With more than one arg,
|
||||
subtracts all but the first from the first.
|
||||
usage: (- &optional NUMBER-OR-MARKER &rest MORE-NUMBERS-OR-MARKERS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
return arith_driver (Asub, nargs, args);
|
||||
}
|
||||
|
@ -2754,9 +2669,7 @@ usage: (- &optional NUMBER-OR-MARKER &rest MORE-NUMBERS-OR-MARKERS) */)
|
|||
DEFUN ("*", Ftimes, Stimes, 0, MANY, 0,
|
||||
doc: /* Return product of any number of arguments, which are numbers or markers.
|
||||
usage: (* &rest NUMBERS-OR-MARKERS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
return arith_driver (Amult, nargs, args);
|
||||
}
|
||||
|
@ -2765,9 +2678,7 @@ DEFUN ("/", Fquo, Squo, 2, MANY, 0,
|
|||
doc: /* Return first argument divided by all the remaining arguments.
|
||||
The arguments must be numbers or markers.
|
||||
usage: (/ DIVIDEND DIVISOR &rest DIVISORS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
int argnum;
|
||||
for (argnum = 2; argnum < nargs; argnum++)
|
||||
|
@ -2779,8 +2690,7 @@ usage: (/ DIVIDEND DIVISOR &rest DIVISORS) */)
|
|||
DEFUN ("%", Frem, Srem, 2, 2, 0,
|
||||
doc: /* Return remainder of X divided by Y.
|
||||
Both must be integers or markers. */)
|
||||
(x, y)
|
||||
register Lisp_Object x, y;
|
||||
(register Lisp_Object x, Lisp_Object y)
|
||||
{
|
||||
Lisp_Object val;
|
||||
|
||||
|
@ -2821,8 +2731,7 @@ DEFUN ("mod", Fmod, Smod, 2, 2, 0,
|
|||
doc: /* Return X modulo Y.
|
||||
The result falls between zero (inclusive) and Y (exclusive).
|
||||
Both X and Y must be numbers or markers. */)
|
||||
(x, y)
|
||||
register Lisp_Object x, y;
|
||||
(register Lisp_Object x, Lisp_Object y)
|
||||
{
|
||||
Lisp_Object val;
|
||||
EMACS_INT i1, i2;
|
||||
|
@ -2853,9 +2762,7 @@ DEFUN ("max", Fmax, Smax, 1, MANY, 0,
|
|||
doc: /* Return largest of all the arguments (which must be numbers or markers).
|
||||
The value is always a number; markers are converted to numbers.
|
||||
usage: (max NUMBER-OR-MARKER &rest NUMBERS-OR-MARKERS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
return arith_driver (Amax, nargs, args);
|
||||
}
|
||||
|
@ -2864,9 +2771,7 @@ DEFUN ("min", Fmin, Smin, 1, MANY, 0,
|
|||
doc: /* Return smallest of all the arguments (which must be numbers or markers).
|
||||
The value is always a number; markers are converted to numbers.
|
||||
usage: (min NUMBER-OR-MARKER &rest NUMBERS-OR-MARKERS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
return arith_driver (Amin, nargs, args);
|
||||
}
|
||||
|
@ -2875,9 +2780,7 @@ DEFUN ("logand", Flogand, Slogand, 0, MANY, 0,
|
|||
doc: /* Return bitwise-and of all the arguments.
|
||||
Arguments may be integers, or markers converted to integers.
|
||||
usage: (logand &rest INTS-OR-MARKERS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
return arith_driver (Alogand, nargs, args);
|
||||
}
|
||||
|
@ -2886,9 +2789,7 @@ DEFUN ("logior", Flogior, Slogior, 0, MANY, 0,
|
|||
doc: /* Return bitwise-or of all the arguments.
|
||||
Arguments may be integers, or markers converted to integers.
|
||||
usage: (logior &rest INTS-OR-MARKERS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
return arith_driver (Alogior, nargs, args);
|
||||
}
|
||||
|
@ -2897,9 +2798,7 @@ DEFUN ("logxor", Flogxor, Slogxor, 0, MANY, 0,
|
|||
doc: /* Return bitwise-exclusive-or of all the arguments.
|
||||
Arguments may be integers, or markers converted to integers.
|
||||
usage: (logxor &rest INTS-OR-MARKERS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
return arith_driver (Alogxor, nargs, args);
|
||||
}
|
||||
|
@ -2908,8 +2807,7 @@ DEFUN ("ash", Fash, Sash, 2, 2, 0,
|
|||
doc: /* Return VALUE with its bits shifted left by COUNT.
|
||||
If COUNT is negative, shifting is actually to the right.
|
||||
In this case, the sign bit is duplicated. */)
|
||||
(value, count)
|
||||
register Lisp_Object value, count;
|
||||
(register Lisp_Object value, Lisp_Object count)
|
||||
{
|
||||
register Lisp_Object val;
|
||||
|
||||
|
@ -2931,8 +2829,7 @@ DEFUN ("lsh", Flsh, Slsh, 2, 2, 0,
|
|||
doc: /* Return VALUE with its bits shifted left by COUNT.
|
||||
If COUNT is negative, shifting is actually to the right.
|
||||
In this case, zeros are shifted in on the left. */)
|
||||
(value, count)
|
||||
register Lisp_Object value, count;
|
||||
(register Lisp_Object value, Lisp_Object count)
|
||||
{
|
||||
register Lisp_Object val;
|
||||
|
||||
|
@ -2953,8 +2850,7 @@ In this case, zeros are shifted in on the left. */)
|
|||
DEFUN ("1+", Fadd1, Sadd1, 1, 1, 0,
|
||||
doc: /* Return NUMBER plus one. NUMBER may be a number or a marker.
|
||||
Markers are converted to integers. */)
|
||||
(number)
|
||||
register Lisp_Object number;
|
||||
(register Lisp_Object number)
|
||||
{
|
||||
CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (number);
|
||||
|
||||
|
@ -2968,8 +2864,7 @@ Markers are converted to integers. */)
|
|||
DEFUN ("1-", Fsub1, Ssub1, 1, 1, 0,
|
||||
doc: /* Return NUMBER minus one. NUMBER may be a number or a marker.
|
||||
Markers are converted to integers. */)
|
||||
(number)
|
||||
register Lisp_Object number;
|
||||
(register Lisp_Object number)
|
||||
{
|
||||
CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (number);
|
||||
|
||||
|
@ -2982,8 +2877,7 @@ Markers are converted to integers. */)
|
|||
|
||||
DEFUN ("lognot", Flognot, Slognot, 1, 1, 0,
|
||||
doc: /* Return the bitwise complement of NUMBER. NUMBER must be an integer. */)
|
||||
(number)
|
||||
register Lisp_Object number;
|
||||
(register Lisp_Object number)
|
||||
{
|
||||
CHECK_NUMBER (number);
|
||||
XSETINT (number, ~XINT (number));
|
||||
|
@ -2994,7 +2888,7 @@ DEFUN ("byteorder", Fbyteorder, Sbyteorder, 0, 0, 0,
|
|||
doc: /* Return the byteorder for the machine.
|
||||
Returns 66 (ASCII uppercase B) for big endian machines or 108 (ASCII
|
||||
lowercase l) for small endian machines. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
unsigned i = 0x04030201;
|
||||
int order = *(char *)&i == 1 ? 108 : 66;
|
||||
|
|
|
@ -821,8 +821,7 @@ xd_remove_watch (DBusWatch *watch, void *data)
|
|||
DEFUN ("dbus-init-bus", Fdbus_init_bus, Sdbus_init_bus, 1, 1, 0,
|
||||
doc: /* Initialize connection to D-Bus BUS.
|
||||
This is an internal function, it shall not be used outside dbus.el. */)
|
||||
(bus)
|
||||
Lisp_Object bus;
|
||||
(Lisp_Object bus)
|
||||
{
|
||||
DBusConnection *connection;
|
||||
|
||||
|
@ -847,8 +846,7 @@ This is an internal function, it shall not be used outside dbus.el. */)
|
|||
DEFUN ("dbus-get-unique-name", Fdbus_get_unique_name, Sdbus_get_unique_name,
|
||||
1, 1, 0,
|
||||
doc: /* Return the unique name of Emacs registered at D-Bus BUS. */)
|
||||
(bus)
|
||||
Lisp_Object bus;
|
||||
(Lisp_Object bus)
|
||||
{
|
||||
DBusConnection *connection;
|
||||
const char *name;
|
||||
|
@ -936,9 +934,7 @@ object is returned instead of a list containing this single Lisp object.
|
|||
=> "i686"
|
||||
|
||||
usage: (dbus-call-method BUS SERVICE PATH INTERFACE METHOD &optional :timeout TIMEOUT &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
register Lisp_Object *args;
|
||||
(int nargs, register Lisp_Object *args)
|
||||
{
|
||||
Lisp_Object bus, service, path, interface, method;
|
||||
Lisp_Object result;
|
||||
|
@ -1120,9 +1116,7 @@ HANDLER is called.
|
|||
-| i686
|
||||
|
||||
usage: (dbus-call-method-asynchronously BUS SERVICE PATH INTERFACE METHOD HANDLER &optional :timeout TIMEOUT &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
register Lisp_Object *args;
|
||||
(int nargs, register Lisp_Object *args)
|
||||
{
|
||||
Lisp_Object bus, service, path, interface, method, handler;
|
||||
Lisp_Object result;
|
||||
|
@ -1250,9 +1244,7 @@ DEFUN ("dbus-method-return-internal", Fdbus_method_return_internal,
|
|||
This is an internal function, it shall not be used outside dbus.el.
|
||||
|
||||
usage: (dbus-method-return-internal BUS SERIAL SERVICE &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
register Lisp_Object *args;
|
||||
(int nargs, register Lisp_Object *args)
|
||||
{
|
||||
Lisp_Object bus, serial, service;
|
||||
struct gcpro gcpro1, gcpro2, gcpro3;
|
||||
|
@ -1344,9 +1336,7 @@ DEFUN ("dbus-method-error-internal", Fdbus_method_error_internal,
|
|||
This is an internal function, it shall not be used outside dbus.el.
|
||||
|
||||
usage: (dbus-method-error-internal BUS SERIAL SERVICE &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
register Lisp_Object *args;
|
||||
(int nargs, register Lisp_Object *args)
|
||||
{
|
||||
Lisp_Object bus, serial, service;
|
||||
struct gcpro gcpro1, gcpro2, gcpro3;
|
||||
|
@ -1461,9 +1451,7 @@ type symbols, see Info node `(dbus)Type Conversion'.
|
|||
"org.gnu.Emacs.FileManager" "FileModified" "/home/albinus/.emacs")
|
||||
|
||||
usage: (dbus-send-signal BUS SERVICE PATH INTERFACE SIGNAL &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
register Lisp_Object *args;
|
||||
(int nargs, register Lisp_Object *args)
|
||||
{
|
||||
Lisp_Object bus, service, path, interface, signal;
|
||||
struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5;
|
||||
|
@ -1803,9 +1791,7 @@ INTERFACE, SIGNAL and HANDLER must not be nil. Example:
|
|||
`dbus-unregister-object' for removing the registration.
|
||||
|
||||
usage: (dbus-register-signal BUS SERVICE PATH INTERFACE SIGNAL HANDLER &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
register Lisp_Object *args;
|
||||
(int nargs, register Lisp_Object *args)
|
||||
{
|
||||
Lisp_Object bus, service, path, interface, signal, handler;
|
||||
struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5, gcpro6;
|
||||
|
@ -1927,8 +1913,7 @@ interface offered by SERVICE. It must provide METHOD. HANDLER is a
|
|||
Lisp function to be called when a method call is received. It must
|
||||
accept the input arguments of METHOD. The return value of HANDLER is
|
||||
used for composing the returning D-Bus message. */)
|
||||
(bus, service, path, interface, method, handler)
|
||||
Lisp_Object bus, service, path, interface, method, handler;
|
||||
(Lisp_Object bus, Lisp_Object service, Lisp_Object path, Lisp_Object interface, Lisp_Object method, Lisp_Object handler)
|
||||
{
|
||||
Lisp_Object key, key1, value;
|
||||
DBusConnection *connection;
|
||||
|
|
18
src/dired.c
18
src/dired.c
|
@ -366,8 +366,7 @@ If MATCH is non-nil, mention only file names that match the regexp MATCH.
|
|||
If NOSORT is non-nil, the list is not sorted--its order is unpredictable.
|
||||
Otherwise, the list returned is sorted with `string-lessp'.
|
||||
NOSORT is useful if you plan to sort the result yourself. */)
|
||||
(directory, full, match, nosort)
|
||||
Lisp_Object directory, full, match, nosort;
|
||||
(Lisp_Object directory, Lisp_Object full, Lisp_Object match, Lisp_Object nosort)
|
||||
{
|
||||
Lisp_Object handler;
|
||||
directory = Fexpand_file_name (directory, Qnil);
|
||||
|
@ -395,8 +394,7 @@ ID-FORMAT specifies the preferred format of attributes uid and gid, see
|
|||
`file-attributes' for further documentation.
|
||||
On MS-Windows, performance depends on `w32-get-true-file-attributes',
|
||||
which see. */)
|
||||
(directory, full, match, nosort, id_format)
|
||||
Lisp_Object directory, full, match, nosort, id_format;
|
||||
(Lisp_Object directory, Lisp_Object full, Lisp_Object match, Lisp_Object nosort, Lisp_Object id_format)
|
||||
{
|
||||
Lisp_Object handler;
|
||||
directory = Fexpand_file_name (directory, Qnil);
|
||||
|
@ -427,8 +425,7 @@ completion (in absolute form) and ignore it if PREDICATE returns nil.
|
|||
|
||||
This function ignores some of the possible completions as
|
||||
determined by the variable `completion-ignored-extensions', which see. */)
|
||||
(file, directory, predicate)
|
||||
Lisp_Object file, directory, predicate;
|
||||
(Lisp_Object file, Lisp_Object directory, Lisp_Object predicate)
|
||||
{
|
||||
Lisp_Object handler;
|
||||
|
||||
|
@ -451,8 +448,7 @@ DEFUN ("file-name-all-completions", Ffile_name_all_completions,
|
|||
Sfile_name_all_completions, 2, 2, 0,
|
||||
doc: /* Return a list of all completions of file name FILE in directory DIRECTORY.
|
||||
These are all file names in directory DIRECTORY which begin with FILE. */)
|
||||
(file, directory)
|
||||
Lisp_Object file, directory;
|
||||
(Lisp_Object file, Lisp_Object directory)
|
||||
{
|
||||
Lisp_Object handler;
|
||||
|
||||
|
@ -959,8 +955,7 @@ which see.
|
|||
|
||||
On some FAT-based filesystems, only the date of last access is recorded,
|
||||
so last access time will always be midnight of that day. */)
|
||||
(filename, id_format)
|
||||
Lisp_Object filename, id_format;
|
||||
(Lisp_Object filename, Lisp_Object id_format)
|
||||
{
|
||||
Lisp_Object values[12];
|
||||
Lisp_Object encoded;
|
||||
|
@ -1082,8 +1077,7 @@ so last access time will always be midnight of that day. */)
|
|||
DEFUN ("file-attributes-lessp", Ffile_attributes_lessp, Sfile_attributes_lessp, 2, 2, 0,
|
||||
doc: /* Return t if first arg file attributes list is less than second.
|
||||
Comparison is in lexicographic order and case is significant. */)
|
||||
(f1, f2)
|
||||
Lisp_Object f1, f2;
|
||||
(Lisp_Object f1, Lisp_Object f2)
|
||||
{
|
||||
return Fstring_lessp (Fcar (f1), Fcar (f2));
|
||||
}
|
||||
|
|
|
@ -413,7 +413,7 @@ add_frame_display_history (f, paused_p)
|
|||
DEFUN ("dump-redisplay-history", Fdump_redisplay_history,
|
||||
Sdump_redisplay_history, 0, 0, "",
|
||||
doc: /* Dump redisplay history to stderr. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -3244,8 +3244,7 @@ window_to_frame_hpos (w, hpos)
|
|||
|
||||
DEFUN ("redraw-frame", Fredraw_frame, Sredraw_frame, 1, 1, 0,
|
||||
doc: /* Clear frame FRAME and output again what is supposed to appear on it. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
struct frame *f;
|
||||
|
||||
|
@ -3292,7 +3291,7 @@ redraw_frame (struct frame *f)
|
|||
|
||||
DEFUN ("redraw-display", Fredraw_display, Sredraw_display, 0, 0, "",
|
||||
doc: /* Clear and redisplay all visible frames. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object tail, frame;
|
||||
|
||||
|
@ -5855,8 +5854,7 @@ DEFUN ("open-termscript", Fopen_termscript, Sopen_termscript,
|
|||
1, 1, "FOpen termscript file: ",
|
||||
doc: /* Start writing all terminal output to FILE as well as the terminal.
|
||||
FILE = nil means just close any termscript file currently open. */)
|
||||
(file)
|
||||
Lisp_Object file;
|
||||
(Lisp_Object file)
|
||||
{
|
||||
struct tty_display_info *tty;
|
||||
|
||||
|
@ -5894,9 +5892,7 @@ Optional parameter TERMINAL specifies the tty terminal device to use.
|
|||
It may be a terminal object, a frame, or nil for the terminal used by
|
||||
the currently selected frame. In batch mode, STRING is sent to stdout
|
||||
when TERMINAL is nil. */)
|
||||
(string, terminal)
|
||||
Lisp_Object string;
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object string, Lisp_Object terminal)
|
||||
{
|
||||
struct terminal *t = get_terminal (terminal, 1);
|
||||
FILE *out;
|
||||
|
@ -5937,8 +5933,7 @@ DEFUN ("ding", Fding, Sding, 0, 1, 0,
|
|||
doc: /* Beep, or flash the screen.
|
||||
Also, unless an argument is given,
|
||||
terminate any keyboard macro currently executing. */)
|
||||
(arg)
|
||||
Lisp_Object arg;
|
||||
(Lisp_Object arg)
|
||||
{
|
||||
if (!NILP (arg))
|
||||
{
|
||||
|
@ -5977,8 +5972,7 @@ fraction of a second. Optional second arg MILLISECONDS specifies an
|
|||
additional wait period, in milliseconds; this may be useful if your
|
||||
Emacs was built without floating point support.
|
||||
\(Not all operating systems support waiting for a fraction of a second.) */)
|
||||
(seconds, milliseconds)
|
||||
Lisp_Object seconds, milliseconds;
|
||||
(Lisp_Object seconds, Lisp_Object milliseconds)
|
||||
{
|
||||
int sec, usec;
|
||||
|
||||
|
@ -6082,8 +6076,7 @@ DEFUN ("redisplay", Fredisplay, Sredisplay, 0, 1, 0,
|
|||
If optional arg FORCE is non-nil or `redisplay-dont-pause' is non-nil,
|
||||
perform a full redisplay even if input is available.
|
||||
Return t if redisplay was performed, nil otherwise. */)
|
||||
(force)
|
||||
Lisp_Object force;
|
||||
(Lisp_Object force)
|
||||
{
|
||||
int count;
|
||||
|
||||
|
@ -6127,8 +6120,7 @@ the current state.
|
|||
|
||||
If VARIABLE is nil, an internal variable is used. Users should not
|
||||
pass nil for VARIABLE. */)
|
||||
(variable)
|
||||
Lisp_Object variable;
|
||||
(Lisp_Object variable)
|
||||
{
|
||||
Lisp_Object state, tail, frame, buf;
|
||||
Lisp_Object *vecp, *end;
|
||||
|
@ -6454,8 +6446,7 @@ DEFUN ("internal-show-cursor", Finternal_show_cursor,
|
|||
WINDOW nil means use the selected window. SHOW non-nil means
|
||||
show a cursor in WINDOW in the next redisplay. SHOW nil means
|
||||
don't show a cursor. */)
|
||||
(window, show)
|
||||
Lisp_Object window, show;
|
||||
(Lisp_Object window, Lisp_Object show)
|
||||
{
|
||||
/* Don't change cursor state while redisplaying. This could confuse
|
||||
output routines. */
|
||||
|
@ -6477,8 +6468,7 @@ DEFUN ("internal-show-cursor-p", Finternal_show_cursor_p,
|
|||
Sinternal_show_cursor_p, 0, 1, 0,
|
||||
doc: /* Value is non-nil if next redisplay will display a cursor in WINDOW.
|
||||
WINDOW nil or omitted means report on the selected window. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
struct window *w;
|
||||
|
||||
|
@ -6494,7 +6484,7 @@ WINDOW nil or omitted means report on the selected window. */)
|
|||
DEFUN ("last-nonminibuffer-frame", Flast_nonminibuf_frame,
|
||||
Slast_nonminibuf_frame, 0, 0, 0,
|
||||
doc: /* Value is last nonminibuffer frame. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object frame = Qnil;
|
||||
|
||||
|
|
12
src/doc.c
12
src/doc.c
|
@ -341,8 +341,7 @@ DEFUN ("documentation", Fdocumentation, Sdocumentation, 1, 2, 0,
|
|||
doc: /* Return the documentation string of FUNCTION.
|
||||
Unless a non-nil second argument RAW is given, the
|
||||
string is passed through `substitute-command-keys'. */)
|
||||
(function, raw)
|
||||
Lisp_Object function, raw;
|
||||
(Lisp_Object function, Lisp_Object raw)
|
||||
{
|
||||
Lisp_Object fun;
|
||||
Lisp_Object funcar;
|
||||
|
@ -469,8 +468,7 @@ Third argument RAW omitted or nil means pass the result through
|
|||
This differs from `get' in that it can refer to strings stored in the
|
||||
`etc/DOC' file; and that it evaluates documentation properties that
|
||||
aren't strings. */)
|
||||
(symbol, prop, raw)
|
||||
Lisp_Object symbol, prop, raw;
|
||||
(Lisp_Object symbol, Lisp_Object prop, Lisp_Object raw)
|
||||
{
|
||||
int try_reload = 1;
|
||||
Lisp_Object tem;
|
||||
|
@ -558,8 +556,7 @@ The function takes one argument, FILENAME, a string;
|
|||
it specifies the file name (without a directory) of the DOC file.
|
||||
That file is found in `../etc' now; later, when the dumped Emacs is run,
|
||||
the same file name is found in the `doc-directory'. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
int fd;
|
||||
char buf[1024 + 1];
|
||||
|
@ -707,8 +704,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int
|
|||
|
||||
Returns original STRING if no substitutions were made. Otherwise,
|
||||
a new string, without any text properties, is returned. */)
|
||||
(string)
|
||||
Lisp_Object string;
|
||||
(Lisp_Object string)
|
||||
{
|
||||
unsigned char *buf;
|
||||
int changed = 0;
|
||||
|
|
25
src/dosfns.c
25
src/dosfns.c
|
@ -55,8 +55,7 @@ Return the updated REGISTER vector.
|
|||
INTERRUPT should be an integer in the range 0 to 255.
|
||||
REGISTERS should be a vector produced by `make-register' and
|
||||
`set-register-value'. */)
|
||||
(interrupt, registers)
|
||||
Lisp_Object interrupt, registers;
|
||||
(Lisp_Object interrupt, Lisp_Object registers)
|
||||
{
|
||||
register int i;
|
||||
int no;
|
||||
|
@ -97,8 +96,7 @@ REGISTERS should be a vector produced by `make-register' and
|
|||
DEFUN ("msdos-memget", Fdos_memget, Sdos_memget, 2, 2, 0,
|
||||
doc: /* Read DOS memory at offset ADDRESS into VECTOR.
|
||||
Return the updated VECTOR. */)
|
||||
(address, vector)
|
||||
Lisp_Object address, vector;
|
||||
(Lisp_Object address, Lisp_Object vector)
|
||||
{
|
||||
register int i;
|
||||
int offs, len;
|
||||
|
@ -122,8 +120,7 @@ Return the updated VECTOR. */)
|
|||
|
||||
DEFUN ("msdos-memput", Fdos_memput, Sdos_memput, 2, 2, 0,
|
||||
doc: /* Write DOS memory at offset ADDRESS from VECTOR. */)
|
||||
(address, vector)
|
||||
Lisp_Object address, vector;
|
||||
(Lisp_Object address, Lisp_Object vector)
|
||||
{
|
||||
register int i;
|
||||
int offs, len;
|
||||
|
@ -153,8 +150,7 @@ DEFUN ("msdos-set-keyboard", Fmsdos_set_keyboard, Smsdos_set_keyboard, 1, 2, 0,
|
|||
If the optional argument ALLKEYS is non-nil, the keyboard is mapped for
|
||||
all keys; otherwise it is only used when the ALT key is pressed.
|
||||
The current keyboard layout is available in dos-keyboard-code. */)
|
||||
(country_code, allkeys)
|
||||
Lisp_Object country_code, allkeys;
|
||||
(Lisp_Object country_code, Lisp_Object allkeys)
|
||||
{
|
||||
CHECK_NUMBER (country_code);
|
||||
if (!dos_set_keyboard (XINT (country_code), !NILP (allkeys)))
|
||||
|
@ -168,7 +164,7 @@ The current keyboard layout is available in dos-keyboard-code. */)
|
|||
|
||||
DEFUN ("msdos-mouse-p", Fmsdos_mouse_p, Smsdos_mouse_p, 0, 0, 0,
|
||||
doc: /* Report whether a mouse is present. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (have_mouse)
|
||||
return Qt;
|
||||
|
@ -179,7 +175,7 @@ DEFUN ("msdos-mouse-p", Fmsdos_mouse_p, Smsdos_mouse_p, 0, 0, 0,
|
|||
|
||||
DEFUN ("msdos-mouse-init", Fmsdos_mouse_init, Smsdos_mouse_init, 0, 0, "",
|
||||
doc: /* Initialize and enable mouse if available. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (have_mouse)
|
||||
{
|
||||
|
@ -192,7 +188,7 @@ DEFUN ("msdos-mouse-init", Fmsdos_mouse_init, Smsdos_mouse_init, 0, 0, "",
|
|||
|
||||
DEFUN ("msdos-mouse-enable", Fmsdos_mouse_enable, Smsdos_mouse_enable, 0, 0, "",
|
||||
doc: /* Enable mouse if available. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (have_mouse)
|
||||
{
|
||||
|
@ -204,7 +200,7 @@ DEFUN ("msdos-mouse-enable", Fmsdos_mouse_enable, Smsdos_mouse_enable, 0, 0, "",
|
|||
|
||||
DEFUN ("msdos-mouse-disable", Fmsdos_mouse_disable, Smsdos_mouse_disable, 0, 0, "",
|
||||
doc: /* Disable mouse if available. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
mouse_off ();
|
||||
if (have_mouse) have_mouse = -1;
|
||||
|
@ -214,7 +210,7 @@ DEFUN ("msdos-mouse-disable", Fmsdos_mouse_disable, Smsdos_mouse_disable, 0, 0,
|
|||
DEFUN ("insert-startup-screen", Finsert_startup_screen, Sinsert_startup_screen, 0, 0, "",
|
||||
doc: /* Insert copy of screen contents prior to starting Emacs.
|
||||
Return nil if startup screen is not available. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
char *s;
|
||||
int rows, cols, i, j;
|
||||
|
@ -509,8 +505,7 @@ Value is a list of floats (TOTAL FREE AVAIL), where TOTAL is the total
|
|||
storage of the file system, FREE is the free storage, and AVAIL is the
|
||||
storage available to a non-superuser. All 3 numbers are in bytes.
|
||||
If the underlying system call fails, value is nil. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
struct statfs stfs;
|
||||
Lisp_Object encoded, value;
|
||||
|
|
220
src/editfns.c
220
src/editfns.c
|
@ -209,8 +209,7 @@ init_editfns (void)
|
|||
DEFUN ("char-to-string", Fchar_to_string, Schar_to_string, 1, 1, 0,
|
||||
doc: /* Convert arg CHAR to a string containing that character.
|
||||
usage: (char-to-string CHAR) */)
|
||||
(character)
|
||||
Lisp_Object character;
|
||||
(Lisp_Object character)
|
||||
{
|
||||
int len;
|
||||
unsigned char str[MAX_MULTIBYTE_LENGTH];
|
||||
|
@ -223,8 +222,7 @@ usage: (char-to-string CHAR) */)
|
|||
|
||||
DEFUN ("byte-to-string", Fbyte_to_string, Sbyte_to_string, 1, 1, 0,
|
||||
doc: /* Convert arg BYTE to a string containing that byte. */)
|
||||
(byte)
|
||||
Lisp_Object byte;
|
||||
(Lisp_Object byte)
|
||||
{
|
||||
unsigned char b;
|
||||
CHECK_NUMBER (byte);
|
||||
|
@ -235,8 +233,7 @@ DEFUN ("byte-to-string", Fbyte_to_string, Sbyte_to_string, 1, 1, 0,
|
|||
DEFUN ("string-to-char", Fstring_to_char, Sstring_to_char, 1, 1, 0,
|
||||
doc: /* Convert arg STRING to a character, the first character of that string.
|
||||
A multibyte character is handled correctly. */)
|
||||
(string)
|
||||
register Lisp_Object string;
|
||||
(register Lisp_Object string)
|
||||
{
|
||||
register Lisp_Object val;
|
||||
CHECK_STRING (string);
|
||||
|
@ -264,7 +261,7 @@ buildmark (int charpos, int bytepos)
|
|||
DEFUN ("point", Fpoint, Spoint, 0, 0, 0,
|
||||
doc: /* Return value of point, as an integer.
|
||||
Beginning of buffer is position (point-min). */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object temp;
|
||||
XSETFASTINT (temp, PT);
|
||||
|
@ -273,7 +270,7 @@ Beginning of buffer is position (point-min). */)
|
|||
|
||||
DEFUN ("point-marker", Fpoint_marker, Spoint_marker, 0, 0, 0,
|
||||
doc: /* Return value of point, as a marker object. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return buildmark (PT, PT_BYTE);
|
||||
}
|
||||
|
@ -294,8 +291,7 @@ DEFUN ("goto-char", Fgoto_char, Sgoto_char, 1, 1, "NGoto char: ",
|
|||
Beginning of buffer is position (point-min), end is (point-max).
|
||||
|
||||
The return value is POSITION. */)
|
||||
(position)
|
||||
register Lisp_Object position;
|
||||
(register Lisp_Object position)
|
||||
{
|
||||
int pos;
|
||||
|
||||
|
@ -347,14 +343,14 @@ region_limit (int beginningp)
|
|||
|
||||
DEFUN ("region-beginning", Fregion_beginning, Sregion_beginning, 0, 0, 0,
|
||||
doc: /* Return position of beginning of region, as an integer. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return region_limit (1);
|
||||
}
|
||||
|
||||
DEFUN ("region-end", Fregion_end, Sregion_end, 0, 0, 0,
|
||||
doc: /* Return position of end of region, as an integer. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return region_limit (0);
|
||||
}
|
||||
|
@ -363,7 +359,7 @@ DEFUN ("mark-marker", Fmark_marker, Smark_marker, 0, 0, 0,
|
|||
doc: /* Return this buffer's mark, as a marker object.
|
||||
Watch out! Moving this marker changes the mark position.
|
||||
If you set the marker not to point anywhere, the buffer will have no mark. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return current_buffer->mark;
|
||||
}
|
||||
|
@ -639,8 +635,7 @@ DEFUN ("delete-field", Fdelete_field, Sdelete_field, 0, 1, 0,
|
|||
doc: /* Delete the field surrounding POS.
|
||||
A field is a region of text with the same `field' property.
|
||||
If POS is nil, the value of point is used for POS. */)
|
||||
(pos)
|
||||
Lisp_Object pos;
|
||||
(Lisp_Object pos)
|
||||
{
|
||||
int beg, end;
|
||||
find_field (pos, Qnil, Qnil, &beg, Qnil, &end);
|
||||
|
@ -653,8 +648,7 @@ DEFUN ("field-string", Ffield_string, Sfield_string, 0, 1, 0,
|
|||
doc: /* Return the contents of the field surrounding POS as a string.
|
||||
A field is a region of text with the same `field' property.
|
||||
If POS is nil, the value of point is used for POS. */)
|
||||
(pos)
|
||||
Lisp_Object pos;
|
||||
(Lisp_Object pos)
|
||||
{
|
||||
int beg, end;
|
||||
find_field (pos, Qnil, Qnil, &beg, Qnil, &end);
|
||||
|
@ -665,8 +659,7 @@ DEFUN ("field-string-no-properties", Ffield_string_no_properties, Sfield_string_
|
|||
doc: /* Return the contents of the field around POS, without text properties.
|
||||
A field is a region of text with the same `field' property.
|
||||
If POS is nil, the value of point is used for POS. */)
|
||||
(pos)
|
||||
Lisp_Object pos;
|
||||
(Lisp_Object pos)
|
||||
{
|
||||
int beg, end;
|
||||
find_field (pos, Qnil, Qnil, &beg, Qnil, &end);
|
||||
|
@ -681,8 +674,7 @@ If ESCAPE-FROM-EDGE is non-nil and POS is at the beginning of its
|
|||
field, then the beginning of the *previous* field is returned.
|
||||
If LIMIT is non-nil, it is a buffer position; if the beginning of the field
|
||||
is before LIMIT, then LIMIT will be returned instead. */)
|
||||
(pos, escape_from_edge, limit)
|
||||
Lisp_Object pos, escape_from_edge, limit;
|
||||
(Lisp_Object pos, Lisp_Object escape_from_edge, Lisp_Object limit)
|
||||
{
|
||||
int beg;
|
||||
find_field (pos, escape_from_edge, limit, &beg, Qnil, 0);
|
||||
|
@ -697,8 +689,7 @@ If ESCAPE-FROM-EDGE is non-nil and POS is at the end of its field,
|
|||
then the end of the *following* field is returned.
|
||||
If LIMIT is non-nil, it is a buffer position; if the end of the field
|
||||
is after LIMIT, then LIMIT will be returned instead. */)
|
||||
(pos, escape_from_edge, limit)
|
||||
Lisp_Object pos, escape_from_edge, limit;
|
||||
(Lisp_Object pos, Lisp_Object escape_from_edge, Lisp_Object limit)
|
||||
{
|
||||
int end;
|
||||
find_field (pos, escape_from_edge, Qnil, 0, limit, &end);
|
||||
|
@ -732,9 +723,7 @@ If the optional argument INHIBIT-CAPTURE-PROPERTY is non-nil, and OLD-POS has
|
|||
a non-nil property of that name, then any field boundaries are ignored.
|
||||
|
||||
Field boundaries are not noticed if `inhibit-field-text-motion' is non-nil. */)
|
||||
(new_pos, old_pos, escape_from_edge, only_in_line, inhibit_capture_property)
|
||||
Lisp_Object new_pos, old_pos;
|
||||
Lisp_Object escape_from_edge, only_in_line, inhibit_capture_property;
|
||||
(Lisp_Object new_pos, Lisp_Object old_pos, Lisp_Object escape_from_edge, Lisp_Object only_in_line, Lisp_Object inhibit_capture_property)
|
||||
{
|
||||
/* If non-zero, then the original point, before re-positioning. */
|
||||
int orig_point = 0;
|
||||
|
@ -829,8 +818,7 @@ starts at point, the scan stops as soon as it starts. To ignore field
|
|||
boundaries bind `inhibit-field-text-motion' to t.
|
||||
|
||||
This function does not move point. */)
|
||||
(n)
|
||||
Lisp_Object n;
|
||||
(Lisp_Object n)
|
||||
{
|
||||
int orig, orig_byte, end;
|
||||
int count = SPECPDL_INDEX ();
|
||||
|
@ -868,8 +856,7 @@ at point, the scan stops as soon as it starts. To ignore field
|
|||
boundaries bind `inhibit-field-text-motion' to t.
|
||||
|
||||
This function does not move point. */)
|
||||
(n)
|
||||
Lisp_Object n;
|
||||
(Lisp_Object n)
|
||||
{
|
||||
int end_pos;
|
||||
int orig = PT;
|
||||
|
@ -1000,8 +987,7 @@ If you only want to save the current buffer but not point nor mark,
|
|||
then just use `save-current-buffer', or even `with-current-buffer'.
|
||||
|
||||
usage: (save-excursion &rest BODY) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
register Lisp_Object val;
|
||||
int count = SPECPDL_INDEX ();
|
||||
|
@ -1016,8 +1002,7 @@ DEFUN ("save-current-buffer", Fsave_current_buffer, Ssave_current_buffer, 0, UNE
|
|||
doc: /* Save the current buffer; execute BODY; restore the current buffer.
|
||||
Executes BODY just like `progn'.
|
||||
usage: (save-current-buffer &rest BODY) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
Lisp_Object val;
|
||||
int count = SPECPDL_INDEX ();
|
||||
|
@ -1031,8 +1016,7 @@ usage: (save-current-buffer &rest BODY) */)
|
|||
DEFUN ("buffer-size", Fbufsize, Sbufsize, 0, 1, 0,
|
||||
doc: /* Return the number of characters in the current buffer.
|
||||
If BUFFER, return the number of characters in that buffer instead. */)
|
||||
(buffer)
|
||||
Lisp_Object buffer;
|
||||
(Lisp_Object buffer)
|
||||
{
|
||||
if (NILP (buffer))
|
||||
return make_number (Z - BEG);
|
||||
|
@ -1047,7 +1031,7 @@ If BUFFER, return the number of characters in that buffer instead. */)
|
|||
DEFUN ("point-min", Fpoint_min, Spoint_min, 0, 0, 0,
|
||||
doc: /* Return the minimum permissible value of point in the current buffer.
|
||||
This is 1, unless narrowing (a buffer restriction) is in effect. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object temp;
|
||||
XSETFASTINT (temp, BEGV);
|
||||
|
@ -1057,7 +1041,7 @@ This is 1, unless narrowing (a buffer restriction) is in effect. */)
|
|||
DEFUN ("point-min-marker", Fpoint_min_marker, Spoint_min_marker, 0, 0, 0,
|
||||
doc: /* Return a marker to the minimum permissible value of point in this buffer.
|
||||
This is the beginning, unless narrowing (a buffer restriction) is in effect. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return buildmark (BEGV, BEGV_BYTE);
|
||||
}
|
||||
|
@ -1066,7 +1050,7 @@ DEFUN ("point-max", Fpoint_max, Spoint_max, 0, 0, 0,
|
|||
doc: /* Return the maximum permissible value of point in the current buffer.
|
||||
This is (1+ (buffer-size)), unless narrowing (a buffer restriction)
|
||||
is in effect, in which case it is less. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object temp;
|
||||
XSETFASTINT (temp, ZV);
|
||||
|
@ -1077,7 +1061,7 @@ DEFUN ("point-max-marker", Fpoint_max_marker, Spoint_max_marker, 0, 0, 0,
|
|||
doc: /* Return a marker to the maximum permissible value of point in this buffer.
|
||||
This is (1+ (buffer-size)), unless narrowing (a buffer restriction)
|
||||
is in effect, in which case it is less. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return buildmark (ZV, ZV_BYTE);
|
||||
}
|
||||
|
@ -1085,7 +1069,7 @@ is in effect, in which case it is less. */)
|
|||
DEFUN ("gap-position", Fgap_position, Sgap_position, 0, 0, 0,
|
||||
doc: /* Return the position of the gap, in the current buffer.
|
||||
See also `gap-size'. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object temp;
|
||||
XSETFASTINT (temp, GPT);
|
||||
|
@ -1095,7 +1079,7 @@ See also `gap-size'. */)
|
|||
DEFUN ("gap-size", Fgap_size, Sgap_size, 0, 0, 0,
|
||||
doc: /* Return the size of the current buffer's gap.
|
||||
See also `gap-position'. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object temp;
|
||||
XSETFASTINT (temp, GAP_SIZE);
|
||||
|
@ -1105,8 +1089,7 @@ See also `gap-position'. */)
|
|||
DEFUN ("position-bytes", Fposition_bytes, Sposition_bytes, 1, 1, 0,
|
||||
doc: /* Return the byte position for character position POSITION.
|
||||
If POSITION is out of range, the value is nil. */)
|
||||
(position)
|
||||
Lisp_Object position;
|
||||
(Lisp_Object position)
|
||||
{
|
||||
CHECK_NUMBER_COERCE_MARKER (position);
|
||||
if (XINT (position) < BEG || XINT (position) > Z)
|
||||
|
@ -1117,8 +1100,7 @@ If POSITION is out of range, the value is nil. */)
|
|||
DEFUN ("byte-to-position", Fbyte_to_position, Sbyte_to_position, 1, 1, 0,
|
||||
doc: /* Return the character position for byte position BYTEPOS.
|
||||
If BYTEPOS is out of range, the value is nil. */)
|
||||
(bytepos)
|
||||
Lisp_Object bytepos;
|
||||
(Lisp_Object bytepos)
|
||||
{
|
||||
CHECK_NUMBER (bytepos);
|
||||
if (XINT (bytepos) < BEG_BYTE || XINT (bytepos) > Z_BYTE)
|
||||
|
@ -1129,7 +1111,7 @@ If BYTEPOS is out of range, the value is nil. */)
|
|||
DEFUN ("following-char", Ffollowing_char, Sfollowing_char, 0, 0, 0,
|
||||
doc: /* Return the character following point, as a number.
|
||||
At the end of the buffer or accessible region, return 0. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object temp;
|
||||
if (PT >= ZV)
|
||||
|
@ -1142,7 +1124,7 @@ At the end of the buffer or accessible region, return 0. */)
|
|||
DEFUN ("preceding-char", Fprevious_char, Sprevious_char, 0, 0, 0,
|
||||
doc: /* Return the character preceding point, as a number.
|
||||
At the beginning of the buffer or accessible region, return 0. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object temp;
|
||||
if (PT <= BEGV)
|
||||
|
@ -1161,7 +1143,7 @@ At the beginning of the buffer or accessible region, return 0. */)
|
|||
DEFUN ("bobp", Fbobp, Sbobp, 0, 0, 0,
|
||||
doc: /* Return t if point is at the beginning of the buffer.
|
||||
If the buffer is narrowed, this means the beginning of the narrowed part. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (PT == BEGV)
|
||||
return Qt;
|
||||
|
@ -1171,7 +1153,7 @@ If the buffer is narrowed, this means the beginning of the narrowed part. */)
|
|||
DEFUN ("eobp", Feobp, Seobp, 0, 0, 0,
|
||||
doc: /* Return t if point is at the end of the buffer.
|
||||
If the buffer is narrowed, this means the end of the narrowed part. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (PT == ZV)
|
||||
return Qt;
|
||||
|
@ -1180,7 +1162,7 @@ If the buffer is narrowed, this means the end of the narrowed part. */)
|
|||
|
||||
DEFUN ("bolp", Fbolp, Sbolp, 0, 0, 0,
|
||||
doc: /* Return t if point is at the beginning of a line. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (PT == BEGV || FETCH_BYTE (PT_BYTE - 1) == '\n')
|
||||
return Qt;
|
||||
|
@ -1190,7 +1172,7 @@ DEFUN ("bolp", Fbolp, Sbolp, 0, 0, 0,
|
|||
DEFUN ("eolp", Feolp, Seolp, 0, 0, 0,
|
||||
doc: /* Return t if point is at the end of a line.
|
||||
`End of a line' includes point being at the end of the buffer. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (PT == ZV || FETCH_BYTE (PT_BYTE) == '\n')
|
||||
return Qt;
|
||||
|
@ -1201,8 +1183,7 @@ DEFUN ("char-after", Fchar_after, Schar_after, 0, 1, 0,
|
|||
doc: /* Return character in current buffer at position POS.
|
||||
POS is an integer or a marker and defaults to point.
|
||||
If POS is out of range, the value is nil. */)
|
||||
(pos)
|
||||
Lisp_Object pos;
|
||||
(Lisp_Object pos)
|
||||
{
|
||||
register int pos_byte;
|
||||
|
||||
|
@ -1234,8 +1215,7 @@ DEFUN ("char-before", Fchar_before, Schar_before, 0, 1, 0,
|
|||
doc: /* Return character in current buffer preceding position POS.
|
||||
POS is an integer or a marker and defaults to point.
|
||||
If POS is out of range, the value is nil. */)
|
||||
(pos)
|
||||
Lisp_Object pos;
|
||||
(Lisp_Object pos)
|
||||
{
|
||||
register Lisp_Object val;
|
||||
register int pos_byte;
|
||||
|
@ -1284,8 +1264,7 @@ that determines the value of this function.
|
|||
|
||||
If optional argument UID is an integer or a float, return the login name
|
||||
of the user with that uid, or nil if there is no such user. */)
|
||||
(uid)
|
||||
Lisp_Object uid;
|
||||
(Lisp_Object uid)
|
||||
{
|
||||
struct passwd *pw;
|
||||
uid_t id;
|
||||
|
@ -1311,7 +1290,7 @@ DEFUN ("user-real-login-name", Fuser_real_login_name, Suser_real_login_name,
|
|||
doc: /* Return the name of the user's real uid, as a string.
|
||||
This ignores the environment variables LOGNAME and USER, so it differs from
|
||||
`user-login-name' when running under `su'. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
/* Set up the user name info if we didn't do it before.
|
||||
(That can happen if Emacs is dumpable
|
||||
|
@ -1324,7 +1303,7 @@ This ignores the environment variables LOGNAME and USER, so it differs from
|
|||
DEFUN ("user-uid", Fuser_uid, Suser_uid, 0, 0, 0,
|
||||
doc: /* Return the effective uid of Emacs.
|
||||
Value is an integer or a float, depending on the value. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
/* Assignment to EMACS_INT stops GCC whining about limited range of
|
||||
data type. */
|
||||
|
@ -1340,7 +1319,7 @@ Value is an integer or a float, depending on the value. */)
|
|||
DEFUN ("user-real-uid", Fuser_real_uid, Suser_real_uid, 0, 0, 0,
|
||||
doc: /* Return the real uid of Emacs.
|
||||
Value is an integer or a float, depending on the value. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
/* Assignment to EMACS_INT stops GCC whining about limited range of
|
||||
data type. */
|
||||
|
@ -1362,8 +1341,7 @@ If optional argument UID is an integer or float, return the full name
|
|||
of the user with that uid, or nil if there is no such user.
|
||||
If UID is a string, return the full name of the user with that login
|
||||
name, or nil if there is no such user. */)
|
||||
(uid)
|
||||
Lisp_Object uid;
|
||||
(Lisp_Object uid)
|
||||
{
|
||||
struct passwd *pw;
|
||||
register unsigned char *p, *q;
|
||||
|
@ -1419,7 +1397,7 @@ name, or nil if there is no such user. */)
|
|||
|
||||
DEFUN ("system-name", Fsystem_name, Ssystem_name, 0, 0, 0,
|
||||
doc: /* Return the host name of the machine you are running on, as a string. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return Vsystem_name;
|
||||
}
|
||||
|
@ -1446,7 +1424,7 @@ get_operating_system_release (void)
|
|||
|
||||
DEFUN ("emacs-pid", Femacs_pid, Semacs_pid, 0, 0, 0,
|
||||
doc: /* Return the process ID of Emacs, as an integer. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return make_number (getpid ());
|
||||
}
|
||||
|
@ -1460,7 +1438,7 @@ count.
|
|||
|
||||
The microsecond count is zero on systems that do not provide
|
||||
resolution finer than a second. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
EMACS_TIME t;
|
||||
|
||||
|
@ -1481,7 +1459,7 @@ count.
|
|||
On systems that can't determine the run time, `get-internal-run-time'
|
||||
does the same thing as `current-time'. The microsecond count is zero
|
||||
on systems that do not provide resolution finer than a second. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
#ifdef HAVE_GETRUSAGE
|
||||
struct rusage usage;
|
||||
|
@ -1572,8 +1550,7 @@ have the form (HIGH . LOW), but this is considered obsolete.
|
|||
WARNING: Since the result is floating point, it may not be exact.
|
||||
If precise time stamps are required, use either `current-time',
|
||||
or (if you need time as a string) `format-time-string'. */)
|
||||
(specified_time)
|
||||
Lisp_Object specified_time;
|
||||
(Lisp_Object specified_time)
|
||||
{
|
||||
time_t sec;
|
||||
int usec;
|
||||
|
@ -1683,8 +1660,7 @@ The modifiers are `E' and `O'. For certain characters X,
|
|||
%OX is like %X, but uses the locale's number symbols.
|
||||
|
||||
For example, to produce full ISO 8601 format, use "%Y-%m-%dT%T%z". */)
|
||||
(format_string, time, universal)
|
||||
Lisp_Object format_string, time, universal;
|
||||
(Lisp_Object format_string, Lisp_Object time, Lisp_Object universal)
|
||||
{
|
||||
time_t value;
|
||||
int size;
|
||||
|
@ -1751,8 +1727,7 @@ where 0 is Sunday. DST is t if daylight saving time is in effect,
|
|||
otherwise nil. ZONE is an integer indicating the number of seconds
|
||||
east of Greenwich. (Note that Common Lisp has different meanings for
|
||||
DOW and ZONE.) */)
|
||||
(specified_time)
|
||||
Lisp_Object specified_time;
|
||||
(Lisp_Object specified_time)
|
||||
{
|
||||
time_t time_spec;
|
||||
struct tm save_tm;
|
||||
|
@ -1812,9 +1787,7 @@ Years before 1970 are not guaranteed to work. On some systems,
|
|||
year values as low as 1901 do work.
|
||||
|
||||
usage: (encode-time SECOND MINUTE HOUR DAY MONTH YEAR &optional ZONE) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
register Lisp_Object *args;
|
||||
(int nargs, register Lisp_Object *args)
|
||||
{
|
||||
time_t time;
|
||||
struct tm tm;
|
||||
|
@ -1900,8 +1873,7 @@ current time. The argument should have the form (HIGH LOW . IGNORED).
|
|||
Thus, you can use times obtained from `current-time' and from
|
||||
`file-attributes'. SPECIFIED-TIME can also have the form (HIGH . LOW),
|
||||
but this is considered obsolete. */)
|
||||
(specified_time)
|
||||
Lisp_Object specified_time;
|
||||
(Lisp_Object specified_time)
|
||||
{
|
||||
time_t value;
|
||||
struct tm *tm;
|
||||
|
@ -1963,8 +1935,7 @@ have the form (HIGH . LOW), but this is considered obsolete.
|
|||
Some operating systems cannot provide all this information to Emacs;
|
||||
in this case, `current-time-zone' returns a list containing nil for
|
||||
the data it can't find. */)
|
||||
(specified_time)
|
||||
Lisp_Object specified_time;
|
||||
(Lisp_Object specified_time)
|
||||
{
|
||||
time_t value;
|
||||
struct tm *t;
|
||||
|
@ -2028,8 +1999,7 @@ DEFUN ("set-time-zone-rule", Fset_time_zone_rule, Sset_time_zone_rule, 1, 1, 0,
|
|||
doc: /* Set the local time zone using TZ, a string specifying a time zone rule.
|
||||
If TZ is nil, use implementation-defined default time zone information.
|
||||
If TZ is t, use Universal Time. */)
|
||||
(tz)
|
||||
Lisp_Object tz;
|
||||
(Lisp_Object tz)
|
||||
{
|
||||
char *tzstring;
|
||||
|
||||
|
@ -2225,9 +2195,7 @@ buffer; to accomplish this, apply `string-as-multibyte' to the string
|
|||
and insert the result.
|
||||
|
||||
usage: (insert &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
register Lisp_Object *args;
|
||||
(int nargs, register Lisp_Object *args)
|
||||
{
|
||||
general_insert_function (insert, insert_from_string, 0, nargs, args);
|
||||
return Qnil;
|
||||
|
@ -2246,9 +2214,7 @@ If the current buffer is unibyte, multibyte strings are converted
|
|||
to unibyte for insertion.
|
||||
|
||||
usage: (insert-and-inherit &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
register Lisp_Object *args;
|
||||
(int nargs, register Lisp_Object *args)
|
||||
{
|
||||
general_insert_function (insert_and_inherit, insert_from_string, 1,
|
||||
nargs, args);
|
||||
|
@ -2265,9 +2231,7 @@ If the current buffer is unibyte, multibyte strings are converted
|
|||
to unibyte for insertion.
|
||||
|
||||
usage: (insert-before-markers &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
register Lisp_Object *args;
|
||||
(int nargs, register Lisp_Object *args)
|
||||
{
|
||||
general_insert_function (insert_before_markers,
|
||||
insert_from_string_before_markers, 0,
|
||||
|
@ -2286,9 +2250,7 @@ If the current buffer is unibyte, multibyte strings are converted
|
|||
to unibyte for insertion.
|
||||
|
||||
usage: (insert-before-markers-and-inherit &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
register Lisp_Object *args;
|
||||
(int nargs, register Lisp_Object *args)
|
||||
{
|
||||
general_insert_function (insert_before_markers_and_inherit,
|
||||
insert_from_string_before_markers, 1,
|
||||
|
@ -2301,8 +2263,7 @@ DEFUN ("insert-char", Finsert_char, Sinsert_char, 2, 3, 0,
|
|||
Point, and before-insertion markers, are relocated as in the function `insert'.
|
||||
The optional third arg INHERIT, if non-nil, says to inherit text properties
|
||||
from adjoining text, if those properties are sticky. */)
|
||||
(character, count, inherit)
|
||||
Lisp_Object character, count, inherit;
|
||||
(Lisp_Object character, Lisp_Object count, Lisp_Object inherit)
|
||||
{
|
||||
register unsigned char *string;
|
||||
register int strlen;
|
||||
|
@ -2354,8 +2315,7 @@ corresponding eight-bit character is inserted.
|
|||
Point, and before-insertion markers, are relocated as in the function `insert'.
|
||||
The optional third arg INHERIT, if non-nil, says to inherit text properties
|
||||
from adjoining text, if those properties are sticky. */)
|
||||
(byte, count, inherit)
|
||||
Lisp_Object byte, count, inherit;
|
||||
(Lisp_Object byte, Lisp_Object count, Lisp_Object inherit)
|
||||
{
|
||||
CHECK_NUMBER (byte);
|
||||
if (XINT (byte) < 0 || XINT (byte) > 255)
|
||||
|
@ -2477,8 +2437,7 @@ The string returned is multibyte if the buffer is multibyte.
|
|||
This function copies the text properties of that part of the buffer
|
||||
into the result string; if you don't want the text properties,
|
||||
use `buffer-substring-no-properties' instead. */)
|
||||
(start, end)
|
||||
Lisp_Object start, end;
|
||||
(Lisp_Object start, Lisp_Object end)
|
||||
{
|
||||
register int b, e;
|
||||
|
||||
|
@ -2494,8 +2453,7 @@ DEFUN ("buffer-substring-no-properties", Fbuffer_substring_no_properties,
|
|||
doc: /* Return the characters of part of the buffer, without the text properties.
|
||||
The two arguments START and END are character positions;
|
||||
they can be in either order. */)
|
||||
(start, end)
|
||||
Lisp_Object start, end;
|
||||
(Lisp_Object start, Lisp_Object end)
|
||||
{
|
||||
register int b, e;
|
||||
|
||||
|
@ -2510,7 +2468,7 @@ DEFUN ("buffer-string", Fbuffer_string, Sbuffer_string, 0, 0, 0,
|
|||
doc: /* Return the contents of the current buffer as a string.
|
||||
If narrowing is in effect, this function returns only the visible part
|
||||
of the buffer. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return make_buffer_string (BEGV, ZV, 1);
|
||||
}
|
||||
|
@ -2521,8 +2479,7 @@ DEFUN ("insert-buffer-substring", Finsert_buffer_substring, Sinsert_buffer_subst
|
|||
BUFFER may be a buffer or a buffer name.
|
||||
Arguments START and END are character positions specifying the substring.
|
||||
They default to the values of (point-min) and (point-max) in BUFFER. */)
|
||||
(buffer, start, end)
|
||||
Lisp_Object buffer, start, end;
|
||||
(Lisp_Object buffer, Lisp_Object start, Lisp_Object end)
|
||||
{
|
||||
register int b, e, temp;
|
||||
register struct buffer *bp, *obuf;
|
||||
|
@ -2575,8 +2532,7 @@ That makes six args in all, three for each substring.
|
|||
|
||||
The value of `case-fold-search' in the current buffer
|
||||
determines whether case is significant or ignored. */)
|
||||
(buffer1, start1, end1, buffer2, start2, end2)
|
||||
Lisp_Object buffer1, start1, end1, buffer2, start2, end2;
|
||||
(Lisp_Object buffer1, Lisp_Object start1, Lisp_Object end1, Lisp_Object buffer2, Lisp_Object start2, Lisp_Object end2)
|
||||
{
|
||||
register int begp1, endp1, begp2, endp2, temp;
|
||||
register struct buffer *bp1, *bp2;
|
||||
|
@ -2743,8 +2699,7 @@ DEFUN ("subst-char-in-region", Fsubst_char_in_region,
|
|||
If optional arg NOUNDO is non-nil, don't record this change for undo
|
||||
and don't mark the buffer as really changed.
|
||||
Both characters must have the same length of multi-byte form. */)
|
||||
(start, end, fromchar, tochar, noundo)
|
||||
Lisp_Object start, end, fromchar, tochar, noundo;
|
||||
(Lisp_Object start, Lisp_Object end, Lisp_Object fromchar, Lisp_Object tochar, Lisp_Object noundo)
|
||||
{
|
||||
register int pos, pos_byte, stop, i, len, end_byte;
|
||||
/* Keep track of the first change in the buffer:
|
||||
|
@ -2985,10 +2940,7 @@ From START to END, translate characters according to TABLE.
|
|||
TABLE is a string or a char-table; the Nth character in it is the
|
||||
mapping for the character with code N.
|
||||
It returns the number of characters changed. */)
|
||||
(start, end, table)
|
||||
Lisp_Object start;
|
||||
Lisp_Object end;
|
||||
register Lisp_Object table;
|
||||
(Lisp_Object start, Lisp_Object end, register Lisp_Object table)
|
||||
{
|
||||
register unsigned char *tt; /* Trans table. */
|
||||
register int nc; /* New character. */
|
||||
|
@ -3154,8 +3106,7 @@ DEFUN ("delete-region", Fdelete_region, Sdelete_region, 2, 2, "r",
|
|||
|
||||
When called from a program, expects two arguments,
|
||||
positions (integers or markers) specifying the stretch to be deleted. */)
|
||||
(start, end)
|
||||
Lisp_Object start, end;
|
||||
(Lisp_Object start, Lisp_Object end)
|
||||
{
|
||||
validate_region (&start, &end);
|
||||
del_range (XINT (start), XINT (end));
|
||||
|
@ -3165,8 +3116,7 @@ positions (integers or markers) specifying the stretch to be deleted. */)
|
|||
DEFUN ("delete-and-extract-region", Fdelete_and_extract_region,
|
||||
Sdelete_and_extract_region, 2, 2, 0,
|
||||
doc: /* Delete the text between START and END and return it. */)
|
||||
(start, end)
|
||||
Lisp_Object start, end;
|
||||
(Lisp_Object start, Lisp_Object end)
|
||||
{
|
||||
validate_region (&start, &end);
|
||||
if (XINT (start) == XINT (end))
|
||||
|
@ -3177,7 +3127,7 @@ DEFUN ("delete-and-extract-region", Fdelete_and_extract_region,
|
|||
DEFUN ("widen", Fwiden, Swiden, 0, 0, "",
|
||||
doc: /* Remove restrictions (narrowing) from current buffer.
|
||||
This allows the buffer's full text to be seen and edited. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (BEG != BEGV || Z != ZV)
|
||||
current_buffer->clip_changed = 1;
|
||||
|
@ -3198,8 +3148,7 @@ See also `save-restriction'.
|
|||
|
||||
When calling from a program, pass two arguments; positions (integers
|
||||
or markers) bounding the text that should remain visible. */)
|
||||
(start, end)
|
||||
register Lisp_Object start, end;
|
||||
(register Lisp_Object start, Lisp_Object end)
|
||||
{
|
||||
CHECK_NUMBER_COERCE_MARKER (start);
|
||||
CHECK_NUMBER_COERCE_MARKER (end);
|
||||
|
@ -3332,8 +3281,7 @@ use `save-excursion' outermost:
|
|||
(save-excursion (save-restriction ...))
|
||||
|
||||
usage: (save-restriction &rest BODY) */)
|
||||
(body)
|
||||
Lisp_Object body;
|
||||
(Lisp_Object body)
|
||||
{
|
||||
register Lisp_Object val;
|
||||
int count = SPECPDL_INDEX ();
|
||||
|
@ -3366,9 +3314,7 @@ any existing message; this lets the minibuffer contents show. See
|
|||
also `current-message'.
|
||||
|
||||
usage: (message FORMAT-STRING &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
if (NILP (args[0])
|
||||
|| (STRINGP (args[0])
|
||||
|
@ -3396,9 +3342,7 @@ If the first argument is nil or the empty string, clear any existing
|
|||
message; let the minibuffer contents show.
|
||||
|
||||
usage: (message-box FORMAT-STRING &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
if (NILP (args[0]))
|
||||
{
|
||||
|
@ -3458,9 +3402,7 @@ If the first argument is nil or the empty string, clear any existing
|
|||
message; let the minibuffer contents show.
|
||||
|
||||
usage: (message-or-box FORMAT-STRING &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
#ifdef HAVE_MENUS
|
||||
if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event))
|
||||
|
@ -3472,7 +3414,7 @@ usage: (message-or-box FORMAT-STRING &rest ARGS) */)
|
|||
|
||||
DEFUN ("current-message", Fcurrent_message, Scurrent_message, 0, 0, 0,
|
||||
doc: /* Return the string currently displayed in the echo area, or nil if none. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return current_message ();
|
||||
}
|
||||
|
@ -3484,9 +3426,7 @@ First argument is the string to copy.
|
|||
Remaining arguments form a sequence of PROPERTY VALUE pairs for text
|
||||
properties to add to the result.
|
||||
usage: (propertize STRING &rest PROPERTIES) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
Lisp_Object properties, string;
|
||||
struct gcpro gcpro1, gcpro2;
|
||||
|
@ -3568,9 +3508,7 @@ decimal point itself is omitted. For %s and %S, the precision
|
|||
specifier truncates the string to the given width.
|
||||
|
||||
usage: (format STRING &rest OBJECTS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
register Lisp_Object *args;
|
||||
(int nargs, register Lisp_Object *args)
|
||||
{
|
||||
register int n; /* The number of the next arg to substitute */
|
||||
register int total; /* An estimate of the final length */
|
||||
|
@ -4186,8 +4124,7 @@ DEFUN ("char-equal", Fchar_equal, Schar_equal, 2, 2, 0,
|
|||
doc: /* Return t if two characters match, optionally ignoring case.
|
||||
Both arguments must be characters (i.e. integers).
|
||||
Case is ignored if `case-fold-search' is non-nil in the current buffer. */)
|
||||
(c1, c2)
|
||||
register Lisp_Object c1, c2;
|
||||
(register Lisp_Object c1, Lisp_Object c2)
|
||||
{
|
||||
int i1, i2;
|
||||
/* Check they're chars, not just integers, otherwise we could get array
|
||||
|
@ -4313,8 +4250,7 @@ Optional fifth arg LEAVE-MARKERS, if non-nil, means don't update
|
|||
any markers that happen to be located in the regions.
|
||||
|
||||
Transposing beyond buffer boundaries is an error. */)
|
||||
(startr1, endr1, startr2, endr2, leave_markers)
|
||||
Lisp_Object startr1, endr1, startr2, endr2, leave_markers;
|
||||
(Lisp_Object startr1, Lisp_Object endr1, Lisp_Object startr2, Lisp_Object endr2, Lisp_Object leave_markers)
|
||||
{
|
||||
register EMACS_INT start1, end1, start2, end2;
|
||||
EMACS_INT start1_byte, start2_byte, len1_byte, len2_byte;
|
||||
|
|
14
src/emacs.c
14
src/emacs.c
|
@ -585,7 +585,7 @@ init_cmdargs (int argc, char **argv, int skip_args)
|
|||
DEFUN ("invocation-name", Finvocation_name, Sinvocation_name, 0, 0, 0,
|
||||
doc: /* Return the program name that was used to run Emacs.
|
||||
Any directory names are omitted. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return Fcopy_sequence (Vinvocation_name);
|
||||
}
|
||||
|
@ -593,7 +593,7 @@ Any directory names are omitted. */)
|
|||
DEFUN ("invocation-directory", Finvocation_directory, Sinvocation_directory,
|
||||
0, 0, 0,
|
||||
doc: /* Return the directory name in which the Emacs executable was located. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return Fcopy_sequence (Vinvocation_directory);
|
||||
}
|
||||
|
@ -2074,8 +2074,7 @@ If ARG is a string, stuff it as keyboard input.
|
|||
The value of `kill-emacs-hook', if not void,
|
||||
is a list of functions (of no args),
|
||||
all of which are called before Emacs is actually killed. */)
|
||||
(arg)
|
||||
Lisp_Object arg;
|
||||
(Lisp_Object arg)
|
||||
{
|
||||
struct gcpro gcpro1;
|
||||
|
||||
|
@ -2205,8 +2204,7 @@ Take symbols from SYMFILE (presumably the file you executed to run Emacs).
|
|||
This is used in the file `loadup.el' when building Emacs.
|
||||
|
||||
You must run Emacs in batch mode in order to dump it. */)
|
||||
(filename, symfile)
|
||||
Lisp_Object filename, symfile;
|
||||
(Lisp_Object filename, Lisp_Object symfile)
|
||||
{
|
||||
extern char my_edata[];
|
||||
Lisp_Object tem;
|
||||
|
@ -2409,7 +2407,7 @@ decode_env_path (evarname, defalt)
|
|||
DEFUN ("daemonp", Fdaemonp, Sdaemonp, 0, 0, 0,
|
||||
doc: /* Return non-nil if the current emacs process is a daemon.
|
||||
If the daemon was given a name argument, return that name. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (IS_DAEMON)
|
||||
if (daemon_name)
|
||||
|
@ -2424,7 +2422,7 @@ DEFUN ("daemon-initialized", Fdaemon_initialized, Sdaemon_initialized, 0, 0, 0,
|
|||
doc: /* Mark the Emacs daemon as being initialized.
|
||||
This finishes the daemonization process by doing the other half of detaching
|
||||
from the parent process and its tty file descriptors. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
int nfd;
|
||||
|
||||
|
|
125
src/eval.c
125
src/eval.c
|
@ -296,8 +296,7 @@ DEFUN ("or", For, Sor, 0, UNEVALLED, 0,
|
|||
The remaining args are not evalled at all.
|
||||
If all args return nil, return nil.
|
||||
usage: (or CONDITIONS...) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
register Lisp_Object val = Qnil;
|
||||
struct gcpro gcpro1;
|
||||
|
@ -321,8 +320,7 @@ DEFUN ("and", Fand, Sand, 0, UNEVALLED, 0,
|
|||
The remaining args are not evalled at all.
|
||||
If no arg yields nil, return the last arg's value.
|
||||
usage: (and CONDITIONS...) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
register Lisp_Object val = Qt;
|
||||
struct gcpro gcpro1;
|
||||
|
@ -347,8 +345,7 @@ Returns the value of THEN or the value of the last of the ELSE's.
|
|||
THEN must be one expression, but ELSE... can be zero or more expressions.
|
||||
If COND yields nil, and there are no ELSE's, the value is nil.
|
||||
usage: (if COND THEN ELSE...) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
register Lisp_Object cond;
|
||||
struct gcpro gcpro1;
|
||||
|
@ -372,8 +369,7 @@ If no clause succeeds, cond returns nil.
|
|||
If a clause has one element, as in (CONDITION),
|
||||
CONDITION's value if non-nil is returned from the cond-form.
|
||||
usage: (cond CLAUSES...) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
register Lisp_Object clause, val;
|
||||
struct gcpro gcpro1;
|
||||
|
@ -400,8 +396,7 @@ usage: (cond CLAUSES...) */)
|
|||
DEFUN ("progn", Fprogn, Sprogn, 0, UNEVALLED, 0,
|
||||
doc: /* Eval BODY forms sequentially and return value of last one.
|
||||
usage: (progn BODY...) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
register Lisp_Object val = Qnil;
|
||||
struct gcpro gcpro1;
|
||||
|
@ -423,8 +418,7 @@ DEFUN ("prog1", Fprog1, Sprog1, 1, UNEVALLED, 0,
|
|||
The value of FIRST is saved during the evaluation of the remaining args,
|
||||
whose values are discarded.
|
||||
usage: (prog1 FIRST BODY...) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
Lisp_Object val;
|
||||
register Lisp_Object args_left;
|
||||
|
@ -457,8 +451,7 @@ DEFUN ("prog2", Fprog2, Sprog2, 2, UNEVALLED, 0,
|
|||
The value of FORM2 is saved during the evaluation of the
|
||||
remaining args, whose values are discarded.
|
||||
usage: (prog2 FORM1 FORM2 BODY...) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
Lisp_Object val;
|
||||
register Lisp_Object args_left;
|
||||
|
@ -497,8 +490,7 @@ The second VAL is not computed until after the first SYM is set, and so on;
|
|||
each VAL can use the new value of variables set earlier in the `setq'.
|
||||
The return value of the `setq' form is the value of the last VAL.
|
||||
usage: (setq [SYM VAL]...) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
register Lisp_Object args_left;
|
||||
register Lisp_Object val, sym;
|
||||
|
@ -526,8 +518,7 @@ usage: (setq [SYM VAL]...) */)
|
|||
DEFUN ("quote", Fquote, Squote, 1, UNEVALLED, 0,
|
||||
doc: /* Return the argument, without evaluating it. `(quote x)' yields `x'.
|
||||
usage: (quote ARG) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
if (!NILP (Fcdr (args)))
|
||||
xsignal2 (Qwrong_number_of_arguments, Qquote, Flength (args));
|
||||
|
@ -539,8 +530,7 @@ DEFUN ("function", Ffunction, Sfunction, 1, UNEVALLED, 0,
|
|||
In byte compilation, `function' causes its argument to be compiled.
|
||||
`quote' cannot do that.
|
||||
usage: (function ARG) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
if (!NILP (Fcdr (args)))
|
||||
xsignal2 (Qwrong_number_of_arguments, Qfunction, Flength (args));
|
||||
|
@ -565,7 +555,7 @@ To test whether your function was called with `call-interactively',
|
|||
either (i) add an extra optional argument and give it an `interactive'
|
||||
spec that specifies non-nil unconditionally (such as \"p\"); or (ii)
|
||||
use `called-interactively-p'. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return (INTERACTIVE && interactive_p (1)) ? Qt : Qnil;
|
||||
}
|
||||
|
@ -591,8 +581,7 @@ function-modifying features. Instead of using this, it is sometimes
|
|||
cleaner to give your function an extra optional argument whose
|
||||
`interactive' spec specifies non-nil unconditionally (\"p\" is a good
|
||||
way to do this), or via (not (or executing-kbd-macro noninteractive)). */)
|
||||
(kind)
|
||||
Lisp_Object kind;
|
||||
(Lisp_Object kind)
|
||||
{
|
||||
return ((INTERACTIVE || !EQ (kind, intern ("interactive")))
|
||||
&& interactive_p (1)) ? Qt : Qnil;
|
||||
|
@ -653,8 +642,7 @@ DEFUN ("defun", Fdefun, Sdefun, 2, UNEVALLED, 0,
|
|||
The definition is (lambda ARGLIST [DOCSTRING] BODY...).
|
||||
See also the function `interactive'.
|
||||
usage: (defun NAME ARGLIST [DOCSTRING] BODY...) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
register Lisp_Object fn_name;
|
||||
register Lisp_Object defn;
|
||||
|
@ -697,8 +685,7 @@ The elements can look like this:
|
|||
Set NAME's `doc-string-elt' property to ELT.
|
||||
|
||||
usage: (defmacro NAME ARGLIST [DOCSTRING] [DECL] BODY...) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
register Lisp_Object fn_name;
|
||||
register Lisp_Object defn;
|
||||
|
@ -756,8 +743,7 @@ or of the variable at the end of the chain of aliases, if BASE-VARIABLE is
|
|||
itself an alias. If NEW-ALIAS is bound, and BASE-VARIABLE is not,
|
||||
then the value of BASE-VARIABLE is set to that of NEW-ALIAS.
|
||||
The return value is BASE-VARIABLE. */)
|
||||
(new_alias, base_variable, docstring)
|
||||
Lisp_Object new_alias, base_variable, docstring;
|
||||
(Lisp_Object new_alias, Lisp_Object base_variable, Lisp_Object docstring)
|
||||
{
|
||||
struct Lisp_Symbol *sym;
|
||||
|
||||
|
@ -828,8 +814,7 @@ load a file defining variables, with this form or with `defconst' or
|
|||
for these variables. \(`defconst' and `defcustom' behave similarly in
|
||||
this respect.)
|
||||
usage: (defvar SYMBOL &optional INITVALUE DOCSTRING) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
register Lisp_Object sym, tem, tail;
|
||||
|
||||
|
@ -901,8 +886,7 @@ If SYMBOL has a local binding, then this form sets the local binding's
|
|||
value. However, you should normally not make local bindings for
|
||||
variables defined with this form.
|
||||
usage: (defconst SYMBOL INITVALUE [DOCSTRING]) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
register Lisp_Object sym, tem;
|
||||
|
||||
|
@ -950,8 +934,7 @@ A variable is a user variable if
|
|||
\(3) it is an alias for another user variable.
|
||||
Return nil if VARIABLE is an alias and there is a loop in the
|
||||
chain of symbols. */)
|
||||
(variable)
|
||||
Lisp_Object variable;
|
||||
(Lisp_Object variable)
|
||||
{
|
||||
Lisp_Object documentation;
|
||||
|
||||
|
@ -998,8 +981,7 @@ Each element of VARLIST is a symbol (which is bound to nil)
|
|||
or a list (SYMBOL VALUEFORM) (which binds SYMBOL to the value of VALUEFORM).
|
||||
Each VALUEFORM can refer to the symbols already bound by this VARLIST.
|
||||
usage: (let* VARLIST BODY...) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
Lisp_Object varlist, val, elt;
|
||||
int count = SPECPDL_INDEX ();
|
||||
|
@ -1035,8 +1017,7 @@ Each element of VARLIST is a symbol (which is bound to nil)
|
|||
or a list (SYMBOL VALUEFORM) (which binds SYMBOL to the value of VALUEFORM).
|
||||
All the VALUEFORMs are evalled before any symbols are bound.
|
||||
usage: (let VARLIST BODY...) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
Lisp_Object *temps, tem;
|
||||
register Lisp_Object elt, varlist;
|
||||
|
@ -1089,8 +1070,7 @@ DEFUN ("while", Fwhile, Swhile, 1, UNEVALLED, 0,
|
|||
The order of execution is thus TEST, BODY, TEST, BODY and so on
|
||||
until TEST returns nil.
|
||||
usage: (while TEST BODY...) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
Lisp_Object test, body;
|
||||
struct gcpro gcpro1, gcpro2;
|
||||
|
@ -1117,9 +1097,7 @@ in place of FORM. When a non-macro-call results, it is returned.
|
|||
|
||||
The second optional arg ENVIRONMENT specifies an environment of macro
|
||||
definitions to shadow the loaded ones for use in file byte-compilation. */)
|
||||
(form, environment)
|
||||
Lisp_Object form;
|
||||
Lisp_Object environment;
|
||||
(Lisp_Object form, Lisp_Object environment)
|
||||
{
|
||||
/* With cleanups from Hallvard Furuseth. */
|
||||
register Lisp_Object expander, sym, def, tem;
|
||||
|
@ -1197,8 +1175,7 @@ Within BODY, a call to `throw' with the same TAG exits BODY and this `catch'.
|
|||
If no throw happens, `catch' returns the value of the last BODY form.
|
||||
If a throw happens, it specifies the value to return from `catch'.
|
||||
usage: (catch TAG BODY...) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
register Lisp_Object tag;
|
||||
struct gcpro gcpro1;
|
||||
|
@ -1311,8 +1288,7 @@ unwind_to_catch (struct catchtag *catch, Lisp_Object value)
|
|||
DEFUN ("throw", Fthrow, Sthrow, 2, 2, 0,
|
||||
doc: /* Throw to the catch for TAG and return VALUE from it.
|
||||
Both TAG and VALUE are evalled. */)
|
||||
(tag, value)
|
||||
register Lisp_Object tag, value;
|
||||
(register Lisp_Object tag, Lisp_Object value)
|
||||
{
|
||||
register struct catchtag *c;
|
||||
|
||||
|
@ -1332,8 +1308,7 @@ If BODYFORM completes normally, its value is returned
|
|||
after executing the UNWINDFORMS.
|
||||
If BODYFORM exits nonlocally, the UNWINDFORMS are executed anyway.
|
||||
usage: (unwind-protect BODYFORM UNWINDFORMS...) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
Lisp_Object val;
|
||||
int count = SPECPDL_INDEX ();
|
||||
|
@ -1373,8 +1348,7 @@ expression.
|
|||
|
||||
See also the function `signal' for more info.
|
||||
usage: (condition-case VAR BODYFORM &rest HANDLERS) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
register Lisp_Object bodyform, handlers;
|
||||
volatile Lisp_Object var;
|
||||
|
@ -1661,8 +1635,7 @@ See Info anchor `(elisp)Definition of signal' for some details on how this
|
|||
error message is constructed.
|
||||
If the signal is handled, DATA is made available to the handler.
|
||||
See also the function `condition-case'. */)
|
||||
(error_symbol, data)
|
||||
Lisp_Object error_symbol, data;
|
||||
(Lisp_Object error_symbol, Lisp_Object data)
|
||||
{
|
||||
/* When memory is full, ERROR-SYMBOL is nil,
|
||||
and DATA is (REAL-ERROR-SYMBOL . REAL-DATA).
|
||||
|
@ -2085,8 +2058,7 @@ Also, a symbol satisfies `commandp' if its function definition does so.
|
|||
|
||||
If the optional argument FOR-CALL-INTERACTIVELY is non-nil,
|
||||
then strings and vectors are not accepted. */)
|
||||
(function, for_call_interactively)
|
||||
Lisp_Object function, for_call_interactively;
|
||||
(Lisp_Object function, Lisp_Object for_call_interactively)
|
||||
{
|
||||
register Lisp_Object fun;
|
||||
register Lisp_Object funcar;
|
||||
|
@ -2150,8 +2122,7 @@ Third through fifth args give info about the real definition.
|
|||
They default to nil.
|
||||
If FUNCTION is already defined other than as an autoload,
|
||||
this does nothing and returns nil. */)
|
||||
(function, file, docstring, interactive, type)
|
||||
Lisp_Object function, file, docstring, interactive, type;
|
||||
(Lisp_Object function, Lisp_Object file, Lisp_Object docstring, Lisp_Object interactive, Lisp_Object type)
|
||||
{
|
||||
CHECK_SYMBOL (function);
|
||||
CHECK_STRING (file);
|
||||
|
@ -2252,8 +2223,7 @@ do_autoload (Lisp_Object fundef, Lisp_Object funname)
|
|||
|
||||
DEFUN ("eval", Feval, Seval, 1, 1, 0,
|
||||
doc: /* Evaluate FORM and return its value. */)
|
||||
(form)
|
||||
Lisp_Object form;
|
||||
(Lisp_Object form)
|
||||
{
|
||||
Lisp_Object fun, val, original_fun, original_args;
|
||||
Lisp_Object funcar;
|
||||
|
@ -2463,9 +2433,7 @@ DEFUN ("apply", Fapply, Sapply, 2, MANY, 0,
|
|||
Then return the value FUNCTION returns.
|
||||
Thus, (apply '+ 1 2 '(3 4)) returns 10.
|
||||
usage: (apply FUNCTION &rest ARGUMENTS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
register int i, numargs;
|
||||
register Lisp_Object spread_arg;
|
||||
|
@ -2564,9 +2532,7 @@ hook; they should use `run-mode-hooks' instead.
|
|||
Do not use `make-local-variable' to make a hook variable buffer-local.
|
||||
Instead, use `add-hook' and specify t for the LOCAL argument.
|
||||
usage: (run-hooks &rest HOOKS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
Lisp_Object hook[1];
|
||||
register int i;
|
||||
|
@ -2595,9 +2561,7 @@ as that may change.
|
|||
Do not use `make-local-variable' to make a hook variable buffer-local.
|
||||
Instead, use `add-hook' and specify t for the LOCAL argument.
|
||||
usage: (run-hook-with-args HOOK &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
return run_hook_with_args (nargs, args, to_completion);
|
||||
}
|
||||
|
@ -2617,9 +2581,7 @@ However, if they all return nil, we return nil.
|
|||
Do not use `make-local-variable' to make a hook variable buffer-local.
|
||||
Instead, use `add-hook' and specify t for the LOCAL argument.
|
||||
usage: (run-hook-with-args-until-success HOOK &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
return run_hook_with_args (nargs, args, until_success);
|
||||
}
|
||||
|
@ -2638,9 +2600,7 @@ Then we return nil. However, if they all return non-nil, we return non-nil.
|
|||
Do not use `make-local-variable' to make a hook variable buffer-local.
|
||||
Instead, use `add-hook' and specify t for the LOCAL argument.
|
||||
usage: (run-hook-with-args-until-failure HOOK &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
return run_hook_with_args (nargs, args, until_failure);
|
||||
}
|
||||
|
@ -2946,9 +2906,7 @@ DEFUN ("funcall", Ffuncall, Sfuncall, 1, MANY, 0,
|
|||
Return the value that function returns.
|
||||
Thus, (funcall 'cons 'x 'y) returns (x . y).
|
||||
usage: (funcall FUNCTION &rest ARGUMENTS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
Lisp_Object fun, original_fun;
|
||||
Lisp_Object funcar;
|
||||
|
@ -3223,8 +3181,7 @@ funcall_lambda (Lisp_Object fun, int nargs, register Lisp_Object *arg_vector)
|
|||
DEFUN ("fetch-bytecode", Ffetch_bytecode, Sfetch_bytecode,
|
||||
1, 1, 0,
|
||||
doc: /* If byte-compiled OBJECT is lazy-loaded, fetch it now. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
Lisp_Object tem;
|
||||
|
||||
|
@ -3456,8 +3413,7 @@ unbind_to (int count, Lisp_Object value)
|
|||
DEFUN ("backtrace-debug", Fbacktrace_debug, Sbacktrace_debug, 2, 2, 0,
|
||||
doc: /* Set the debug-on-exit flag of eval frame LEVEL levels down to FLAG.
|
||||
The debugger is entered when that frame exits, if the flag is non-nil. */)
|
||||
(level, flag)
|
||||
Lisp_Object level, flag;
|
||||
(Lisp_Object level, Lisp_Object flag)
|
||||
{
|
||||
register struct backtrace *backlist = backtrace_list;
|
||||
register int i;
|
||||
|
@ -3478,7 +3434,7 @@ The debugger is entered when that frame exits, if the flag is non-nil. */)
|
|||
DEFUN ("backtrace", Fbacktrace, Sbacktrace, 0, 0, "",
|
||||
doc: /* Print a trace of Lisp function calls currently active.
|
||||
Output stream used is value of `standard-output'. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
register struct backtrace *backlist = backtrace_list;
|
||||
register int i;
|
||||
|
@ -3543,8 +3499,7 @@ A &rest arg is represented as the tail of the list ARG-VALUES.
|
|||
FUNCTION is whatever was supplied as car of evaluated list,
|
||||
or a lambda expression for macro calls.
|
||||
If NFRAMES is more than the number of frames, the value is nil. */)
|
||||
(nframes)
|
||||
Lisp_Object nframes;
|
||||
(Lisp_Object nframes)
|
||||
{
|
||||
register struct backtrace *backlist = backtrace_list;
|
||||
register int i;
|
||||
|
|
135
src/fileio.c
135
src/fileio.c
|
@ -346,8 +346,7 @@ If OPERATION equals `inhibit-file-name-operation', then we ignore
|
|||
any handlers that are members of `inhibit-file-name-handlers',
|
||||
but we still do run any other handlers. This lets handlers
|
||||
use the standard functions without calling themselves recursively. */)
|
||||
(filename, operation)
|
||||
Lisp_Object filename, operation;
|
||||
(Lisp_Object filename, Lisp_Object operation)
|
||||
{
|
||||
/* This function must not munge the match data. */
|
||||
Lisp_Object chain, inhibited_handlers, result;
|
||||
|
@ -403,8 +402,7 @@ DEFUN ("file-name-directory", Ffile_name_directory, Sfile_name_directory,
|
|||
Return nil if FILENAME does not include a directory.
|
||||
Otherwise return a directory name.
|
||||
Given a Unix syntax file name, returns a string ending in slash. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
#ifndef DOS_NT
|
||||
register const unsigned char *beg;
|
||||
|
@ -478,8 +476,7 @@ DEFUN ("file-name-nondirectory", Ffile_name_nondirectory,
|
|||
For example, in a Unix-syntax file name,
|
||||
this is everything after the last slash,
|
||||
or the entire name if it contains no slash. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
register const unsigned char *beg, *p, *end;
|
||||
Lisp_Object handler;
|
||||
|
@ -519,8 +516,7 @@ If FILENAME refers to a file which is not accessible from a local process,
|
|||
then this should return nil.
|
||||
The `call-process' and `start-process' functions use this function to
|
||||
get a current directory to run processes in. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
Lisp_Object handler;
|
||||
|
||||
|
@ -569,8 +565,7 @@ a directory is different from its name as a file.
|
|||
The result can be used as the value of `default-directory'
|
||||
or passed as second argument to `expand-file-name'.
|
||||
For a Unix-syntax file name, just appends a slash. */)
|
||||
(file)
|
||||
Lisp_Object file;
|
||||
(Lisp_Object file)
|
||||
{
|
||||
char *buf;
|
||||
Lisp_Object handler;
|
||||
|
@ -628,8 +623,7 @@ This is the name of the file that holds the data for the directory DIRECTORY.
|
|||
This operation exists because a directory is also a file, but its name as
|
||||
a directory is different from its name as a file.
|
||||
In Unix-syntax, this function just removes the final slash. */)
|
||||
(directory)
|
||||
Lisp_Object directory;
|
||||
(Lisp_Object directory)
|
||||
{
|
||||
char *buf;
|
||||
Lisp_Object handler;
|
||||
|
@ -801,8 +795,7 @@ probably use `make-temp-file' instead, except in three circumstances:
|
|||
* If you are creating the file in the user's home directory.
|
||||
* If you are creating a directory rather than an ordinary file.
|
||||
* If you are taking special precautions as `make-temp-file' does. */)
|
||||
(prefix)
|
||||
Lisp_Object prefix;
|
||||
(Lisp_Object prefix)
|
||||
{
|
||||
return make_temp_name (prefix, 0);
|
||||
}
|
||||
|
@ -827,8 +820,7 @@ non-intuitive results for the root directory; for instance,
|
|||
\(expand-file-name ".." "/") returns "/..". For this reason, use
|
||||
(directory-file-name (file-name-directory dirname)) to traverse a
|
||||
filesystem tree, not (expand-file-name ".." dirname). */)
|
||||
(name, default_directory)
|
||||
Lisp_Object name, default_directory;
|
||||
(Lisp_Object name, Lisp_Object default_directory)
|
||||
{
|
||||
/* These point to SDATA and need to be careful with string-relocation
|
||||
during GC (via DECODE_FILE). */
|
||||
|
@ -1613,8 +1605,7 @@ the entire variable name in braces.
|
|||
If `/~' appears, all of FILENAME through that `/' is discarded.
|
||||
If `//' appears, everything up to and including the first of
|
||||
those `/' is discarded. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
unsigned char *nm;
|
||||
|
||||
|
@ -1905,9 +1896,7 @@ uid and gid of FILE to NEWNAME.
|
|||
|
||||
If PRESERVE-SELINUX-CONTEXT is non-nil and SELinux is enabled
|
||||
on the system, we copy the SELinux context of FILE to NEWNAME. */)
|
||||
(file, newname, ok_if_already_exists, keep_time, preserve_uid_gid, preserve_selinux_context)
|
||||
Lisp_Object file, newname, ok_if_already_exists, keep_time;
|
||||
Lisp_Object preserve_uid_gid, preserve_selinux_context;
|
||||
(Lisp_Object file, Lisp_Object newname, Lisp_Object ok_if_already_exists, Lisp_Object keep_time, Lisp_Object preserve_uid_gid, Lisp_Object preserve_selinux_context)
|
||||
{
|
||||
int ifd, ofd, n;
|
||||
char buf[16 * 1024];
|
||||
|
@ -2118,8 +2107,7 @@ on the system, we copy the SELinux context of FILE to NEWNAME. */)
|
|||
DEFUN ("make-directory-internal", Fmake_directory_internal,
|
||||
Smake_directory_internal, 1, 1, 0,
|
||||
doc: /* Create a new directory named DIRECTORY. */)
|
||||
(directory)
|
||||
Lisp_Object directory;
|
||||
(Lisp_Object directory)
|
||||
{
|
||||
const unsigned char *dir;
|
||||
Lisp_Object handler;
|
||||
|
@ -2149,8 +2137,7 @@ DEFUN ("make-directory-internal", Fmake_directory_internal,
|
|||
DEFUN ("delete-directory-internal", Fdelete_directory_internal,
|
||||
Sdelete_directory_internal, 1, 1, 0,
|
||||
doc: /* Delete the directory named DIRECTORY. Does not follow symlinks. */)
|
||||
(directory)
|
||||
Lisp_Object directory;
|
||||
(Lisp_Object directory)
|
||||
{
|
||||
const unsigned char *dir;
|
||||
Lisp_Object handler;
|
||||
|
@ -2180,9 +2167,7 @@ TRASH non-nil means to trash the file instead of deleting, provided
|
|||
|
||||
When called interactively, TRASH is t if no prefix argument is given.
|
||||
With a prefix argument, TRASH is nil. */)
|
||||
(filename, trash)
|
||||
Lisp_Object filename;
|
||||
Lisp_Object trash;
|
||||
(Lisp_Object filename, Lisp_Object trash)
|
||||
{
|
||||
Lisp_Object handler;
|
||||
Lisp_Object encoded_file;
|
||||
|
@ -2238,8 +2223,7 @@ Signals a `file-already-exists' error if a file NEWNAME already exists
|
|||
unless optional third argument OK-IF-ALREADY-EXISTS is non-nil.
|
||||
A number as third arg means request confirmation if NEWNAME already exists.
|
||||
This is what happens in interactive use with M-x. */)
|
||||
(file, newname, ok_if_already_exists)
|
||||
Lisp_Object file, newname, ok_if_already_exists;
|
||||
(Lisp_Object file, Lisp_Object newname, Lisp_Object ok_if_already_exists)
|
||||
{
|
||||
Lisp_Object handler;
|
||||
struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5;
|
||||
|
@ -2336,8 +2320,7 @@ Signals a `file-already-exists' error if a file NEWNAME already exists
|
|||
unless optional third argument OK-IF-ALREADY-EXISTS is non-nil.
|
||||
A number as third arg means request confirmation if NEWNAME already exists.
|
||||
This is what happens in interactive use with M-x. */)
|
||||
(file, newname, ok_if_already_exists)
|
||||
Lisp_Object file, newname, ok_if_already_exists;
|
||||
(Lisp_Object file, Lisp_Object newname, Lisp_Object ok_if_already_exists)
|
||||
{
|
||||
Lisp_Object handler;
|
||||
Lisp_Object encoded_file, encoded_newname;
|
||||
|
@ -2392,8 +2375,7 @@ Signals a `file-already-exists' error if a file LINKNAME already exists
|
|||
unless optional third argument OK-IF-ALREADY-EXISTS is non-nil.
|
||||
A number as third arg means request confirmation if LINKNAME already exists.
|
||||
This happens for interactive use with M-x. */)
|
||||
(filename, linkname, ok_if_already_exists)
|
||||
Lisp_Object filename, linkname, ok_if_already_exists;
|
||||
(Lisp_Object filename, Lisp_Object linkname, Lisp_Object ok_if_already_exists)
|
||||
{
|
||||
Lisp_Object handler;
|
||||
Lisp_Object encoded_filename, encoded_linkname;
|
||||
|
@ -2468,8 +2450,7 @@ DEFUN ("file-name-absolute-p", Ffile_name_absolute_p, Sfile_name_absolute_p,
|
|||
1, 1, 0,
|
||||
doc: /* Return t if file FILENAME specifies an absolute file name.
|
||||
On Unix, this is a name starting with a `/' or a `~'. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
CHECK_STRING (filename);
|
||||
return file_name_absolute_p (SDATA (filename)) ? Qt : Qnil;
|
||||
|
@ -2528,8 +2509,7 @@ DEFUN ("file-exists-p", Ffile_exists_p, Sfile_exists_p, 1, 1, 0,
|
|||
See also `file-readable-p' and `file-attributes'.
|
||||
This returns nil for a symlink to a nonexistent file.
|
||||
Use `file-symlink-p' to test for such links. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
Lisp_Object absname;
|
||||
Lisp_Object handler;
|
||||
|
@ -2552,8 +2532,7 @@ Use `file-symlink-p' to test for such links. */)
|
|||
DEFUN ("file-executable-p", Ffile_executable_p, Sfile_executable_p, 1, 1, 0,
|
||||
doc: /* Return t if FILENAME can be executed by you.
|
||||
For a directory, this means you can access files in that directory. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
Lisp_Object absname;
|
||||
Lisp_Object handler;
|
||||
|
@ -2575,8 +2554,7 @@ For a directory, this means you can access files in that directory. */)
|
|||
DEFUN ("file-readable-p", Ffile_readable_p, Sfile_readable_p, 1, 1, 0,
|
||||
doc: /* Return t if file FILENAME exists and you can read it.
|
||||
See also `file-exists-p' and `file-attributes'. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
Lisp_Object absname;
|
||||
Lisp_Object handler;
|
||||
|
@ -2625,8 +2603,7 @@ See also `file-exists-p' and `file-attributes'. */)
|
|||
on the RT/PC. */
|
||||
DEFUN ("file-writable-p", Ffile_writable_p, Sfile_writable_p, 1, 1, 0,
|
||||
doc: /* Return t if file FILENAME can be written or created by you. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
Lisp_Object absname, dir, encoded;
|
||||
Lisp_Object handler;
|
||||
|
@ -2670,8 +2647,7 @@ DEFUN ("access-file", Faccess_file, Saccess_file, 2, 2, 0,
|
|||
doc: /* Access file FILENAME, and get an error if that does not work.
|
||||
The second argument STRING is used in the error message.
|
||||
If there is no error, returns nil. */)
|
||||
(filename, string)
|
||||
Lisp_Object filename, string;
|
||||
(Lisp_Object filename, Lisp_Object string)
|
||||
{
|
||||
Lisp_Object handler, encoded_filename, absname;
|
||||
int fd;
|
||||
|
@ -2704,8 +2680,7 @@ Otherwise it returns nil.
|
|||
|
||||
This function returns t when given the name of a symlink that
|
||||
points to a nonexistent file. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
Lisp_Object handler;
|
||||
|
||||
|
@ -2769,8 +2744,7 @@ DEFUN ("file-directory-p", Ffile_directory_p, Sfile_directory_p, 1, 1, 0,
|
|||
doc: /* Return t if FILENAME names an existing directory.
|
||||
Symbolic links to directories count as directories.
|
||||
See `file-symlink-p' to distinguish symlinks. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
register Lisp_Object absname;
|
||||
struct stat st;
|
||||
|
@ -2799,8 +2773,7 @@ directory as a buffer's current directory, this predicate must return true.
|
|||
A directory name spec may be given instead; then the value is t
|
||||
if the directory so specified exists and really is a readable and
|
||||
searchable directory. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
Lisp_Object handler;
|
||||
int tem;
|
||||
|
@ -2824,8 +2797,7 @@ DEFUN ("file-regular-p", Ffile_regular_p, Sfile_regular_p, 1, 1, 0,
|
|||
This is the sort of file that holds an ordinary stream of data bytes.
|
||||
Symbolic links to regular files count as regular files.
|
||||
See `file-symlink-p' to distinguish symlinks. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
register Lisp_Object absname;
|
||||
struct stat st;
|
||||
|
@ -2867,8 +2839,7 @@ DEFUN ("file-selinux-context", Ffile_selinux_context,
|
|||
doc: /* Return SELinux context of file named FILENAME,
|
||||
as a list ("user", "role", "type", "range"). Return (nil, nil, nil, nil)
|
||||
if file does not exist, is not accessible, or SELinux is disabled */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
Lisp_Object absname;
|
||||
Lisp_Object values[4];
|
||||
|
@ -2923,8 +2894,7 @@ DEFUN ("set-file-selinux-context", Fset_file_selinux_context,
|
|||
doc: /* Set SELinux context of file named FILENAME to CONTEXT
|
||||
as a list ("user", "role", "type", "range"). Has no effect if SELinux
|
||||
is disabled. */)
|
||||
(filename, context)
|
||||
Lisp_Object filename, context;
|
||||
(Lisp_Object filename, Lisp_Object context)
|
||||
{
|
||||
Lisp_Object absname, encoded_absname;
|
||||
Lisp_Object handler;
|
||||
|
@ -2999,8 +2969,7 @@ is disabled. */)
|
|||
DEFUN ("file-modes", Ffile_modes, Sfile_modes, 1, 1, 0,
|
||||
doc: /* Return mode bits of file named FILENAME, as an integer.
|
||||
Return nil, if file does not exist or is not accessible. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
Lisp_Object absname;
|
||||
struct stat st;
|
||||
|
@ -3030,8 +2999,7 @@ Only the 12 low bits of MODE are used.
|
|||
|
||||
Interactively, mode bits are read by `read-file-modes', which accepts
|
||||
symbolic notation, like the `chmod' command from GNU Coreutils. */)
|
||||
(filename, mode)
|
||||
Lisp_Object filename, mode;
|
||||
(Lisp_Object filename, Lisp_Object mode)
|
||||
{
|
||||
Lisp_Object absname, encoded_absname;
|
||||
Lisp_Object handler;
|
||||
|
@ -3057,8 +3025,7 @@ DEFUN ("set-default-file-modes", Fset_default_file_modes, Sset_default_file_mode
|
|||
doc: /* Set the file permission bits for newly created files.
|
||||
The argument MODE should be an integer; only the low 9 bits are used.
|
||||
This setting is inherited by subprocesses. */)
|
||||
(mode)
|
||||
Lisp_Object mode;
|
||||
(Lisp_Object mode)
|
||||
{
|
||||
CHECK_NUMBER (mode);
|
||||
|
||||
|
@ -3070,7 +3037,7 @@ This setting is inherited by subprocesses. */)
|
|||
DEFUN ("default-file-modes", Fdefault_file_modes, Sdefault_file_modes, 0, 0, 0,
|
||||
doc: /* Return the default file protection for created files.
|
||||
The value is an integer. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
int realmask;
|
||||
Lisp_Object value;
|
||||
|
@ -3090,8 +3057,7 @@ Set both access and modification times.
|
|||
Return t on success, else nil.
|
||||
Use the current time if TIME is nil. TIME is in the format of
|
||||
`current-time'. */)
|
||||
(filename, time)
|
||||
Lisp_Object filename, time;
|
||||
(Lisp_Object filename, Lisp_Object time)
|
||||
{
|
||||
Lisp_Object absname, encoded_absname;
|
||||
Lisp_Object handler;
|
||||
|
@ -3138,7 +3104,7 @@ Use the current time if TIME is nil. TIME is in the format of
|
|||
#ifdef HAVE_SYNC
|
||||
DEFUN ("unix-sync", Funix_sync, Sunix_sync, 0, 0, "",
|
||||
doc: /* Tell Unix to finish all pending disk updates. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
sync ();
|
||||
return Qnil;
|
||||
|
@ -3150,8 +3116,7 @@ DEFUN ("file-newer-than-file-p", Ffile_newer_than_file_p, Sfile_newer_than_file_
|
|||
doc: /* Return t if file FILE1 is newer than file FILE2.
|
||||
If FILE1 does not exist, the answer is nil;
|
||||
otherwise, if FILE2 does not exist, the answer is t. */)
|
||||
(file1, file2)
|
||||
Lisp_Object file1, file2;
|
||||
(Lisp_Object file1, Lisp_Object file2)
|
||||
{
|
||||
Lisp_Object absname1, absname2;
|
||||
struct stat st;
|
||||
|
@ -3300,8 +3265,7 @@ the number of characters that replace previous buffer contents.
|
|||
This function does code conversion according to the value of
|
||||
`coding-system-for-read' or `file-coding-system-alist', and sets the
|
||||
variable `last-coding-system-used' to the coding system actually used. */)
|
||||
(filename, visit, beg, end, replace)
|
||||
Lisp_Object filename, visit, beg, end, replace;
|
||||
(Lisp_Object filename, Lisp_Object visit, Lisp_Object beg, Lisp_Object end, Lisp_Object replace)
|
||||
{
|
||||
struct stat st;
|
||||
register int fd;
|
||||
|
@ -4580,8 +4544,7 @@ This does code conversion according to the value of
|
|||
|
||||
This calls `write-region-annotate-functions' at the start, and
|
||||
`write-region-post-annotation-function' at the end. */)
|
||||
(start, end, filename, append, visit, lockname, mustbenew)
|
||||
Lisp_Object start, end, filename, append, visit, lockname, mustbenew;
|
||||
(Lisp_Object start, Lisp_Object end, Lisp_Object filename, Lisp_Object append, Lisp_Object visit, Lisp_Object lockname, Lisp_Object mustbenew)
|
||||
{
|
||||
register int desc;
|
||||
int failure;
|
||||
|
@ -4886,8 +4849,7 @@ Lisp_Object merge (Lisp_Object, Lisp_Object, Lisp_Object);
|
|||
|
||||
DEFUN ("car-less-than-car", Fcar_less_than_car, Scar_less_than_car, 2, 2, 0,
|
||||
doc: /* Return t if (car A) is numerically less than (car B). */)
|
||||
(a, b)
|
||||
Lisp_Object a, b;
|
||||
(Lisp_Object a, Lisp_Object b)
|
||||
{
|
||||
return Flss (Fcar (a), Fcar (b));
|
||||
}
|
||||
|
@ -5114,8 +5076,7 @@ DEFUN ("verify-visited-file-modtime", Fverify_visited_file_modtime,
|
|||
doc: /* Return t if last mod time of BUF's visited file matches what BUF records.
|
||||
This means that the file has not been changed since it was visited or saved.
|
||||
See Info node `(elisp)Modification Time' for more details. */)
|
||||
(buf)
|
||||
Lisp_Object buf;
|
||||
(Lisp_Object buf)
|
||||
{
|
||||
struct buffer *b;
|
||||
struct stat st;
|
||||
|
@ -5161,7 +5122,7 @@ DEFUN ("clear-visited-file-modtime", Fclear_visited_file_modtime,
|
|||
Sclear_visited_file_modtime, 0, 0, 0,
|
||||
doc: /* Clear out records of last mod time of visited file.
|
||||
Next attempt to save will certainly not complain of a discrepancy. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
current_buffer->modtime = 0;
|
||||
current_buffer->modtime_size = -1;
|
||||
|
@ -5175,7 +5136,7 @@ The value is a list of the form (HIGH LOW), like the time values
|
|||
that `file-attributes' returns. If the current buffer has no recorded
|
||||
file modification time, this function returns 0.
|
||||
See Info node `(elisp)Modification Time' for more details. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (! current_buffer->modtime)
|
||||
return make_number (0);
|
||||
|
@ -5190,8 +5151,7 @@ or if the file itself has been changed for some known benign reason.
|
|||
An argument specifies the modification time value to use
|
||||
\(instead of that of the visited file), in the form of a list
|
||||
\(HIGH . LOW) or (HIGH LOW). */)
|
||||
(time_list)
|
||||
Lisp_Object time_list;
|
||||
(Lisp_Object time_list)
|
||||
{
|
||||
if (!NILP (time_list))
|
||||
{
|
||||
|
@ -5337,8 +5297,7 @@ Normally we run the normal hook `auto-save-hook' before saving.
|
|||
|
||||
A non-nil NO-MESSAGE argument means do not print any message if successful.
|
||||
A non-nil CURRENT-ONLY argument means save only current buffer. */)
|
||||
(no_message, current_only)
|
||||
Lisp_Object no_message, current_only;
|
||||
(Lisp_Object no_message, Lisp_Object current_only)
|
||||
{
|
||||
struct buffer *old = current_buffer, *b;
|
||||
Lisp_Object tail, buf;
|
||||
|
@ -5539,7 +5498,7 @@ DEFUN ("set-buffer-auto-saved", Fset_buffer_auto_saved,
|
|||
Sset_buffer_auto_saved, 0, 0, 0,
|
||||
doc: /* Mark current buffer as auto-saved with its current text.
|
||||
No auto-save file will be written until the buffer changes again. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
/* FIXME: This should not be called in indirect buffers, since
|
||||
they're not autosaved. */
|
||||
|
@ -5552,7 +5511,7 @@ No auto-save file will be written until the buffer changes again. */)
|
|||
DEFUN ("clear-buffer-auto-save-failure", Fclear_buffer_auto_save_failure,
|
||||
Sclear_buffer_auto_save_failure, 0, 0, 0,
|
||||
doc: /* Clear any record of a recent auto-save failure in the current buffer. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
current_buffer->auto_save_failure_time = -1;
|
||||
return Qnil;
|
||||
|
@ -5564,7 +5523,7 @@ DEFUN ("recent-auto-save-p", Frecent_auto_save_p, Srecent_auto_save_p,
|
|||
More precisely, if it has been auto-saved since last read from or saved
|
||||
in the visited file. If the buffer has no visited file,
|
||||
then any auto-save counts as "recent". */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
/* FIXME: maybe we should return nil for indirect buffers since
|
||||
they're never autosaved. */
|
||||
|
@ -5578,7 +5537,7 @@ DEFUN ("next-read-file-uses-dialog-p", Fnext_read_file_uses_dialog_p,
|
|||
doc: /* Return t if a call to `read-file-name' will use a dialog.
|
||||
The return value is only relevant for a call to `read-file-name' that happens
|
||||
before any other event (mouse or keypress) is handled. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
#if defined (USE_MOTIF) || defined (HAVE_NTGUI) || defined (USE_GTK)
|
||||
if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event))
|
||||
|
|
|
@ -665,8 +665,7 @@ DEFUN ("lock-buffer", Flock_buffer, Slock_buffer,
|
|||
doc: /* Lock FILE, if current buffer is modified.
|
||||
FILE defaults to current buffer's visited file,
|
||||
or else nothing is done if current buffer isn't visiting a file. */)
|
||||
(file)
|
||||
Lisp_Object file;
|
||||
(Lisp_Object file)
|
||||
{
|
||||
if (NILP (file))
|
||||
file = current_buffer->file_truename;
|
||||
|
@ -683,7 +682,7 @@ DEFUN ("unlock-buffer", Funlock_buffer, Sunlock_buffer,
|
|||
doc: /* Unlock the file visited in the current buffer.
|
||||
If the buffer is not modified, this does nothing because the file
|
||||
should not be locked in that case. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (SAVE_MODIFF < MODIFF
|
||||
&& STRINGP (current_buffer->file_truename))
|
||||
|
@ -705,8 +704,7 @@ DEFUN ("file-locked-p", Ffile_locked_p, Sfile_locked_p, 1, 1, 0,
|
|||
doc: /* Return a value indicating whether FILENAME is locked.
|
||||
The value is nil if the FILENAME is not locked,
|
||||
t if it is locked by you, else a string saying which user has locked it. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
Lisp_Object ret;
|
||||
register char *lfname;
|
||||
|
|
126
src/floatfns.c
126
src/floatfns.c
|
@ -206,8 +206,7 @@ extract_float (num)
|
|||
|
||||
DEFUN ("acos", Facos, Sacos, 1, 1, 0,
|
||||
doc: /* Return the inverse cosine of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
#ifdef FLOAT_CHECK_DOMAIN
|
||||
|
@ -220,8 +219,7 @@ DEFUN ("acos", Facos, Sacos, 1, 1, 0,
|
|||
|
||||
DEFUN ("asin", Fasin, Sasin, 1, 1, 0,
|
||||
doc: /* Return the inverse sine of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
#ifdef FLOAT_CHECK_DOMAIN
|
||||
|
@ -238,8 +236,7 @@ If only one argument Y is given, return the inverse tangent of Y.
|
|||
If two arguments Y and X are given, return the inverse tangent of Y
|
||||
divided by X, i.e. the angle in radians between the vector (X, Y)
|
||||
and the x-axis. */)
|
||||
(y, x)
|
||||
register Lisp_Object y, x;
|
||||
(register Lisp_Object y, Lisp_Object x)
|
||||
{
|
||||
double d = extract_float (y);
|
||||
|
||||
|
@ -256,8 +253,7 @@ and the x-axis. */)
|
|||
|
||||
DEFUN ("cos", Fcos, Scos, 1, 1, 0,
|
||||
doc: /* Return the cosine of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
IN_FLOAT (d = cos (d), "cos", arg);
|
||||
|
@ -266,8 +262,7 @@ DEFUN ("cos", Fcos, Scos, 1, 1, 0,
|
|||
|
||||
DEFUN ("sin", Fsin, Ssin, 1, 1, 0,
|
||||
doc: /* Return the sine of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
IN_FLOAT (d = sin (d), "sin", arg);
|
||||
|
@ -276,8 +271,7 @@ DEFUN ("sin", Fsin, Ssin, 1, 1, 0,
|
|||
|
||||
DEFUN ("tan", Ftan, Stan, 1, 1, 0,
|
||||
doc: /* Return the tangent of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
double c = cos (d);
|
||||
|
@ -292,8 +286,7 @@ DEFUN ("tan", Ftan, Stan, 1, 1, 0,
|
|||
#if defined HAVE_ISNAN && defined HAVE_COPYSIGN
|
||||
DEFUN ("isnan", Fisnan, Sisnan, 1, 1, 0,
|
||||
doc: /* Return non nil iff argument X is a NaN. */)
|
||||
(x)
|
||||
Lisp_Object x;
|
||||
(Lisp_Object x)
|
||||
{
|
||||
CHECK_FLOAT (x);
|
||||
return isnan (XFLOAT_DATA (x)) ? Qt : Qnil;
|
||||
|
@ -302,8 +295,7 @@ DEFUN ("isnan", Fisnan, Sisnan, 1, 1, 0,
|
|||
DEFUN ("copysign", Fcopysign, Scopysign, 1, 2, 0,
|
||||
doc: /* Copy sign of X2 to value of X1, and return the result.
|
||||
Cause an error if X1 or X2 is not a float. */)
|
||||
(x1, x2)
|
||||
Lisp_Object x1, x2;
|
||||
(Lisp_Object x1, Lisp_Object x2)
|
||||
{
|
||||
double f1, f2;
|
||||
|
||||
|
@ -326,8 +318,7 @@ and an integral exponent EXP for 2, such that:
|
|||
|
||||
The function returns the cons cell (SGNFCAND . EXP).
|
||||
If X is zero, both parts (SGNFCAND and EXP) are zero. */)
|
||||
(x)
|
||||
Lisp_Object x;
|
||||
(Lisp_Object x)
|
||||
{
|
||||
double f = XFLOATINT (x);
|
||||
|
||||
|
@ -345,8 +336,7 @@ DEFUN ("ldexp", Fldexp, Sldexp, 1, 2, 0,
|
|||
doc: /* Construct number X from significand SGNFCAND and exponent EXP.
|
||||
Returns the floating point value resulting from multiplying SGNFCAND
|
||||
(the significand) by 2 raised to the power of EXP (the exponent). */)
|
||||
(sgnfcand, exp)
|
||||
Lisp_Object sgnfcand, exp;
|
||||
(Lisp_Object sgnfcand, Lisp_Object exp)
|
||||
{
|
||||
CHECK_NUMBER (exp);
|
||||
return make_float (ldexp (XFLOATINT (sgnfcand), XINT (exp)));
|
||||
|
@ -357,8 +347,7 @@ Returns the floating point value resulting from multiplying SGNFCAND
|
|||
|
||||
DEFUN ("bessel-j0", Fbessel_j0, Sbessel_j0, 1, 1, 0,
|
||||
doc: /* Return the bessel function j0 of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
IN_FLOAT (d = j0 (d), "bessel-j0", arg);
|
||||
|
@ -367,8 +356,7 @@ DEFUN ("bessel-j0", Fbessel_j0, Sbessel_j0, 1, 1, 0,
|
|||
|
||||
DEFUN ("bessel-j1", Fbessel_j1, Sbessel_j1, 1, 1, 0,
|
||||
doc: /* Return the bessel function j1 of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
IN_FLOAT (d = j1 (d), "bessel-j1", arg);
|
||||
|
@ -378,8 +366,7 @@ DEFUN ("bessel-j1", Fbessel_j1, Sbessel_j1, 1, 1, 0,
|
|||
DEFUN ("bessel-jn", Fbessel_jn, Sbessel_jn, 2, 2, 0,
|
||||
doc: /* Return the order N bessel function output jn of ARG.
|
||||
The first arg (the order) is truncated to an integer. */)
|
||||
(n, arg)
|
||||
register Lisp_Object n, arg;
|
||||
(register Lisp_Object n, Lisp_Object arg)
|
||||
{
|
||||
int i1 = extract_float (n);
|
||||
double f2 = extract_float (arg);
|
||||
|
@ -390,8 +377,7 @@ The first arg (the order) is truncated to an integer. */)
|
|||
|
||||
DEFUN ("bessel-y0", Fbessel_y0, Sbessel_y0, 1, 1, 0,
|
||||
doc: /* Return the bessel function y0 of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
IN_FLOAT (d = y0 (d), "bessel-y0", arg);
|
||||
|
@ -400,8 +386,7 @@ DEFUN ("bessel-y0", Fbessel_y0, Sbessel_y0, 1, 1, 0,
|
|||
|
||||
DEFUN ("bessel-y1", Fbessel_y1, Sbessel_y1, 1, 1, 0,
|
||||
doc: /* Return the bessel function y1 of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
IN_FLOAT (d = y1 (d), "bessel-y0", arg);
|
||||
|
@ -411,8 +396,7 @@ DEFUN ("bessel-y1", Fbessel_y1, Sbessel_y1, 1, 1, 0,
|
|||
DEFUN ("bessel-yn", Fbessel_yn, Sbessel_yn, 2, 2, 0,
|
||||
doc: /* Return the order N bessel function output yn of ARG.
|
||||
The first arg (the order) is truncated to an integer. */)
|
||||
(n, arg)
|
||||
register Lisp_Object n, arg;
|
||||
(register Lisp_Object n, Lisp_Object arg)
|
||||
{
|
||||
int i1 = extract_float (n);
|
||||
double f2 = extract_float (arg);
|
||||
|
@ -427,8 +411,7 @@ The first arg (the order) is truncated to an integer. */)
|
|||
|
||||
DEFUN ("erf", Ferf, Serf, 1, 1, 0,
|
||||
doc: /* Return the mathematical error function of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
IN_FLOAT (d = erf (d), "erf", arg);
|
||||
|
@ -437,8 +420,7 @@ DEFUN ("erf", Ferf, Serf, 1, 1, 0,
|
|||
|
||||
DEFUN ("erfc", Ferfc, Serfc, 1, 1, 0,
|
||||
doc: /* Return the complementary error function of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
IN_FLOAT (d = erfc (d), "erfc", arg);
|
||||
|
@ -447,8 +429,7 @@ DEFUN ("erfc", Ferfc, Serfc, 1, 1, 0,
|
|||
|
||||
DEFUN ("log-gamma", Flog_gamma, Slog_gamma, 1, 1, 0,
|
||||
doc: /* Return the log gamma of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
IN_FLOAT (d = lgamma (d), "log-gamma", arg);
|
||||
|
@ -457,8 +438,7 @@ DEFUN ("log-gamma", Flog_gamma, Slog_gamma, 1, 1, 0,
|
|||
|
||||
DEFUN ("cube-root", Fcube_root, Scube_root, 1, 1, 0,
|
||||
doc: /* Return the cube root of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
#ifdef HAVE_CBRT
|
||||
|
@ -476,8 +456,7 @@ DEFUN ("cube-root", Fcube_root, Scube_root, 1, 1, 0,
|
|||
|
||||
DEFUN ("exp", Fexp, Sexp, 1, 1, 0,
|
||||
doc: /* Return the exponential base e of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
#ifdef FLOAT_CHECK_DOMAIN
|
||||
|
@ -493,8 +472,7 @@ DEFUN ("exp", Fexp, Sexp, 1, 1, 0,
|
|||
|
||||
DEFUN ("expt", Fexpt, Sexpt, 2, 2, 0,
|
||||
doc: /* Return the exponential ARG1 ** ARG2. */)
|
||||
(arg1, arg2)
|
||||
register Lisp_Object arg1, arg2;
|
||||
(register Lisp_Object arg1, Lisp_Object arg2)
|
||||
{
|
||||
double f1, f2, f3;
|
||||
|
||||
|
@ -552,8 +530,7 @@ DEFUN ("expt", Fexpt, Sexpt, 2, 2, 0,
|
|||
DEFUN ("log", Flog, Slog, 1, 2, 0,
|
||||
doc: /* Return the natural logarithm of ARG.
|
||||
If the optional argument BASE is given, return log ARG using that base. */)
|
||||
(arg, base)
|
||||
register Lisp_Object arg, base;
|
||||
(register Lisp_Object arg, Lisp_Object base)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
|
||||
|
@ -581,8 +558,7 @@ If the optional argument BASE is given, return log ARG using that base. */)
|
|||
|
||||
DEFUN ("log10", Flog10, Slog10, 1, 1, 0,
|
||||
doc: /* Return the logarithm base 10 of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
#ifdef FLOAT_CHECK_DOMAIN
|
||||
|
@ -595,8 +571,7 @@ DEFUN ("log10", Flog10, Slog10, 1, 1, 0,
|
|||
|
||||
DEFUN ("sqrt", Fsqrt, Ssqrt, 1, 1, 0,
|
||||
doc: /* Return the square root of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
#ifdef FLOAT_CHECK_DOMAIN
|
||||
|
@ -611,8 +586,7 @@ DEFUN ("sqrt", Fsqrt, Ssqrt, 1, 1, 0,
|
|||
|
||||
DEFUN ("acosh", Facosh, Sacosh, 1, 1, 0,
|
||||
doc: /* Return the inverse hyperbolic cosine of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
#ifdef FLOAT_CHECK_DOMAIN
|
||||
|
@ -629,8 +603,7 @@ DEFUN ("acosh", Facosh, Sacosh, 1, 1, 0,
|
|||
|
||||
DEFUN ("asinh", Fasinh, Sasinh, 1, 1, 0,
|
||||
doc: /* Return the inverse hyperbolic sine of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
#ifdef HAVE_INVERSE_HYPERBOLIC
|
||||
|
@ -643,8 +616,7 @@ DEFUN ("asinh", Fasinh, Sasinh, 1, 1, 0,
|
|||
|
||||
DEFUN ("atanh", Fatanh, Satanh, 1, 1, 0,
|
||||
doc: /* Return the inverse hyperbolic tangent of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
#ifdef FLOAT_CHECK_DOMAIN
|
||||
|
@ -661,8 +633,7 @@ DEFUN ("atanh", Fatanh, Satanh, 1, 1, 0,
|
|||
|
||||
DEFUN ("cosh", Fcosh, Scosh, 1, 1, 0,
|
||||
doc: /* Return the hyperbolic cosine of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
#ifdef FLOAT_CHECK_DOMAIN
|
||||
|
@ -675,8 +646,7 @@ DEFUN ("cosh", Fcosh, Scosh, 1, 1, 0,
|
|||
|
||||
DEFUN ("sinh", Fsinh, Ssinh, 1, 1, 0,
|
||||
doc: /* Return the hyperbolic sine of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
#ifdef FLOAT_CHECK_DOMAIN
|
||||
|
@ -689,8 +659,7 @@ DEFUN ("sinh", Fsinh, Ssinh, 1, 1, 0,
|
|||
|
||||
DEFUN ("tanh", Ftanh, Stanh, 1, 1, 0,
|
||||
doc: /* Return the hyperbolic tangent of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
IN_FLOAT (d = tanh (d), "tanh", arg);
|
||||
|
@ -700,8 +669,7 @@ DEFUN ("tanh", Ftanh, Stanh, 1, 1, 0,
|
|||
|
||||
DEFUN ("abs", Fabs, Sabs, 1, 1, 0,
|
||||
doc: /* Return the absolute value of ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
CHECK_NUMBER_OR_FLOAT (arg);
|
||||
|
||||
|
@ -715,8 +683,7 @@ DEFUN ("abs", Fabs, Sabs, 1, 1, 0,
|
|||
|
||||
DEFUN ("float", Ffloat, Sfloat, 1, 1, 0,
|
||||
doc: /* Return the floating point number equal to ARG. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
CHECK_NUMBER_OR_FLOAT (arg);
|
||||
|
||||
|
@ -729,8 +696,7 @@ DEFUN ("float", Ffloat, Sfloat, 1, 1, 0,
|
|||
DEFUN ("logb", Flogb, Slogb, 1, 1, 0,
|
||||
doc: /* Returns largest integer <= the base 2 log of the magnitude of ARG.
|
||||
This is the same as the exponent of a float. */)
|
||||
(arg)
|
||||
Lisp_Object arg;
|
||||
(Lisp_Object arg)
|
||||
{
|
||||
Lisp_Object val;
|
||||
EMACS_INT value;
|
||||
|
@ -891,8 +857,7 @@ DEFUN ("ceiling", Fceiling, Sceiling, 1, 2, 0,
|
|||
doc: /* Return the smallest integer no less than ARG.
|
||||
This rounds the value towards +inf.
|
||||
With optional DIVISOR, return the smallest integer no less than ARG/DIVISOR. */)
|
||||
(arg, divisor)
|
||||
Lisp_Object arg, divisor;
|
||||
(Lisp_Object arg, Lisp_Object divisor)
|
||||
{
|
||||
return rounding_driver (arg, divisor, ceil, ceiling2, "ceiling");
|
||||
}
|
||||
|
@ -901,8 +866,7 @@ DEFUN ("floor", Ffloor, Sfloor, 1, 2, 0,
|
|||
doc: /* Return the largest integer no greater than ARG.
|
||||
This rounds the value towards -inf.
|
||||
With optional DIVISOR, return the largest integer no greater than ARG/DIVISOR. */)
|
||||
(arg, divisor)
|
||||
Lisp_Object arg, divisor;
|
||||
(Lisp_Object arg, Lisp_Object divisor)
|
||||
{
|
||||
return rounding_driver (arg, divisor, floor, floor2, "floor");
|
||||
}
|
||||
|
@ -915,8 +879,7 @@ Rounding a value equidistant between two integers may choose the
|
|||
integer closer to zero, or it may prefer an even integer, depending on
|
||||
your machine. For example, \(round 2.5\) can return 3 on some
|
||||
systems, but 2 on others. */)
|
||||
(arg, divisor)
|
||||
Lisp_Object arg, divisor;
|
||||
(Lisp_Object arg, Lisp_Object divisor)
|
||||
{
|
||||
return rounding_driver (arg, divisor, emacs_rint, round2, "round");
|
||||
}
|
||||
|
@ -925,8 +888,7 @@ DEFUN ("truncate", Ftruncate, Struncate, 1, 2, 0,
|
|||
doc: /* Truncate a floating point number to an int.
|
||||
Rounds ARG toward zero.
|
||||
With optional DIVISOR, truncate ARG/DIVISOR. */)
|
||||
(arg, divisor)
|
||||
Lisp_Object arg, divisor;
|
||||
(Lisp_Object arg, Lisp_Object divisor)
|
||||
{
|
||||
return rounding_driver (arg, divisor, double_identity, truncate2,
|
||||
"truncate");
|
||||
|
@ -956,8 +918,7 @@ fmod_float (Lisp_Object x, Lisp_Object y)
|
|||
DEFUN ("fceiling", Ffceiling, Sfceiling, 1, 1, 0,
|
||||
doc: /* Return the smallest integer no less than ARG, as a float.
|
||||
\(Round toward +inf.\) */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
IN_FLOAT (d = ceil (d), "fceiling", arg);
|
||||
|
@ -967,8 +928,7 @@ DEFUN ("fceiling", Ffceiling, Sfceiling, 1, 1, 0,
|
|||
DEFUN ("ffloor", Fffloor, Sffloor, 1, 1, 0,
|
||||
doc: /* Return the largest integer no greater than ARG, as a float.
|
||||
\(Round towards -inf.\) */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
IN_FLOAT (d = floor (d), "ffloor", arg);
|
||||
|
@ -977,8 +937,7 @@ DEFUN ("ffloor", Fffloor, Sffloor, 1, 1, 0,
|
|||
|
||||
DEFUN ("fround", Ffround, Sfround, 1, 1, 0,
|
||||
doc: /* Return the nearest integer to ARG, as a float. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
IN_FLOAT (d = emacs_rint (d), "fround", arg);
|
||||
|
@ -988,8 +947,7 @@ DEFUN ("fround", Ffround, Sfround, 1, 1, 0,
|
|||
DEFUN ("ftruncate", Fftruncate, Sftruncate, 1, 1, 0,
|
||||
doc: /* Truncate a floating point number to an integral float value.
|
||||
Rounds the value toward zero. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
double d = extract_float (arg);
|
||||
if (d >= 0.0)
|
||||
|
|
268
src/fns.c
268
src/fns.c
|
@ -85,8 +85,7 @@ extern long time ();
|
|||
|
||||
DEFUN ("identity", Fidentity, Sidentity, 1, 1, 0,
|
||||
doc: /* Return the argument unchanged. */)
|
||||
(arg)
|
||||
Lisp_Object arg;
|
||||
(Lisp_Object arg)
|
||||
{
|
||||
return arg;
|
||||
}
|
||||
|
@ -98,8 +97,7 @@ All integers representable in Lisp are equally likely.
|
|||
With positive integer LIMIT, return random number in interval [0,LIMIT).
|
||||
With argument t, set the random number seed from the current time and pid.
|
||||
Other values of LIMIT are ignored. */)
|
||||
(limit)
|
||||
Lisp_Object limit;
|
||||
(Lisp_Object limit)
|
||||
{
|
||||
EMACS_INT val;
|
||||
Lisp_Object lispy_val;
|
||||
|
@ -135,8 +133,7 @@ A byte-code function object is also allowed.
|
|||
If the string contains multibyte characters, this is not necessarily
|
||||
the number of bytes in the string; it is the number of characters.
|
||||
To get the number of bytes, use `string-bytes'. */)
|
||||
(sequence)
|
||||
register Lisp_Object sequence;
|
||||
(register Lisp_Object sequence)
|
||||
{
|
||||
register Lisp_Object val;
|
||||
register int i;
|
||||
|
@ -186,8 +183,7 @@ DEFUN ("safe-length", Fsafe_length, Ssafe_length, 1, 1, 0,
|
|||
This function never gets an error. If LIST is not really a list,
|
||||
it returns 0. If LIST is circular, it returns a finite value
|
||||
which is at least the number of distinct elements. */)
|
||||
(list)
|
||||
Lisp_Object list;
|
||||
(Lisp_Object list)
|
||||
{
|
||||
Lisp_Object tail, halftail, length;
|
||||
int len = 0;
|
||||
|
@ -210,8 +206,7 @@ which is at least the number of distinct elements. */)
|
|||
DEFUN ("string-bytes", Fstring_bytes, Sstring_bytes, 1, 1, 0,
|
||||
doc: /* Return the number of bytes in STRING.
|
||||
If STRING is multibyte, this may be greater than the length of STRING. */)
|
||||
(string)
|
||||
Lisp_Object string;
|
||||
(Lisp_Object string)
|
||||
{
|
||||
CHECK_STRING (string);
|
||||
return make_number (SBYTES (string));
|
||||
|
@ -221,8 +216,7 @@ DEFUN ("string-equal", Fstring_equal, Sstring_equal, 2, 2, 0,
|
|||
doc: /* Return t if two strings have identical contents.
|
||||
Case is significant, but text properties are ignored.
|
||||
Symbols are also allowed; their print names are used instead. */)
|
||||
(s1, s2)
|
||||
register Lisp_Object s1, s2;
|
||||
(register Lisp_Object s1, Lisp_Object s2)
|
||||
{
|
||||
if (SYMBOLP (s1))
|
||||
s1 = SYMBOL_NAME (s1);
|
||||
|
@ -253,8 +247,7 @@ If string STR1 is less, the value is a negative number N;
|
|||
- 1 - N is the number of characters that match at the beginning.
|
||||
If string STR1 is greater, the value is a positive number N;
|
||||
N - 1 is the number of characters that match at the beginning. */)
|
||||
(str1, start1, end1, str2, start2, end2, ignore_case)
|
||||
Lisp_Object str1, start1, end1, start2, str2, end2, ignore_case;
|
||||
(Lisp_Object str1, Lisp_Object start1, Lisp_Object end1, Lisp_Object str2, Lisp_Object start2, Lisp_Object end2, Lisp_Object ignore_case)
|
||||
{
|
||||
register int end1_char, end2_char;
|
||||
register int i1, i1_byte, i2, i2_byte;
|
||||
|
@ -345,8 +338,7 @@ DEFUN ("string-lessp", Fstring_lessp, Sstring_lessp, 2, 2, 0,
|
|||
doc: /* Return t if first arg string is less than second in lexicographic order.
|
||||
Case is significant.
|
||||
Symbols are also allowed; their print names are used instead. */)
|
||||
(s1, s2)
|
||||
register Lisp_Object s1, s2;
|
||||
(register Lisp_Object s1, Lisp_Object s2)
|
||||
{
|
||||
register int end;
|
||||
register int i1, i1_byte, i2, i2_byte;
|
||||
|
@ -415,9 +407,7 @@ The result is a list whose elements are the elements of all the arguments.
|
|||
Each argument may be a list, vector or string.
|
||||
The last argument is not copied, just used as the tail of the new list.
|
||||
usage: (append &rest SEQUENCES) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
return concat (nargs, args, Lisp_Cons, 1);
|
||||
}
|
||||
|
@ -427,9 +417,7 @@ DEFUN ("concat", Fconcat, Sconcat, 0, MANY, 0,
|
|||
The result is a string whose elements are the elements of all the arguments.
|
||||
Each argument may be a string or a list or vector of characters (integers).
|
||||
usage: (concat &rest SEQUENCES) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
return concat (nargs, args, Lisp_String, 0);
|
||||
}
|
||||
|
@ -439,9 +427,7 @@ DEFUN ("vconcat", Fvconcat, Svconcat, 0, MANY, 0,
|
|||
The result is a vector whose elements are the elements of all the arguments.
|
||||
Each argument may be a list, vector or string.
|
||||
usage: (vconcat &rest SEQUENCES) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
return concat (nargs, args, Lisp_Vectorlike, 0);
|
||||
}
|
||||
|
@ -451,8 +437,7 @@ DEFUN ("copy-sequence", Fcopy_sequence, Scopy_sequence, 1, 1, 0,
|
|||
doc: /* Return a copy of a list, vector, string or char-table.
|
||||
The elements of a list or vector are not copied; they are shared
|
||||
with the original. */)
|
||||
(arg)
|
||||
Lisp_Object arg;
|
||||
(Lisp_Object arg)
|
||||
{
|
||||
if (NILP (arg)) return arg;
|
||||
|
||||
|
@ -998,8 +983,7 @@ or entirely ASCII, it is returned unchanged. In particular, when
|
|||
STRING is unibyte and entirely ASCII, the returned string is unibyte.
|
||||
\(When the characters are all ASCII, Emacs primitives will treat the
|
||||
string the same way whether it is unibyte or multibyte.) */)
|
||||
(string)
|
||||
Lisp_Object string;
|
||||
(Lisp_Object string)
|
||||
{
|
||||
CHECK_STRING (string);
|
||||
|
||||
|
@ -1013,8 +997,7 @@ Multibyte character codes are converted to unibyte according to
|
|||
`nonascii-translation-table' or, if that is nil, `nonascii-insert-offset'.
|
||||
If the lookup in the translation table fails, this function takes just
|
||||
the low 8 bits of each character. */)
|
||||
(string)
|
||||
Lisp_Object string;
|
||||
(Lisp_Object string)
|
||||
{
|
||||
CHECK_STRING (string);
|
||||
|
||||
|
@ -1028,8 +1011,7 @@ If STRING is unibyte, the result is STRING itself.
|
|||
Otherwise it is a newly created string, with no text properties.
|
||||
If STRING is multibyte and contains a character of charset
|
||||
`eight-bit', it is converted to the corresponding single byte. */)
|
||||
(string)
|
||||
Lisp_Object string;
|
||||
(Lisp_Object string)
|
||||
{
|
||||
CHECK_STRING (string);
|
||||
|
||||
|
@ -1061,8 +1043,7 @@ Beware, this often doesn't really do what you think it does.
|
|||
It is similar to (decode-coding-string STRING 'utf-8-emacs).
|
||||
If you're not sure, whether to use `string-as-multibyte' or
|
||||
`string-to-multibyte', use `string-to-multibyte'. */)
|
||||
(string)
|
||||
Lisp_Object string;
|
||||
(Lisp_Object string)
|
||||
{
|
||||
CHECK_STRING (string);
|
||||
|
||||
|
@ -1097,8 +1078,7 @@ the corresponding multibyte character of charset `eight-bit'.
|
|||
This differs from `string-as-multibyte' by converting each byte of a correct
|
||||
utf-8 sequence to an eight-bit character, not just bytes that don't form a
|
||||
correct sequence. */)
|
||||
(string)
|
||||
Lisp_Object string;
|
||||
(Lisp_Object string)
|
||||
{
|
||||
CHECK_STRING (string);
|
||||
|
||||
|
@ -1113,8 +1093,7 @@ Otherwise it is a newly created string, with no text properties,
|
|||
where each `eight-bit' character is converted to the corresponding byte.
|
||||
If STRING contains a non-ASCII, non-`eight-bit' character,
|
||||
an error is signaled. */)
|
||||
(string)
|
||||
Lisp_Object string;
|
||||
(Lisp_Object string)
|
||||
{
|
||||
CHECK_STRING (string);
|
||||
|
||||
|
@ -1140,8 +1119,7 @@ but does not share the alist structure with ALIST.
|
|||
The objects mapped (cars and cdrs of elements of the alist)
|
||||
are shared, however.
|
||||
Elements of ALIST that are not conses are also shared. */)
|
||||
(alist)
|
||||
Lisp_Object alist;
|
||||
(Lisp_Object alist)
|
||||
{
|
||||
register Lisp_Object tem;
|
||||
|
||||
|
@ -1171,9 +1149,7 @@ to the end of STRING.
|
|||
The STRING argument may also be a vector. In that case, the return
|
||||
value is a new vector that contains the elements between index FROM
|
||||
\(inclusive) and index TO (exclusive) of that vector argument. */)
|
||||
(string, from, to)
|
||||
Lisp_Object string;
|
||||
register Lisp_Object from, to;
|
||||
(Lisp_Object string, register Lisp_Object from, Lisp_Object to)
|
||||
{
|
||||
Lisp_Object res;
|
||||
int size;
|
||||
|
@ -1242,9 +1218,7 @@ If FROM is nil or omitted, the substring starts at the beginning of STRING.
|
|||
If FROM or TO is negative, it counts from the end.
|
||||
|
||||
With one argument, just copy STRING without its properties. */)
|
||||
(string, from, to)
|
||||
Lisp_Object string;
|
||||
register Lisp_Object from, to;
|
||||
(Lisp_Object string, register Lisp_Object from, Lisp_Object to)
|
||||
{
|
||||
int size, size_byte;
|
||||
int from_char, to_char;
|
||||
|
@ -1331,9 +1305,7 @@ substring_both (Lisp_Object string, int from, int from_byte, int to, int to_byte
|
|||
|
||||
DEFUN ("nthcdr", Fnthcdr, Snthcdr, 2, 2, 0,
|
||||
doc: /* Take cdr N times on LIST, returns the result. */)
|
||||
(n, list)
|
||||
Lisp_Object n;
|
||||
register Lisp_Object list;
|
||||
(Lisp_Object n, Lisp_Object list)
|
||||
{
|
||||
register int i, num;
|
||||
CHECK_NUMBER (n);
|
||||
|
@ -1350,16 +1322,14 @@ DEFUN ("nthcdr", Fnthcdr, Snthcdr, 2, 2, 0,
|
|||
DEFUN ("nth", Fnth, Snth, 2, 2, 0,
|
||||
doc: /* Return the Nth element of LIST.
|
||||
N counts from zero. If LIST is not that long, nil is returned. */)
|
||||
(n, list)
|
||||
Lisp_Object n, list;
|
||||
(Lisp_Object n, Lisp_Object list)
|
||||
{
|
||||
return Fcar (Fnthcdr (n, list));
|
||||
}
|
||||
|
||||
DEFUN ("elt", Felt, Selt, 2, 2, 0,
|
||||
doc: /* Return element of SEQUENCE at index N. */)
|
||||
(sequence, n)
|
||||
register Lisp_Object sequence, n;
|
||||
(register Lisp_Object sequence, Lisp_Object n)
|
||||
{
|
||||
CHECK_NUMBER (n);
|
||||
if (CONSP (sequence) || NILP (sequence))
|
||||
|
@ -1373,9 +1343,7 @@ DEFUN ("elt", Felt, Selt, 2, 2, 0,
|
|||
DEFUN ("member", Fmember, Smember, 2, 2, 0,
|
||||
doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `equal'.
|
||||
The value is actually the tail of LIST whose car is ELT. */)
|
||||
(elt, list)
|
||||
register Lisp_Object elt;
|
||||
Lisp_Object list;
|
||||
(register Lisp_Object elt, Lisp_Object list)
|
||||
{
|
||||
register Lisp_Object tail;
|
||||
for (tail = list; CONSP (tail); tail = XCDR (tail))
|
||||
|
@ -1393,8 +1361,7 @@ The value is actually the tail of LIST whose car is ELT. */)
|
|||
DEFUN ("memq", Fmemq, Smemq, 2, 2, 0,
|
||||
doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `eq'.
|
||||
The value is actually the tail of LIST whose car is ELT. */)
|
||||
(elt, list)
|
||||
register Lisp_Object elt, list;
|
||||
(register Lisp_Object elt, Lisp_Object list)
|
||||
{
|
||||
while (1)
|
||||
{
|
||||
|
@ -1420,9 +1387,7 @@ The value is actually the tail of LIST whose car is ELT. */)
|
|||
DEFUN ("memql", Fmemql, Smemql, 2, 2, 0,
|
||||
doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `eql'.
|
||||
The value is actually the tail of LIST whose car is ELT. */)
|
||||
(elt, list)
|
||||
register Lisp_Object elt;
|
||||
Lisp_Object list;
|
||||
(register Lisp_Object elt, Lisp_Object list)
|
||||
{
|
||||
register Lisp_Object tail;
|
||||
|
||||
|
@ -1445,8 +1410,7 @@ DEFUN ("assq", Fassq, Sassq, 2, 2, 0,
|
|||
doc: /* Return non-nil if KEY is `eq' to the car of an element of LIST.
|
||||
The value is actually the first element of LIST whose car is KEY.
|
||||
Elements of LIST that are not conses are ignored. */)
|
||||
(key, list)
|
||||
Lisp_Object key, list;
|
||||
(Lisp_Object key, Lisp_Object list)
|
||||
{
|
||||
while (1)
|
||||
{
|
||||
|
@ -1491,8 +1455,7 @@ assq_no_quit (Lisp_Object key, Lisp_Object list)
|
|||
DEFUN ("assoc", Fassoc, Sassoc, 2, 2, 0,
|
||||
doc: /* Return non-nil if KEY is `equal' to the car of an element of LIST.
|
||||
The value is actually the first element of LIST whose car equals KEY. */)
|
||||
(key, list)
|
||||
Lisp_Object key, list;
|
||||
(Lisp_Object key, Lisp_Object list)
|
||||
{
|
||||
Lisp_Object car;
|
||||
|
||||
|
@ -1543,9 +1506,7 @@ assoc_no_quit (Lisp_Object key, Lisp_Object list)
|
|||
DEFUN ("rassq", Frassq, Srassq, 2, 2, 0,
|
||||
doc: /* Return non-nil if KEY is `eq' to the cdr of an element of LIST.
|
||||
The value is actually the first element of LIST whose cdr is KEY. */)
|
||||
(key, list)
|
||||
register Lisp_Object key;
|
||||
Lisp_Object list;
|
||||
(register Lisp_Object key, Lisp_Object list)
|
||||
{
|
||||
while (1)
|
||||
{
|
||||
|
@ -1576,8 +1537,7 @@ The value is actually the first element of LIST whose cdr is KEY. */)
|
|||
DEFUN ("rassoc", Frassoc, Srassoc, 2, 2, 0,
|
||||
doc: /* Return non-nil if KEY is `equal' to the cdr of an element of LIST.
|
||||
The value is actually the first element of LIST whose cdr equals KEY. */)
|
||||
(key, list)
|
||||
Lisp_Object key, list;
|
||||
(Lisp_Object key, Lisp_Object list)
|
||||
{
|
||||
Lisp_Object cdr;
|
||||
|
||||
|
@ -1616,9 +1576,7 @@ The modified LIST is returned. Comparison is done with `eq'.
|
|||
If the first member of LIST is ELT, there is no way to remove it by side effect;
|
||||
therefore, write `(setq foo (delq element foo))'
|
||||
to be sure of changing the value of `foo'. */)
|
||||
(elt, list)
|
||||
register Lisp_Object elt;
|
||||
Lisp_Object list;
|
||||
(register Lisp_Object elt, Lisp_Object list)
|
||||
{
|
||||
register Lisp_Object tail, prev;
|
||||
register Lisp_Object tem;
|
||||
|
@ -1652,8 +1610,7 @@ If SEQ is not a list, or the first member of SEQ is ELT, deleting it
|
|||
is not a side effect; it is simply using a different sequence.
|
||||
Therefore, write `(setq foo (delete element foo))'
|
||||
to be sure of changing the value of `foo'. */)
|
||||
(elt, seq)
|
||||
Lisp_Object elt, seq;
|
||||
(Lisp_Object elt, Lisp_Object seq)
|
||||
{
|
||||
if (VECTORP (seq))
|
||||
{
|
||||
|
@ -1768,8 +1725,7 @@ to be sure of changing the value of `foo'. */)
|
|||
DEFUN ("nreverse", Fnreverse, Snreverse, 1, 1, 0,
|
||||
doc: /* Reverse LIST by modifying cdr pointers.
|
||||
Return the reversed list. */)
|
||||
(list)
|
||||
Lisp_Object list;
|
||||
(Lisp_Object list)
|
||||
{
|
||||
register Lisp_Object prev, tail, next;
|
||||
|
||||
|
@ -1791,8 +1747,7 @@ Return the reversed list. */)
|
|||
DEFUN ("reverse", Freverse, Sreverse, 1, 1, 0,
|
||||
doc: /* Reverse LIST, copying. Return the reversed list.
|
||||
See also the function `nreverse', which is used more often. */)
|
||||
(list)
|
||||
Lisp_Object list;
|
||||
(Lisp_Object list)
|
||||
{
|
||||
Lisp_Object new;
|
||||
|
||||
|
@ -1812,8 +1767,7 @@ DEFUN ("sort", Fsort, Ssort, 2, 2, 0,
|
|||
Returns the sorted list. LIST is modified by side effects.
|
||||
PREDICATE is called with two elements of LIST, and should return non-nil
|
||||
if the first element should sort before the second. */)
|
||||
(list, predicate)
|
||||
Lisp_Object list, predicate;
|
||||
(Lisp_Object list, Lisp_Object predicate)
|
||||
{
|
||||
Lisp_Object front, back;
|
||||
register Lisp_Object len, tem;
|
||||
|
@ -1905,9 +1859,7 @@ PLIST is a property list, which is a list of the form
|
|||
\(PROP1 VALUE1 PROP2 VALUE2...). This function returns the value
|
||||
corresponding to the given PROP, or nil if PROP is not one of the
|
||||
properties on the list. This function never signals an error. */)
|
||||
(plist, prop)
|
||||
Lisp_Object plist;
|
||||
Lisp_Object prop;
|
||||
(Lisp_Object plist, Lisp_Object prop)
|
||||
{
|
||||
Lisp_Object tail, halftail;
|
||||
|
||||
|
@ -1937,8 +1889,7 @@ properties on the list. This function never signals an error. */)
|
|||
DEFUN ("get", Fget, Sget, 2, 2, 0,
|
||||
doc: /* Return the value of SYMBOL's PROPNAME property.
|
||||
This is the last value stored with `(put SYMBOL PROPNAME VALUE)'. */)
|
||||
(symbol, propname)
|
||||
Lisp_Object symbol, propname;
|
||||
(Lisp_Object symbol, Lisp_Object propname)
|
||||
{
|
||||
CHECK_SYMBOL (symbol);
|
||||
return Fplist_get (XSYMBOL (symbol)->plist, propname);
|
||||
|
@ -1952,10 +1903,7 @@ If PROP is already a property on the list, its value is set to VAL,
|
|||
otherwise the new PROP VAL pair is added. The new plist is returned;
|
||||
use `(setq x (plist-put x prop val))' to be sure to use the new value.
|
||||
The PLIST is modified by side effects. */)
|
||||
(plist, prop, val)
|
||||
Lisp_Object plist;
|
||||
register Lisp_Object prop;
|
||||
Lisp_Object val;
|
||||
(Lisp_Object plist, register Lisp_Object prop, Lisp_Object val)
|
||||
{
|
||||
register Lisp_Object tail, prev;
|
||||
Lisp_Object newcell;
|
||||
|
@ -1983,8 +1931,7 @@ The PLIST is modified by side effects. */)
|
|||
DEFUN ("put", Fput, Sput, 3, 3, 0,
|
||||
doc: /* Store SYMBOL's PROPNAME property with value VALUE.
|
||||
It can be retrieved with `(get SYMBOL PROPNAME)'. */)
|
||||
(symbol, propname, value)
|
||||
Lisp_Object symbol, propname, value;
|
||||
(Lisp_Object symbol, Lisp_Object propname, Lisp_Object value)
|
||||
{
|
||||
CHECK_SYMBOL (symbol);
|
||||
XSYMBOL (symbol)->plist
|
||||
|
@ -1998,9 +1945,7 @@ PLIST is a property list, which is a list of the form
|
|||
\(PROP1 VALUE1 PROP2 VALUE2...). This function returns the value
|
||||
corresponding to the given PROP, or nil if PROP is not
|
||||
one of the properties on the list. */)
|
||||
(plist, prop)
|
||||
Lisp_Object plist;
|
||||
Lisp_Object prop;
|
||||
(Lisp_Object plist, Lisp_Object prop)
|
||||
{
|
||||
Lisp_Object tail;
|
||||
|
||||
|
@ -2027,10 +1972,7 @@ If PROP is already a property on the list, its value is set to VAL,
|
|||
otherwise the new PROP VAL pair is added. The new plist is returned;
|
||||
use `(setq x (lax-plist-put x prop val))' to be sure to use the new value.
|
||||
The PLIST is modified by side effects. */)
|
||||
(plist, prop, val)
|
||||
Lisp_Object plist;
|
||||
register Lisp_Object prop;
|
||||
Lisp_Object val;
|
||||
(Lisp_Object plist, register Lisp_Object prop, Lisp_Object val)
|
||||
{
|
||||
register Lisp_Object tail, prev;
|
||||
Lisp_Object newcell;
|
||||
|
@ -2058,8 +2000,7 @@ The PLIST is modified by side effects. */)
|
|||
DEFUN ("eql", Feql, Seql, 2, 2, 0,
|
||||
doc: /* Return t if the two args are the same Lisp object.
|
||||
Floating-point numbers of equal value are `eql', but they may not be `eq'. */)
|
||||
(obj1, obj2)
|
||||
Lisp_Object obj1, obj2;
|
||||
(Lisp_Object obj1, Lisp_Object obj2)
|
||||
{
|
||||
if (FLOATP (obj1))
|
||||
return internal_equal (obj1, obj2, 0, 0) ? Qt : Qnil;
|
||||
|
@ -2075,8 +2016,7 @@ Vectors and strings are compared element by element.
|
|||
Numbers are compared by value, but integers cannot equal floats.
|
||||
(Use `=' if you want integers and floats to be able to be equal.)
|
||||
Symbols must match exactly. */)
|
||||
(o1, o2)
|
||||
register Lisp_Object o1, o2;
|
||||
(register Lisp_Object o1, Lisp_Object o2)
|
||||
{
|
||||
return internal_equal (o1, o2, 0, 0) ? Qt : Qnil;
|
||||
}
|
||||
|
@ -2085,8 +2025,7 @@ DEFUN ("equal-including-properties", Fequal_including_properties, Sequal_includi
|
|||
doc: /* Return t if two Lisp objects have similar structure and contents.
|
||||
This is like `equal' except that it compares the text properties
|
||||
of strings. (`equal' ignores text properties.) */)
|
||||
(o1, o2)
|
||||
register Lisp_Object o1, o2;
|
||||
(register Lisp_Object o1, Lisp_Object o2)
|
||||
{
|
||||
return internal_equal (o1, o2, 0, 1) ? Qt : Qnil;
|
||||
}
|
||||
|
@ -2220,8 +2159,7 @@ internal_equal (register Lisp_Object o1, register Lisp_Object o2, int depth, int
|
|||
DEFUN ("fillarray", Ffillarray, Sfillarray, 2, 2, 0,
|
||||
doc: /* Store each element of ARRAY with ITEM.
|
||||
ARRAY is a vector, string, char-table, or bool-vector. */)
|
||||
(array, item)
|
||||
Lisp_Object array, item;
|
||||
(Lisp_Object array, Lisp_Object item)
|
||||
{
|
||||
register int size, index, charval;
|
||||
if (VECTORP (array))
|
||||
|
@ -2295,8 +2233,7 @@ DEFUN ("clear-string", Fclear_string, Sclear_string,
|
|||
1, 1, 0,
|
||||
doc: /* Clear the contents of STRING.
|
||||
This makes STRING unibyte and may change its length. */)
|
||||
(string)
|
||||
Lisp_Object string;
|
||||
(Lisp_Object string)
|
||||
{
|
||||
int len;
|
||||
CHECK_STRING (string);
|
||||
|
@ -2321,9 +2258,7 @@ DEFUN ("nconc", Fnconc, Snconc, 0, MANY, 0,
|
|||
doc: /* Concatenate any number of lists by altering them.
|
||||
Only the last argument is not altered, and need not be a list.
|
||||
usage: (nconc &rest LISTS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
register int argnum;
|
||||
register Lisp_Object tail, tem, val;
|
||||
|
@ -2444,8 +2379,7 @@ DEFUN ("mapconcat", Fmapconcat, Smapconcat, 3, 3, 0,
|
|||
In between each pair of results, stick in SEPARATOR. Thus, " " as
|
||||
SEPARATOR results in spaces between the values returned by FUNCTION.
|
||||
SEQUENCE may be a list, a vector, a bool-vector, or a string. */)
|
||||
(function, sequence, separator)
|
||||
Lisp_Object function, sequence, separator;
|
||||
(Lisp_Object function, Lisp_Object sequence, Lisp_Object separator)
|
||||
{
|
||||
Lisp_Object len;
|
||||
register int leni;
|
||||
|
@ -2485,8 +2419,7 @@ DEFUN ("mapcar", Fmapcar, Smapcar, 2, 2, 0,
|
|||
doc: /* Apply FUNCTION to each element of SEQUENCE, and make a list of the results.
|
||||
The result is a list just as long as SEQUENCE.
|
||||
SEQUENCE may be a list, a vector, a bool-vector, or a string. */)
|
||||
(function, sequence)
|
||||
Lisp_Object function, sequence;
|
||||
(Lisp_Object function, Lisp_Object sequence)
|
||||
{
|
||||
register Lisp_Object len;
|
||||
register int leni;
|
||||
|
@ -2513,8 +2446,7 @@ DEFUN ("mapc", Fmapc, Smapc, 2, 2, 0,
|
|||
doc: /* Apply FUNCTION to each element of SEQUENCE for side effects only.
|
||||
Unlike `mapcar', don't accumulate the results. Return SEQUENCE.
|
||||
SEQUENCE may be a list, a vector, a bool-vector, or a string. */)
|
||||
(function, sequence)
|
||||
Lisp_Object function, sequence;
|
||||
(Lisp_Object function, Lisp_Object sequence)
|
||||
{
|
||||
register int leni;
|
||||
|
||||
|
@ -2540,8 +2472,7 @@ for more information. In this case, the useful bindings are `act', `skip',
|
|||
|
||||
Under a windowing system a dialog box will be used if `last-nonmenu-event'
|
||||
is nil and `use-dialog-box' is non-nil. */)
|
||||
(prompt)
|
||||
Lisp_Object prompt;
|
||||
(Lisp_Object prompt)
|
||||
{
|
||||
register Lisp_Object obj, key, def, map;
|
||||
register int answer;
|
||||
|
@ -2689,8 +2620,7 @@ and can edit it until it has been confirmed.
|
|||
|
||||
Under a windowing system a dialog box will be used if `last-nonmenu-event'
|
||||
is nil, and `use-dialog-box' is non-nil. */)
|
||||
(prompt)
|
||||
Lisp_Object prompt;
|
||||
(Lisp_Object prompt)
|
||||
{
|
||||
register Lisp_Object ans;
|
||||
Lisp_Object args[2];
|
||||
|
@ -2762,8 +2692,7 @@ An error is thrown if the load average can't be obtained. In some
|
|||
cases making it work would require Emacs being installed setuid or
|
||||
setgid so that it can read kernel information, and that usually isn't
|
||||
advisable. */)
|
||||
(use_floats)
|
||||
Lisp_Object use_floats;
|
||||
(Lisp_Object use_floats)
|
||||
{
|
||||
double load_ave[3];
|
||||
int loads = getloadavg (load_ave, 3);
|
||||
|
@ -2794,8 +2723,7 @@ presence or absence of Emacs or environment extensions.
|
|||
Use `provide' to declare that a feature is available. This function
|
||||
looks at the value of the variable `features'. The optional argument
|
||||
SUBFEATURE can be used to check a specific subfeature of FEATURE. */)
|
||||
(feature, subfeature)
|
||||
Lisp_Object feature, subfeature;
|
||||
(Lisp_Object feature, Lisp_Object subfeature)
|
||||
{
|
||||
register Lisp_Object tem;
|
||||
CHECK_SYMBOL (feature);
|
||||
|
@ -2809,8 +2737,7 @@ DEFUN ("provide", Fprovide, Sprovide, 1, 2, 0,
|
|||
doc: /* Announce that FEATURE is a feature of the current Emacs.
|
||||
The optional argument SUBFEATURES should be a list of symbols listing
|
||||
particular subfeatures supported in this version of FEATURE. */)
|
||||
(feature, subfeatures)
|
||||
Lisp_Object feature, subfeatures;
|
||||
(Lisp_Object feature, Lisp_Object subfeatures)
|
||||
{
|
||||
register Lisp_Object tem;
|
||||
CHECK_SYMBOL (feature);
|
||||
|
@ -2856,8 +2783,7 @@ If the optional third argument NOERROR is non-nil,
|
|||
then return nil if the file is not found instead of signaling an error.
|
||||
Normally the return value is FEATURE.
|
||||
The normal messages at start and end of loading FILENAME are suppressed. */)
|
||||
(feature, filename, noerror)
|
||||
Lisp_Object feature, filename, noerror;
|
||||
(Lisp_Object feature, Lisp_Object filename, Lisp_Object noerror)
|
||||
{
|
||||
register Lisp_Object tem;
|
||||
struct gcpro gcpro1, gcpro2;
|
||||
|
@ -2952,8 +2878,7 @@ PLIST is a property list, which is a list of the form
|
|||
Unlike `plist-get', this allows you to distinguish between a missing
|
||||
property and a property with the value nil.
|
||||
The value is actually the tail of PLIST whose car is PROP. */)
|
||||
(plist, prop)
|
||||
Lisp_Object plist, prop;
|
||||
(Lisp_Object plist, Lisp_Object prop)
|
||||
{
|
||||
while (CONSP (plist) && !EQ (XCAR (plist), prop))
|
||||
{
|
||||
|
@ -2967,8 +2892,7 @@ The value is actually the tail of PLIST whose car is PROP. */)
|
|||
DEFUN ("widget-put", Fwidget_put, Swidget_put, 3, 3, 0,
|
||||
doc: /* In WIDGET, set PROPERTY to VALUE.
|
||||
The value can later be retrieved with `widget-get'. */)
|
||||
(widget, property, value)
|
||||
Lisp_Object widget, property, value;
|
||||
(Lisp_Object widget, Lisp_Object property, Lisp_Object value)
|
||||
{
|
||||
CHECK_CONS (widget);
|
||||
XSETCDR (widget, Fplist_put (XCDR (widget), property, value));
|
||||
|
@ -2979,8 +2903,7 @@ DEFUN ("widget-get", Fwidget_get, Swidget_get, 2, 2, 0,
|
|||
doc: /* In WIDGET, get the value of PROPERTY.
|
||||
The value could either be specified when the widget was created, or
|
||||
later with `widget-put'. */)
|
||||
(widget, property)
|
||||
Lisp_Object widget, property;
|
||||
(Lisp_Object widget, Lisp_Object property)
|
||||
{
|
||||
Lisp_Object tmp;
|
||||
|
||||
|
@ -3006,9 +2929,7 @@ DEFUN ("widget-apply", Fwidget_apply, Swidget_apply, 2, MANY, 0,
|
|||
doc: /* Apply the value of WIDGET's PROPERTY to the widget itself.
|
||||
ARGS are passed as extra arguments to the function.
|
||||
usage: (widget-apply WIDGET PROPERTY &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
/* This function can GC. */
|
||||
Lisp_Object newargs[3];
|
||||
|
@ -3047,8 +2968,7 @@ If the system can't provide such information through a call to
|
|||
See also Info node `(libc)Locales'.
|
||||
|
||||
The data read from the system are decoded using `locale-coding-system'. */)
|
||||
(item)
|
||||
Lisp_Object item;
|
||||
(Lisp_Object item)
|
||||
{
|
||||
char *str = NULL;
|
||||
#ifdef HAVE_LANGINFO_CODESET
|
||||
|
@ -3202,8 +3122,7 @@ DEFUN ("base64-encode-region", Fbase64_encode_region, Sbase64_encode_region,
|
|||
Return the length of the encoded text.
|
||||
Optional third argument NO-LINE-BREAK means do not break long lines
|
||||
into shorter lines. */)
|
||||
(beg, end, no_line_break)
|
||||
Lisp_Object beg, end, no_line_break;
|
||||
(Lisp_Object beg, Lisp_Object end, Lisp_Object no_line_break)
|
||||
{
|
||||
char *encoded;
|
||||
int allength, length;
|
||||
|
@ -3262,8 +3181,7 @@ DEFUN ("base64-encode-string", Fbase64_encode_string, Sbase64_encode_string,
|
|||
doc: /* Base64-encode STRING and return the result.
|
||||
Optional second argument NO-LINE-BREAK means do not break long lines
|
||||
into shorter lines. */)
|
||||
(string, no_line_break)
|
||||
Lisp_Object string, no_line_break;
|
||||
(Lisp_Object string, Lisp_Object no_line_break)
|
||||
{
|
||||
int allength, length, encoded_length;
|
||||
char *encoded;
|
||||
|
@ -3401,8 +3319,7 @@ DEFUN ("base64-decode-region", Fbase64_decode_region, Sbase64_decode_region,
|
|||
doc: /* Base64-decode the region between BEG and END.
|
||||
Return the length of the decoded text.
|
||||
If the region can't be decoded, signal an error and don't modify the buffer. */)
|
||||
(beg, end)
|
||||
Lisp_Object beg, end;
|
||||
(Lisp_Object beg, Lisp_Object end)
|
||||
{
|
||||
int ibeg, iend, length, allength;
|
||||
char *decoded;
|
||||
|
@ -3462,8 +3379,7 @@ If the region can't be decoded, signal an error and don't modify the buffer. */
|
|||
DEFUN ("base64-decode-string", Fbase64_decode_string, Sbase64_decode_string,
|
||||
1, 1, 0,
|
||||
doc: /* Base64-decode STRING and return the result. */)
|
||||
(string)
|
||||
Lisp_Object string;
|
||||
(Lisp_Object string)
|
||||
{
|
||||
char *decoded;
|
||||
int length, decoded_length;
|
||||
|
@ -4497,8 +4413,7 @@ sxhash (Lisp_Object obj, int depth)
|
|||
|
||||
DEFUN ("sxhash", Fsxhash, Ssxhash, 1, 1, 0,
|
||||
doc: /* Compute a hash code for OBJ and return it as integer. */)
|
||||
(obj)
|
||||
Lisp_Object obj;
|
||||
(Lisp_Object obj)
|
||||
{
|
||||
unsigned hash = sxhash (obj, 0);
|
||||
return make_number (hash);
|
||||
|
@ -4537,9 +4452,7 @@ WEAK. WEAK t is equivalent to `key-and-value'. Default value of WEAK
|
|||
is nil.
|
||||
|
||||
usage: (make-hash-table &rest KEYWORD-ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
Lisp_Object test, size, rehash_size, rehash_threshold, weak;
|
||||
Lisp_Object user_test, user_hash;
|
||||
|
@ -4616,8 +4529,7 @@ usage: (make-hash-table &rest KEYWORD-ARGS) */)
|
|||
|
||||
DEFUN ("copy-hash-table", Fcopy_hash_table, Scopy_hash_table, 1, 1, 0,
|
||||
doc: /* Return a copy of hash table TABLE. */)
|
||||
(table)
|
||||
Lisp_Object table;
|
||||
(Lisp_Object table)
|
||||
{
|
||||
return copy_hash_table (check_hash_table (table));
|
||||
}
|
||||
|
@ -4625,8 +4537,7 @@ DEFUN ("copy-hash-table", Fcopy_hash_table, Scopy_hash_table, 1, 1, 0,
|
|||
|
||||
DEFUN ("hash-table-count", Fhash_table_count, Shash_table_count, 1, 1, 0,
|
||||
doc: /* Return the number of elements in TABLE. */)
|
||||
(table)
|
||||
Lisp_Object table;
|
||||
(Lisp_Object table)
|
||||
{
|
||||
return make_number (check_hash_table (table)->count);
|
||||
}
|
||||
|
@ -4635,8 +4546,7 @@ DEFUN ("hash-table-count", Fhash_table_count, Shash_table_count, 1, 1, 0,
|
|||
DEFUN ("hash-table-rehash-size", Fhash_table_rehash_size,
|
||||
Shash_table_rehash_size, 1, 1, 0,
|
||||
doc: /* Return the current rehash size of TABLE. */)
|
||||
(table)
|
||||
Lisp_Object table;
|
||||
(Lisp_Object table)
|
||||
{
|
||||
return check_hash_table (table)->rehash_size;
|
||||
}
|
||||
|
@ -4645,8 +4555,7 @@ DEFUN ("hash-table-rehash-size", Fhash_table_rehash_size,
|
|||
DEFUN ("hash-table-rehash-threshold", Fhash_table_rehash_threshold,
|
||||
Shash_table_rehash_threshold, 1, 1, 0,
|
||||
doc: /* Return the current rehash threshold of TABLE. */)
|
||||
(table)
|
||||
Lisp_Object table;
|
||||
(Lisp_Object table)
|
||||
{
|
||||
return check_hash_table (table)->rehash_threshold;
|
||||
}
|
||||
|
@ -4657,8 +4566,7 @@ DEFUN ("hash-table-size", Fhash_table_size, Shash_table_size, 1, 1, 0,
|
|||
The size can be used as an argument to `make-hash-table' to create
|
||||
a hash table than can hold as many elements of TABLE holds
|
||||
without need for resizing. */)
|
||||
(table)
|
||||
Lisp_Object table;
|
||||
(Lisp_Object table)
|
||||
{
|
||||
struct Lisp_Hash_Table *h = check_hash_table (table);
|
||||
return make_number (HASH_TABLE_SIZE (h));
|
||||
|
@ -4667,8 +4575,7 @@ without need for resizing. */)
|
|||
|
||||
DEFUN ("hash-table-test", Fhash_table_test, Shash_table_test, 1, 1, 0,
|
||||
doc: /* Return the test TABLE uses. */)
|
||||
(table)
|
||||
Lisp_Object table;
|
||||
(Lisp_Object table)
|
||||
{
|
||||
return check_hash_table (table)->test;
|
||||
}
|
||||
|
@ -4677,8 +4584,7 @@ DEFUN ("hash-table-test", Fhash_table_test, Shash_table_test, 1, 1, 0,
|
|||
DEFUN ("hash-table-weakness", Fhash_table_weakness, Shash_table_weakness,
|
||||
1, 1, 0,
|
||||
doc: /* Return the weakness of TABLE. */)
|
||||
(table)
|
||||
Lisp_Object table;
|
||||
(Lisp_Object table)
|
||||
{
|
||||
return check_hash_table (table)->weak;
|
||||
}
|
||||
|
@ -4686,8 +4592,7 @@ DEFUN ("hash-table-weakness", Fhash_table_weakness, Shash_table_weakness,
|
|||
|
||||
DEFUN ("hash-table-p", Fhash_table_p, Shash_table_p, 1, 1, 0,
|
||||
doc: /* Return t if OBJ is a Lisp hash table object. */)
|
||||
(obj)
|
||||
Lisp_Object obj;
|
||||
(Lisp_Object obj)
|
||||
{
|
||||
return HASH_TABLE_P (obj) ? Qt : Qnil;
|
||||
}
|
||||
|
@ -4695,8 +4600,7 @@ DEFUN ("hash-table-p", Fhash_table_p, Shash_table_p, 1, 1, 0,
|
|||
|
||||
DEFUN ("clrhash", Fclrhash, Sclrhash, 1, 1, 0,
|
||||
doc: /* Clear hash table TABLE and return it. */)
|
||||
(table)
|
||||
Lisp_Object table;
|
||||
(Lisp_Object table)
|
||||
{
|
||||
hash_clear (check_hash_table (table));
|
||||
/* Be compatible with XEmacs. */
|
||||
|
@ -4707,8 +4611,7 @@ DEFUN ("clrhash", Fclrhash, Sclrhash, 1, 1, 0,
|
|||
DEFUN ("gethash", Fgethash, Sgethash, 2, 3, 0,
|
||||
doc: /* Look up KEY in TABLE and return its associated value.
|
||||
If KEY is not found, return DFLT which defaults to nil. */)
|
||||
(key, table, dflt)
|
||||
Lisp_Object key, table, dflt;
|
||||
(Lisp_Object key, Lisp_Object table, Lisp_Object dflt)
|
||||
{
|
||||
struct Lisp_Hash_Table *h = check_hash_table (table);
|
||||
int i = hash_lookup (h, key, NULL);
|
||||
|
@ -4720,8 +4623,7 @@ DEFUN ("puthash", Fputhash, Sputhash, 3, 3, 0,
|
|||
doc: /* Associate KEY with VALUE in hash table TABLE.
|
||||
If KEY is already present in table, replace its current value with
|
||||
VALUE. */)
|
||||
(key, value, table)
|
||||
Lisp_Object key, value, table;
|
||||
(Lisp_Object key, Lisp_Object value, Lisp_Object table)
|
||||
{
|
||||
struct Lisp_Hash_Table *h = check_hash_table (table);
|
||||
int i;
|
||||
|
@ -4739,8 +4641,7 @@ VALUE. */)
|
|||
|
||||
DEFUN ("remhash", Fremhash, Sremhash, 2, 2, 0,
|
||||
doc: /* Remove KEY from TABLE. */)
|
||||
(key, table)
|
||||
Lisp_Object key, table;
|
||||
(Lisp_Object key, Lisp_Object table)
|
||||
{
|
||||
struct Lisp_Hash_Table *h = check_hash_table (table);
|
||||
hash_remove_from_table (h, key);
|
||||
|
@ -4751,8 +4652,7 @@ DEFUN ("remhash", Fremhash, Sremhash, 2, 2, 0,
|
|||
DEFUN ("maphash", Fmaphash, Smaphash, 2, 2, 0,
|
||||
doc: /* Call FUNCTION for all entries in hash table TABLE.
|
||||
FUNCTION is called with two arguments, KEY and VALUE. */)
|
||||
(function, table)
|
||||
Lisp_Object function, table;
|
||||
(Lisp_Object function, Lisp_Object table)
|
||||
{
|
||||
struct Lisp_Hash_Table *h = check_hash_table (table);
|
||||
Lisp_Object args[3];
|
||||
|
@ -4783,8 +4683,7 @@ both arguments are the same. HASH must be a function taking one
|
|||
argument and return an integer that is the hash code of the argument.
|
||||
Hash code computation should use the whole value range of integers,
|
||||
including negative integers. */)
|
||||
(name, test, hash)
|
||||
Lisp_Object name, test, hash;
|
||||
(Lisp_Object name, Lisp_Object test, Lisp_Object hash)
|
||||
{
|
||||
return Fput (name, Qhash_table_test, list2 (test, hash));
|
||||
}
|
||||
|
@ -4824,8 +4723,7 @@ command `prefer-coding-system') is used.
|
|||
|
||||
If NOERROR is non-nil, silently assume the `raw-text' coding if the
|
||||
guesswork fails. Normally, an error is signaled in such case. */)
|
||||
(object, start, end, coding_system, noerror)
|
||||
Lisp_Object object, start, end, coding_system, noerror;
|
||||
(Lisp_Object object, Lisp_Object start, Lisp_Object end, Lisp_Object coding_system, Lisp_Object noerror)
|
||||
{
|
||||
unsigned char digest[16];
|
||||
unsigned char value[33];
|
||||
|
|
75
src/font.c
75
src/font.c
|
@ -3925,8 +3925,7 @@ Return nil otherwise.
|
|||
Optional 2nd argument EXTRA-TYPE, if non-nil, specifies to check
|
||||
which kind of font it is. It must be one of `font-spec', `font-entity',
|
||||
`font-object'. */)
|
||||
(object, extra_type)
|
||||
Lisp_Object object, extra_type;
|
||||
(Lisp_Object object, Lisp_Object extra_type)
|
||||
{
|
||||
if (NILP (extra_type))
|
||||
return (FONTP (object) ? Qt : Qnil);
|
||||
|
@ -4004,9 +4003,7 @@ be an OpenType font, and whose GPOS table of `thai' script's default
|
|||
language system must contain `mark' feature.
|
||||
|
||||
usage: (font-spec ARGS...) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
Lisp_Object spec = font_make_spec ();
|
||||
int i;
|
||||
|
@ -4047,8 +4044,7 @@ usage: (font-spec ARGS...) */)
|
|||
|
||||
DEFUN ("copy-font-spec", Fcopy_font_spec, Scopy_font_spec, 1, 1, 0,
|
||||
doc: /* Return a copy of FONT as a font-spec. */)
|
||||
(font)
|
||||
Lisp_Object font;
|
||||
(Lisp_Object font)
|
||||
{
|
||||
Lisp_Object new_spec, tail, prev, extra;
|
||||
int i;
|
||||
|
@ -4076,8 +4072,7 @@ DEFUN ("merge-font-spec", Fmerge_font_spec, Smerge_font_spec, 2, 2, 0,
|
|||
doc: /* Merge font-specs FROM and TO, and return a new font-spec.
|
||||
Every specified properties in FROM override the corresponding
|
||||
properties in TO. */)
|
||||
(from, to)
|
||||
Lisp_Object from, to;
|
||||
(Lisp_Object from, Lisp_Object to)
|
||||
{
|
||||
Lisp_Object extra, tail;
|
||||
int i;
|
||||
|
@ -4119,8 +4114,7 @@ representing the OpenType features supported by the font by this form:
|
|||
((SCRIPT (LANGSYS FEATURE ...) ...) ...)
|
||||
SCRIPT, LANGSYS, and FEATURE are all symbols representing OpenType
|
||||
Layout tags. */)
|
||||
(font, key)
|
||||
Lisp_Object font, key;
|
||||
(Lisp_Object font, Lisp_Object key)
|
||||
{
|
||||
int idx;
|
||||
Lisp_Object val;
|
||||
|
@ -4172,8 +4166,7 @@ may be omitted from the list if they are not specified by FONT.
|
|||
|
||||
The optional argument FRAME specifies the frame that the face attributes
|
||||
are to be displayed on. If omitted, the selected frame is used. */)
|
||||
(font, frame)
|
||||
Lisp_Object font, frame;
|
||||
(Lisp_Object font, Lisp_Object frame)
|
||||
{
|
||||
struct frame *f;
|
||||
Lisp_Object plist[10];
|
||||
|
@ -4255,8 +4248,7 @@ allowed in `font-spec'.
|
|||
|
||||
If FONT is a font-entity or a font-object, KEY must not be the one
|
||||
accepted by `font-spec'. */)
|
||||
(font, prop, val)
|
||||
Lisp_Object font, prop, val;
|
||||
(Lisp_Object font, Lisp_Object prop, Lisp_Object val)
|
||||
{
|
||||
int idx;
|
||||
|
||||
|
@ -4287,8 +4279,7 @@ Optional 3rd argument NUM, if non-nil, limits the number of returned fonts.
|
|||
Optional 4th argument PREFER, if non-nil, is a font-spec to
|
||||
control the order of the returned list. Fonts are sorted by
|
||||
how close they are to PREFER. */)
|
||||
(font_spec, frame, num, prefer)
|
||||
Lisp_Object font_spec, frame, num, prefer;
|
||||
(Lisp_Object font_spec, Lisp_Object frame, Lisp_Object num, Lisp_Object prefer)
|
||||
{
|
||||
Lisp_Object vec, list;
|
||||
int n = 0;
|
||||
|
@ -4337,8 +4328,7 @@ how close they are to PREFER. */)
|
|||
DEFUN ("font-family-list", Ffont_family_list, Sfont_family_list, 0, 1, 0,
|
||||
doc: /* List available font families on the current frame.
|
||||
Optional argument FRAME, if non-nil, specifies the target frame. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
FRAME_PTR f;
|
||||
struct font_driver_list *driver_list;
|
||||
|
@ -4367,8 +4357,7 @@ Optional argument FRAME, if non-nil, specifies the target frame. */)
|
|||
DEFUN ("find-font", Ffind_font, Sfind_font, 1, 2, 0,
|
||||
doc: /* Return a font-entity matching with FONT-SPEC on the current frame.
|
||||
Optional 2nd argument FRAME, if non-nil, specifies the target frame. */)
|
||||
(font_spec, frame)
|
||||
Lisp_Object font_spec, frame;
|
||||
(Lisp_Object font_spec, Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object val = Flist_fonts (font_spec, frame, make_number (1), Qnil);
|
||||
|
||||
|
@ -4383,8 +4372,7 @@ FONT is a font-spec, font-entity, or font-object.
|
|||
If the name is too long for XLFD (maximum 255 chars), return nil.
|
||||
If the 2nd optional arg FOLD-WILDCARDS is non-nil,
|
||||
the consecutive wildcards are folded to one. */)
|
||||
(font, fold_wildcards)
|
||||
Lisp_Object font, fold_wildcards;
|
||||
(Lisp_Object font, Lisp_Object fold_wildcards)
|
||||
{
|
||||
char name[256];
|
||||
int pixel_size = 0;
|
||||
|
@ -4424,7 +4412,7 @@ the consecutive wildcards are folded to one. */)
|
|||
|
||||
DEFUN ("clear-font-cache", Fclear_font_cache, Sclear_font_cache, 0, 0, 0,
|
||||
doc: /* Clear font cache. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object list, frame;
|
||||
|
||||
|
@ -4485,8 +4473,7 @@ header of the glyph-string.
|
|||
|
||||
If the shaping was successful, the value is GSTRING itself or a newly
|
||||
created glyph-string. Otherwise, the value is nil. */)
|
||||
(gstring)
|
||||
Lisp_Object gstring;
|
||||
(Lisp_Object gstring)
|
||||
{
|
||||
struct font *font;
|
||||
Lisp_Object font_object, n, glyph;
|
||||
|
@ -4563,8 +4550,7 @@ where
|
|||
VARIATION-SELECTOR is a chracter code of variation selection
|
||||
(#xFE00..#xFE0F or #xE0100..#xE01EF)
|
||||
GLYPH-ID is a glyph code of the corresponding variation glyph. */)
|
||||
(font_object, character)
|
||||
Lisp_Object font_object, character;
|
||||
(Lisp_Object font_object, Lisp_Object character)
|
||||
{
|
||||
unsigned variations[256];
|
||||
struct font *font;
|
||||
|
@ -4632,8 +4618,7 @@ produced in GSTRING-OUT, and the value is nil.
|
|||
|
||||
See the documentation of `font-make-gstring' for the format of
|
||||
glyph-string. */)
|
||||
(otf_features, gstring_in, from, to, gstring_out, index)
|
||||
Lisp_Object otf_features, gstring_in, from, to, gstring_out, index;
|
||||
(Lisp_Object otf_features, Lisp_Object gstring_in, Lisp_Object from, Lisp_Object to, Lisp_Object gstring_out, Lisp_Object index)
|
||||
{
|
||||
Lisp_Object font_object = LGSTRING_FONT (gstring_in);
|
||||
Lisp_Object val;
|
||||
|
@ -4683,8 +4668,7 @@ The value is a list of cons cells of the format (GLYPH-ID . CHARACTER),
|
|||
where GLYPH-ID is a glyph index of the font, and CHARACTER is a
|
||||
character code corresponding to the glyph or nil if there's no
|
||||
corresponding character. */)
|
||||
(font_object, character, otf_features)
|
||||
Lisp_Object font_object, character, otf_features;
|
||||
(Lisp_Object font_object, Lisp_Object character, Lisp_Object otf_features)
|
||||
{
|
||||
struct font *font;
|
||||
Lisp_Object gstring_in, gstring_out, g;
|
||||
|
@ -4725,10 +4709,7 @@ corresponding character. */)
|
|||
|
||||
DEFUN ("open-font", Fopen_font, Sopen_font, 1, 3, 0,
|
||||
doc: /* Open FONT-ENTITY. */)
|
||||
(font_entity, size, frame)
|
||||
Lisp_Object font_entity;
|
||||
Lisp_Object size;
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object font_entity, Lisp_Object size, Lisp_Object frame)
|
||||
{
|
||||
int isize;
|
||||
|
||||
|
@ -4754,8 +4735,7 @@ DEFUN ("open-font", Fopen_font, Sopen_font, 1, 3, 0,
|
|||
|
||||
DEFUN ("close-font", Fclose_font, Sclose_font, 1, 2, 0,
|
||||
doc: /* Close FONT-OBJECT. */)
|
||||
(font_object, frame)
|
||||
Lisp_Object font_object, frame;
|
||||
(Lisp_Object font_object, Lisp_Object frame)
|
||||
{
|
||||
CHECK_FONT_OBJECT (font_object);
|
||||
if (NILP (frame))
|
||||
|
@ -4806,8 +4786,7 @@ representing the default langsys.
|
|||
FEATURE is a symbol representing OpenType feature tag.
|
||||
|
||||
If the font is not OpenType font, CAPABILITY is nil. */)
|
||||
(font_object)
|
||||
Lisp_Object font_object;
|
||||
(Lisp_Object font_object)
|
||||
{
|
||||
struct font *font;
|
||||
Lisp_Object val;
|
||||
|
@ -4847,8 +4826,8 @@ where
|
|||
ADJUSTMENT is always nil.
|
||||
If FONT-OBJECT doesn't have a glyph for a character,
|
||||
the corresponding element is nil. */)
|
||||
(font_object, from, to, object)
|
||||
Lisp_Object font_object, from, to, object;
|
||||
(Lisp_Object font_object, Lisp_Object from, Lisp_Object to,
|
||||
Lisp_Object object)
|
||||
{
|
||||
struct font *font;
|
||||
int i, len, c;
|
||||
|
@ -4949,8 +4928,7 @@ the corresponding element is nil. */)
|
|||
DEFUN ("font-match-p", Ffont_match_p, Sfont_match_p, 2, 2, 0,
|
||||
doc: /* Return t if and only if font-spec SPEC matches with FONT.
|
||||
FONT is a font-spec, font-entity, or font-object. */)
|
||||
(spec, font)
|
||||
Lisp_Object spec, font;
|
||||
(Lisp_Object spec, Lisp_Object font)
|
||||
{
|
||||
CHECK_FONT_SPEC (spec);
|
||||
CHECK_FONT (font);
|
||||
|
@ -4962,8 +4940,7 @@ DEFUN ("font-at", Ffont_at, Sfont_at, 1, 3, 0,
|
|||
doc: /* Return a font-object for displaying a character at POSITION.
|
||||
Optional second arg WINDOW, if non-nil, is a window displaying
|
||||
the current buffer. It defaults to the currently selected window. */)
|
||||
(position, window, string)
|
||||
Lisp_Object position, window, string;
|
||||
(Lisp_Object position, Lisp_Object window, Lisp_Object string)
|
||||
{
|
||||
struct window *w;
|
||||
EMACS_INT pos;
|
||||
|
@ -4996,8 +4973,7 @@ DEFUN ("draw-string", Fdraw_string, Sdraw_string, 2, 2, 0,
|
|||
doc: /* Draw STRING by FONT-OBJECT on the top left corner of the current frame.
|
||||
The value is a number of glyphs drawn.
|
||||
Type C-l to recover what previously shown. */)
|
||||
(font_object, string)
|
||||
Lisp_Object font_object, string;
|
||||
(Lisp_Object font_object, Lisp_Object string)
|
||||
{
|
||||
Lisp_Object frame = selected_frame;
|
||||
FRAME_PTR f = XFRAME (frame);
|
||||
|
@ -5051,8 +5027,7 @@ where
|
|||
RELATIVE-COMPOSE and DEFAULT-ASCENT are the numbers controlling
|
||||
how to compose characters.
|
||||
If the named font is not yet loaded, return nil. */)
|
||||
(name, frame)
|
||||
Lisp_Object name, frame;
|
||||
(Lisp_Object name, Lisp_Object frame)
|
||||
{
|
||||
FRAME_PTR f;
|
||||
struct font *font;
|
||||
|
|
|
@ -1186,8 +1186,7 @@ The value is nil if there is no matching fontset.
|
|||
PATTERN can contain `*' or `?' as a wildcard
|
||||
just as X font name matching algorithm allows.
|
||||
If REGEXPP is non-nil, PATTERN is a regular expression. */)
|
||||
(pattern, regexpp)
|
||||
Lisp_Object pattern, regexpp;
|
||||
(Lisp_Object pattern, Lisp_Object regexpp)
|
||||
{
|
||||
Lisp_Object fontset;
|
||||
int id;
|
||||
|
@ -1435,8 +1434,7 @@ Optional 5th argument ADD, if non-nil, specifies how to add FONT-SPEC
|
|||
to the font specifications for TARGET previously set. If it is
|
||||
`prepend', FONT-SPEC is prepended. If it is `append', FONT-SPEC is
|
||||
appended. By default, FONT-SPEC overrides the previous settings. */)
|
||||
(name, target, font_spec, frame, add)
|
||||
Lisp_Object name, target, font_spec, frame, add;
|
||||
(Lisp_Object name, Lisp_Object target, Lisp_Object font_spec, Lisp_Object frame, Lisp_Object add)
|
||||
{
|
||||
Lisp_Object fontset;
|
||||
Lisp_Object font_def, registry, family;
|
||||
|
@ -1645,8 +1643,7 @@ char-table `char-script-table'.
|
|||
|
||||
FONT-SPEC is a vector, a cons, or a string. See the documentation of
|
||||
`set-fontset-font' for the meaning. */)
|
||||
(name, fontlist)
|
||||
Lisp_Object name, fontlist;
|
||||
(Lisp_Object name, Lisp_Object fontlist)
|
||||
{
|
||||
Lisp_Object fontset;
|
||||
int id;
|
||||
|
@ -1821,8 +1818,7 @@ update_auto_fontset_alist (Lisp_Object font_object, Lisp_Object fontset)
|
|||
|
||||
DEFUN ("internal-char-font", Finternal_char_font, Sinternal_char_font, 1, 2, 0,
|
||||
doc: /* For internal use only. */)
|
||||
(position, ch)
|
||||
Lisp_Object position, ch;
|
||||
(Lisp_Object position, Lisp_Object ch)
|
||||
{
|
||||
EMACS_INT pos, pos_byte, dummy;
|
||||
int face_id;
|
||||
|
@ -1912,8 +1908,7 @@ The char-table has one extra slot. If FONTSET is not the default
|
|||
fontset, the value the extra slot is a char-table containing the
|
||||
information about the derived fonts from the default fontset. The
|
||||
format is the same as above. */)
|
||||
(fontset, frame)
|
||||
Lisp_Object fontset, frame;
|
||||
(Lisp_Object fontset, Lisp_Object frame)
|
||||
{
|
||||
FRAME_PTR f;
|
||||
Lisp_Object *realized[2], fontsets[2], tables[2];
|
||||
|
@ -2048,8 +2043,7 @@ fontset.
|
|||
|
||||
If the 2nd optional arg ALL is non-nil, return a list of all font name
|
||||
patterns. */)
|
||||
(name, ch, all)
|
||||
Lisp_Object name, ch, all;
|
||||
(Lisp_Object name, Lisp_Object ch, Lisp_Object all)
|
||||
{
|
||||
int c;
|
||||
Lisp_Object fontset, elt, list, repertory, val;
|
||||
|
@ -2109,7 +2103,7 @@ patterns. */)
|
|||
|
||||
DEFUN ("fontset-list", Ffontset_list, Sfontset_list, 0, 0, 0,
|
||||
doc: /* Return a list of all defined fontset names. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object fontset, list;
|
||||
int i;
|
||||
|
@ -2166,7 +2160,7 @@ dump_fontset (fontset)
|
|||
|
||||
DEFUN ("fontset-list-all", Ffontset_list_all, Sfontset_list_all, 0, 0, 0,
|
||||
doc: /* Return a brief summary of all fontsets for debug use. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object val;
|
||||
int i;
|
||||
|
|
123
src/frame.c
123
src/frame.c
|
@ -213,8 +213,7 @@ Value is t for a termcap frame (a character-only terminal),
|
|||
`ns' for an Emacs frame on a GNUstep or Macintosh Cocoa display,
|
||||
`pc' for a direct-write MS-DOS frame.
|
||||
See also `frame-live-p'. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (!FRAMEP (object))
|
||||
return Qnil;
|
||||
|
@ -244,8 +243,7 @@ Value is nil if OBJECT is not a live frame. If object is a live
|
|||
frame, the return value indicates what sort of terminal device it is
|
||||
displayed on. See the documentation of `framep' for possible
|
||||
return values. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
return ((FRAMEP (object)
|
||||
&& FRAME_LIVE_P (XFRAME (object)))
|
||||
|
@ -259,8 +257,7 @@ The value is a symbol---for instance, 'x' for X windows.
|
|||
The value is nil if Emacs is using a text-only terminal.
|
||||
|
||||
FRAME defaults to the currently selected frame. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object type;
|
||||
if (NILP (frame))
|
||||
|
@ -658,8 +655,7 @@ and the `tty-type' parameter specifies the terminal type. Example:
|
|||
|
||||
Note that changing the size of one terminal frame automatically
|
||||
affects all frames on the same terminal device. */)
|
||||
(parms)
|
||||
Lisp_Object parms;
|
||||
(Lisp_Object parms)
|
||||
{
|
||||
struct frame *f;
|
||||
struct terminal *t = NULL;
|
||||
|
@ -886,8 +882,7 @@ the window system's input focus. On a text-only terminal, the
|
|||
next redisplay will display FRAME.
|
||||
|
||||
This function returns FRAME, or nil if FRAME has been deleted. */)
|
||||
(frame, norecord)
|
||||
Lisp_Object frame, norecord;
|
||||
(Lisp_Object frame, Lisp_Object norecord)
|
||||
{
|
||||
return do_switch_frame (frame, 1, 0, norecord);
|
||||
}
|
||||
|
@ -902,8 +897,7 @@ This function selects the selected window of the frame of EVENT.
|
|||
|
||||
If EVENT is frame object, handle it as if it were a switch-frame event
|
||||
to that frame. */)
|
||||
(event)
|
||||
Lisp_Object event;
|
||||
(Lisp_Object event)
|
||||
{
|
||||
/* Preserve prefix arg that the command loop just cleared. */
|
||||
current_kboard->Vprefix_arg = Vcurrent_prefix_arg;
|
||||
|
@ -913,15 +907,14 @@ to that frame. */)
|
|||
|
||||
DEFUN ("selected-frame", Fselected_frame, Sselected_frame, 0, 0, 0,
|
||||
doc: /* Return the frame that is now selected. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return selected_frame;
|
||||
}
|
||||
|
||||
DEFUN ("window-frame", Fwindow_frame, Swindow_frame, 1, 1, 0,
|
||||
doc: /* Return the frame object that window WINDOW is on. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
CHECK_LIVE_WINDOW (window);
|
||||
return XWINDOW (window)->frame;
|
||||
|
@ -930,8 +923,7 @@ DEFUN ("window-frame", Fwindow_frame, Swindow_frame, 1, 1, 0,
|
|||
DEFUN ("frame-first-window", Fframe_first_window, Sframe_first_window, 0, 1, 0,
|
||||
doc: /* Returns the topmost, leftmost window of FRAME.
|
||||
If omitted, FRAME defaults to the currently selected frame. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object w;
|
||||
|
||||
|
@ -957,7 +949,7 @@ If omitted, FRAME defaults to the currently selected frame. */)
|
|||
DEFUN ("active-minibuffer-window", Factive_minibuffer_window,
|
||||
Sactive_minibuffer_window, 0, 0, 0,
|
||||
doc: /* Return the currently active minibuffer window, or nil if none. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return minibuf_level ? minibuf_window : Qnil;
|
||||
}
|
||||
|
@ -965,8 +957,7 @@ DEFUN ("active-minibuffer-window", Factive_minibuffer_window,
|
|||
DEFUN ("frame-root-window", Fframe_root_window, Sframe_root_window, 0, 1, 0,
|
||||
doc: /* Returns the root-window of FRAME.
|
||||
If omitted, FRAME defaults to the currently selected frame. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object window;
|
||||
|
||||
|
@ -985,8 +976,7 @@ DEFUN ("frame-selected-window", Fframe_selected_window,
|
|||
Sframe_selected_window, 0, 1, 0,
|
||||
doc: /* Return the selected window of FRAME.
|
||||
FRAME defaults to the currently selected frame. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object window;
|
||||
|
||||
|
@ -1009,8 +999,7 @@ selected frame, this makes WINDOW the selected window.
|
|||
Optional argument NORECORD non-nil means to neither change the
|
||||
order of recently selected windows nor the buffer list.
|
||||
Return WINDOW. */)
|
||||
(frame, window, norecord)
|
||||
Lisp_Object frame, window, norecord;
|
||||
(Lisp_Object frame, Lisp_Object window, Lisp_Object norecord)
|
||||
{
|
||||
if (NILP (frame))
|
||||
frame = selected_frame;
|
||||
|
@ -1031,7 +1020,7 @@ Return WINDOW. */)
|
|||
DEFUN ("frame-list", Fframe_list, Sframe_list,
|
||||
0, 0, 0,
|
||||
doc: /* Return a list of all live frames. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object frames;
|
||||
frames = Fcopy_sequence (Vframe_list);
|
||||
|
@ -1212,8 +1201,7 @@ and any frame now using that window as the minibuffer.
|
|||
If MINIFRAME is `visible', include all visible frames.
|
||||
If MINIFRAME is 0, include all visible and iconified frames.
|
||||
Otherwise, include all frames. */)
|
||||
(frame, miniframe)
|
||||
Lisp_Object frame, miniframe;
|
||||
(Lisp_Object frame, Lisp_Object miniframe)
|
||||
{
|
||||
if (NILP (frame))
|
||||
frame = selected_frame;
|
||||
|
@ -1233,8 +1221,7 @@ and any frame now using that window as the minibuffer.
|
|||
If MINIFRAME is `visible', include all visible frames.
|
||||
If MINIFRAME is 0, include all visible and iconified frames.
|
||||
Otherwise, include all frames. */)
|
||||
(frame, miniframe)
|
||||
Lisp_Object frame, miniframe;
|
||||
(Lisp_Object frame, Lisp_Object miniframe)
|
||||
{
|
||||
if (NILP (frame))
|
||||
frame = selected_frame;
|
||||
|
@ -1631,8 +1618,7 @@ but if the second optional argument FORCE is non-nil, you may do so.
|
|||
This function runs `delete-frame-functions' before actually
|
||||
deleting the frame, unless the frame is a tooltip.
|
||||
The functions are run with one argument, the frame to be deleted. */)
|
||||
(frame, force)
|
||||
Lisp_Object frame, force;
|
||||
(Lisp_Object frame, Lisp_Object force)
|
||||
{
|
||||
return delete_frame (frame, !NILP (force) ? Qt : Qnil);
|
||||
}
|
||||
|
@ -1651,7 +1637,7 @@ and nil for X and Y.
|
|||
If `mouse-position-function' is non-nil, `mouse-position' calls it,
|
||||
passing the normal return value to that function as an argument,
|
||||
and returns whatever that function returns. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
FRAME_PTR f;
|
||||
Lisp_Object lispy_dummy;
|
||||
|
@ -1697,7 +1683,7 @@ the vertical offset.
|
|||
If Emacs is running on a mouseless terminal or hasn't been programmed
|
||||
to read the mouse position, it returns the selected frame for FRAME
|
||||
and nil for X and Y. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
FRAME_PTR f;
|
||||
Lisp_Object lispy_dummy;
|
||||
|
@ -1734,8 +1720,7 @@ This function is a no-op for an X frame that is not visible.
|
|||
If you have just created a frame, you must wait for it to become visible
|
||||
before calling this function on it, like this.
|
||||
(while (not (frame-visible-p frame)) (sleep-for .5)) */)
|
||||
(frame, x, y)
|
||||
Lisp_Object frame, x, y;
|
||||
(Lisp_Object frame, Lisp_Object x, Lisp_Object y)
|
||||
{
|
||||
CHECK_LIVE_FRAME (frame);
|
||||
CHECK_NUMBER (x);
|
||||
|
@ -1776,8 +1761,7 @@ Note, this is a no-op for an X frame that is not visible.
|
|||
If you have just created a frame, you must wait for it to become visible
|
||||
before calling this function on it, like this.
|
||||
(while (not (frame-visible-p frame)) (sleep-for .5)) */)
|
||||
(frame, x, y)
|
||||
Lisp_Object frame, x, y;
|
||||
(Lisp_Object frame, Lisp_Object x, Lisp_Object y)
|
||||
{
|
||||
CHECK_LIVE_FRAME (frame);
|
||||
CHECK_NUMBER (x);
|
||||
|
@ -1814,8 +1798,7 @@ DEFUN ("make-frame-visible", Fmake_frame_visible, Smake_frame_visible,
|
|||
0, 1, "",
|
||||
doc: /* Make the frame FRAME visible (assuming it is an X window).
|
||||
If omitted, FRAME defaults to the currently selected frame. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
if (NILP (frame))
|
||||
frame = selected_frame;
|
||||
|
@ -1874,8 +1857,7 @@ but if the second optional argument FORCE is non-nil, you may do so.
|
|||
This function has no effect on text-only terminal frames. Such frames
|
||||
are always considered visible, whether or not they are currently being
|
||||
displayed in the terminal. */)
|
||||
(frame, force)
|
||||
Lisp_Object frame, force;
|
||||
(Lisp_Object frame, Lisp_Object force)
|
||||
{
|
||||
if (NILP (frame))
|
||||
frame = selected_frame;
|
||||
|
@ -1916,8 +1898,7 @@ DEFUN ("iconify-frame", Ficonify_frame, Siconify_frame,
|
|||
0, 1, "",
|
||||
doc: /* Make the frame FRAME into an icon.
|
||||
If omitted, FRAME defaults to the currently selected frame. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
if (NILP (frame))
|
||||
frame = selected_frame;
|
||||
|
@ -1962,8 +1943,7 @@ usually not displayed at all, even in a window system's \"taskbar\".
|
|||
If FRAME is a text-only terminal frame, this always returns t.
|
||||
Such frames are always considered visible, whether or not they are
|
||||
currently being displayed on the terminal. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
CHECK_LIVE_FRAME (frame);
|
||||
|
||||
|
@ -1979,7 +1959,7 @@ currently being displayed on the terminal. */)
|
|||
DEFUN ("visible-frame-list", Fvisible_frame_list, Svisible_frame_list,
|
||||
0, 0, 0,
|
||||
doc: /* Return a list of all frames now \"visible\" (being updated). */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object tail, frame;
|
||||
struct frame *f;
|
||||
|
@ -2005,8 +1985,7 @@ If FRAME is invisible or iconified, make it visible.
|
|||
If you don't specify a frame, the selected frame is used.
|
||||
If Emacs is displaying on an ordinary terminal or some other device which
|
||||
doesn't support multiple overlapping frames, this function selects FRAME. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
struct frame *f;
|
||||
if (NILP (frame))
|
||||
|
@ -2035,8 +2014,7 @@ DEFUN ("lower-frame", Flower_frame, Slower_frame, 0, 1, "",
|
|||
If you don't specify a frame, the selected frame is used.
|
||||
If Emacs is displaying on an ordinary terminal or some other device which
|
||||
doesn't support multiple overlapping frames, this function does nothing. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
struct frame *f;
|
||||
|
||||
|
@ -2079,8 +2057,7 @@ differently from a frame whose focus is redirected to nil; the former
|
|||
is affected by `select-frame', while the latter is not.
|
||||
|
||||
The redirection lasts until `redirect-frame-focus' is called to change it. */)
|
||||
(frame, focus_frame)
|
||||
Lisp_Object frame, focus_frame;
|
||||
(Lisp_Object frame, Lisp_Object focus_frame)
|
||||
{
|
||||
struct frame *f;
|
||||
|
||||
|
@ -2107,8 +2084,7 @@ DEFUN ("frame-focus", Fframe_focus, Sframe_focus, 1, 1, 0,
|
|||
doc: /* Return the frame to which FRAME's keystrokes are currently being sent.
|
||||
This returns nil if FRAME's focus is not redirected.
|
||||
See `redirect-frame-focus'. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
CHECK_LIVE_FRAME (frame);
|
||||
|
||||
|
@ -2329,8 +2305,7 @@ DEFUN ("frame-parameters", Fframe_parameters, Sframe_parameters, 0, 1, 0,
|
|||
It is a list of elements of the form (PARM . VALUE), where PARM is a symbol.
|
||||
The meaningful PARMs depend on the kind of frame.
|
||||
If FRAME is omitted, return information on the currently selected frame. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object alist;
|
||||
FRAME_PTR f;
|
||||
|
@ -2427,8 +2402,7 @@ If FRAME is omitted, return information on the currently selected frame. */)
|
|||
DEFUN ("frame-parameter", Fframe_parameter, Sframe_parameter, 2, 2, 0,
|
||||
doc: /* Return FRAME's value for parameter PARAMETER.
|
||||
If FRAME is nil, describe the currently selected frame. */)
|
||||
(frame, parameter)
|
||||
Lisp_Object frame, parameter;
|
||||
(Lisp_Object frame, Lisp_Object parameter)
|
||||
{
|
||||
struct frame *f;
|
||||
Lisp_Object value;
|
||||
|
@ -2518,8 +2492,7 @@ as a frame-local binding for the variable FOO, if you have
|
|||
enabled such bindings for that variable with `make-variable-frame-local'.
|
||||
Note that this functionality is obsolete as of Emacs 22.2, and its
|
||||
use is not recommended. Explicitly check for a frame-parameter instead. */)
|
||||
(frame, alist)
|
||||
Lisp_Object frame, alist;
|
||||
(Lisp_Object frame, Lisp_Object alist)
|
||||
{
|
||||
FRAME_PTR f;
|
||||
register Lisp_Object tail, prop, val;
|
||||
|
@ -2584,8 +2557,7 @@ DEFUN ("frame-char-height", Fframe_char_height, Sframe_char_height,
|
|||
doc: /* Height in pixels of a line in the font in frame FRAME.
|
||||
If FRAME is omitted, the selected frame is used.
|
||||
For a terminal frame, the value is always 1. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
struct frame *f;
|
||||
|
||||
|
@ -2609,8 +2581,7 @@ DEFUN ("frame-char-width", Fframe_char_width, Sframe_char_width,
|
|||
If FRAME is omitted, the selected frame is used.
|
||||
On a graphical screen, the width is the standard width of the default font.
|
||||
For a terminal screen, the value is always 1. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
struct frame *f;
|
||||
|
||||
|
@ -2646,8 +2617,7 @@ and menu bar.
|
|||
For a text-only terminal, it includes the menu bar. In this case, the
|
||||
result is really in characters rather than pixels (i.e., is identical
|
||||
to `frame-height'). */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
struct frame *f;
|
||||
|
||||
|
@ -2669,8 +2639,7 @@ DEFUN ("frame-pixel-width", Fframe_pixel_width,
|
|||
doc: /* Return FRAME's width in pixels.
|
||||
For a terminal frame, the result really gives the width in characters.
|
||||
If FRAME is omitted, the selected frame is used. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
struct frame *f;
|
||||
|
||||
|
@ -2691,8 +2660,7 @@ DEFUN ("set-frame-height", Fset_frame_height, Sset_frame_height, 2, 3, 0,
|
|||
doc: /* Specify that the frame FRAME has LINES lines.
|
||||
Optional third arg non-nil means that redisplay should use LINES lines
|
||||
but that the idea of the actual height of the frame should not be changed. */)
|
||||
(frame, lines, pretend)
|
||||
Lisp_Object frame, lines, pretend;
|
||||
(Lisp_Object frame, Lisp_Object lines, Lisp_Object pretend)
|
||||
{
|
||||
register struct frame *f;
|
||||
|
||||
|
@ -2720,8 +2688,7 @@ DEFUN ("set-frame-width", Fset_frame_width, Sset_frame_width, 2, 3, 0,
|
|||
doc: /* Specify that the frame FRAME has COLS columns.
|
||||
Optional third arg non-nil means that redisplay should use COLS columns
|
||||
but that the idea of the actual width of the frame should not be changed. */)
|
||||
(frame, cols, pretend)
|
||||
Lisp_Object frame, cols, pretend;
|
||||
(Lisp_Object frame, Lisp_Object cols, Lisp_Object pretend)
|
||||
{
|
||||
register struct frame *f;
|
||||
CHECK_NUMBER (cols);
|
||||
|
@ -2746,8 +2713,7 @@ but that the idea of the actual width of the frame should not be changed. */)
|
|||
|
||||
DEFUN ("set-frame-size", Fset_frame_size, Sset_frame_size, 3, 3, 0,
|
||||
doc: /* Sets size of FRAME to COLS by ROWS, measured in characters. */)
|
||||
(frame, cols, rows)
|
||||
Lisp_Object frame, cols, rows;
|
||||
(Lisp_Object frame, Lisp_Object cols, Lisp_Object rows)
|
||||
{
|
||||
register struct frame *f;
|
||||
|
||||
|
@ -2779,8 +2745,7 @@ DEFUN ("set-frame-position", Fset_frame_position,
|
|||
This is actually the position of the upper left corner of the frame.
|
||||
Negative values for XOFFSET or YOFFSET are interpreted relative to
|
||||
the rightmost or bottommost possible position (that stays within the screen). */)
|
||||
(frame, xoffset, yoffset)
|
||||
Lisp_Object frame, xoffset, yoffset;
|
||||
(Lisp_Object frame, Lisp_Object xoffset, Lisp_Object yoffset)
|
||||
{
|
||||
register struct frame *f;
|
||||
|
||||
|
@ -3833,8 +3798,7 @@ The optional arguments COMPONENT and SUBCLASS add to the key and the
|
|||
class, respectively. You must specify both of them or neither.
|
||||
If you specify them, the key is `INSTANCE.COMPONENT.ATTRIBUTE'
|
||||
and the class is `Emacs.CLASS.SUBCLASS'. */)
|
||||
(attribute, class, component, subclass)
|
||||
Lisp_Object attribute, class, component, subclass;
|
||||
(Lisp_Object attribute, Lisp_Object class, Lisp_Object component, Lisp_Object subclass)
|
||||
{
|
||||
#ifdef HAVE_X_WINDOWS
|
||||
check_x ();
|
||||
|
@ -4047,8 +4011,7 @@ For X, the value of `left' or `top' may be an integer,
|
|||
or a list (+ N) meaning N pixels relative to top/left corner,
|
||||
or a list (- N) meaning -N pixels relative to bottom/right corner.
|
||||
On Nextstep, this just calls `ns-parse-geometry'. */)
|
||||
(string)
|
||||
Lisp_Object string;
|
||||
(Lisp_Object string)
|
||||
{
|
||||
#ifdef HAVE_NS
|
||||
call1 (Qns_parse_geometry, string);
|
||||
|
|
12
src/fringe.c
12
src/fringe.c
|
@ -1276,8 +1276,7 @@ DEFUN ("destroy-fringe-bitmap", Fdestroy_fringe_bitmap, Sdestroy_fringe_bitmap,
|
|||
1, 1, 0,
|
||||
doc: /* Destroy fringe bitmap BITMAP.
|
||||
If BITMAP overrides a standard fringe bitmap, the original bitmap is restored. */)
|
||||
(bitmap)
|
||||
Lisp_Object bitmap;
|
||||
(Lisp_Object bitmap)
|
||||
{
|
||||
int n;
|
||||
|
||||
|
@ -1388,8 +1387,7 @@ is used; the default is to center the bitmap. Fifth arg may also be a
|
|||
list (ALIGN PERIODIC) where PERIODIC non-nil specifies that the bitmap
|
||||
should be repeated.
|
||||
If BITMAP already exists, the existing definition is replaced. */)
|
||||
(bitmap, bits, height, width, align)
|
||||
Lisp_Object bitmap, bits, height, width, align;
|
||||
(Lisp_Object bitmap, Lisp_Object bits, Lisp_Object height, Lisp_Object width, Lisp_Object align)
|
||||
{
|
||||
int n, h, i, j;
|
||||
unsigned short *b;
|
||||
|
@ -1520,8 +1518,7 @@ DEFUN ("set-fringe-bitmap-face", Fset_fringe_bitmap_face, Sset_fringe_bitmap_fac
|
|||
1, 2, 0,
|
||||
doc: /* Set face for fringe bitmap BITMAP to FACE.
|
||||
If FACE is nil, reset face to default fringe face. */)
|
||||
(bitmap, face)
|
||||
Lisp_Object bitmap, face;
|
||||
(Lisp_Object bitmap, Lisp_Object face)
|
||||
{
|
||||
int n;
|
||||
int face_id;
|
||||
|
@ -1553,8 +1550,7 @@ is the symbol for the bitmap in the left fringe (or nil if no bitmap),
|
|||
RIGHT is similar for the right fringe, and OV is non-nil if there is an
|
||||
overlay arrow in the left fringe.
|
||||
Return nil if POS is not visible in WINDOW. */)
|
||||
(pos, window)
|
||||
Lisp_Object pos, window;
|
||||
(Lisp_Object pos, Lisp_Object window)
|
||||
{
|
||||
struct window *w;
|
||||
struct glyph_row *row;
|
||||
|
|
24
src/image.c
24
src/image.c
|
@ -926,8 +926,7 @@ PIXELS non-nil means return the size in pixels, otherwise return the
|
|||
size in canonical character units.
|
||||
FRAME is the frame on which the image will be displayed. FRAME nil
|
||||
or omitted means use the selected frame. */)
|
||||
(spec, pixels, frame)
|
||||
Lisp_Object spec, pixels, frame;
|
||||
(Lisp_Object spec, Lisp_Object pixels, Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object size;
|
||||
|
||||
|
@ -957,8 +956,7 @@ DEFUN ("image-mask-p", Fimage_mask_p, Simage_mask_p, 1, 2, 0,
|
|||
doc: /* Return t if image SPEC has a mask bitmap.
|
||||
FRAME is the frame on which the image will be displayed. FRAME nil
|
||||
or omitted means use the selected frame. */)
|
||||
(spec, frame)
|
||||
Lisp_Object spec, frame;
|
||||
(Lisp_Object spec, Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object mask;
|
||||
|
||||
|
@ -981,8 +979,7 @@ DEFUN ("image-metadata", Fimage_metadata, Simage_metadata, 1, 2, 0,
|
|||
doc: /* Return metadata for image SPEC.
|
||||
FRAME is the frame on which the image will be displayed. FRAME nil
|
||||
or omitted means use the selected frame. */)
|
||||
(spec, frame)
|
||||
Lisp_Object spec, frame;
|
||||
(Lisp_Object spec, Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object ext;
|
||||
|
||||
|
@ -1610,8 +1607,7 @@ FILTER nil or a frame means clear all images in the selected frame.
|
|||
FILTER t means clear the image caches of all frames.
|
||||
Anything else, means only clear those images which refer to FILTER,
|
||||
which is then usually a filename. */)
|
||||
(filter)
|
||||
Lisp_Object filter;
|
||||
(Lisp_Object filter)
|
||||
{
|
||||
if (!(EQ (filter, Qnil) || FRAMEP (filter)))
|
||||
clear_image_caches (filter);
|
||||
|
@ -1631,8 +1627,7 @@ current contents of that file.
|
|||
|
||||
FRAME nil or omitted means use the selected frame.
|
||||
FRAME t means refresh the image on all frames. */)
|
||||
(spec, frame)
|
||||
Lisp_Object spec, frame;
|
||||
(Lisp_Object spec, Lisp_Object frame)
|
||||
{
|
||||
if (!valid_image_p (spec))
|
||||
error ("Invalid image specification");
|
||||
|
@ -8049,16 +8044,14 @@ x_kill_gs_process (Pixmap pixmap, struct frame *f)
|
|||
|
||||
DEFUN ("imagep", Fimagep, Simagep, 1, 1, 0,
|
||||
doc: /* Value is non-nil if SPEC is a valid image specification. */)
|
||||
(spec)
|
||||
Lisp_Object spec;
|
||||
(Lisp_Object spec)
|
||||
{
|
||||
return valid_image_p (spec) ? Qt : Qnil;
|
||||
}
|
||||
|
||||
|
||||
DEFUN ("lookup-image", Flookup_image, Slookup_image, 1, 1, 0, "")
|
||||
(spec)
|
||||
Lisp_Object spec;
|
||||
(Lisp_Object spec)
|
||||
{
|
||||
int id = -1;
|
||||
|
||||
|
@ -8093,8 +8086,7 @@ Return non-nil if TYPE is a supported image type.
|
|||
Image types pbm and xbm are prebuilt; other types are loaded here.
|
||||
Libraries to load are specified in alist LIBRARIES (usually, the value
|
||||
of `image-library-alist', which see). */)
|
||||
(type, libraries)
|
||||
Lisp_Object type, libraries;
|
||||
(Lisp_Object type, Lisp_Object libraries)
|
||||
{
|
||||
Lisp_Object tested;
|
||||
|
||||
|
|
17
src/indent.c
17
src/indent.c
|
@ -312,7 +312,7 @@ Whether the line is visible (if `selective-display' is t) has no effect;
|
|||
however, ^M is treated as end of line when `selective-display' is t.
|
||||
Text that has an invisible property is considered as having width 0, unless
|
||||
`buffer-invisibility-spec' specifies that it is replaced by an ellipsis. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object temp;
|
||||
XSETFASTINT (temp, (int) current_column ()); /* iftc */
|
||||
|
@ -812,8 +812,7 @@ Optional second argument MINIMUM says always do at least MINIMUM spaces
|
|||
even if that goes past COLUMN; by default, MINIMUM is zero.
|
||||
|
||||
The return value is COLUMN. */)
|
||||
(column, minimum)
|
||||
Lisp_Object column, minimum;
|
||||
(Lisp_Object column, Lisp_Object minimum)
|
||||
{
|
||||
int mincol;
|
||||
register int fromcol;
|
||||
|
@ -864,7 +863,7 @@ DEFUN ("current-indentation", Fcurrent_indentation, Scurrent_indentation,
|
|||
doc: /* Return the indentation of the current line.
|
||||
This is the horizontal position of the character
|
||||
following any initial whitespace. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object val;
|
||||
int opoint = PT, opoint_byte = PT_BYTE;
|
||||
|
@ -998,8 +997,7 @@ In addition, if FORCE is t, and the line is too short to reach
|
|||
COLUMN, add spaces/tabs to get there.
|
||||
|
||||
The return value is the current column. */)
|
||||
(column, force)
|
||||
Lisp_Object column, force;
|
||||
(Lisp_Object column, Lisp_Object force)
|
||||
{
|
||||
EMACS_INT pos;
|
||||
EMACS_INT col, prev_col;
|
||||
|
@ -1757,9 +1755,7 @@ of a certain window, pass the window's starting location as FROM
|
|||
and the window's upper-left coordinates as FROMPOS.
|
||||
Pass the buffer's (point-max) as TO, to limit the scan to the end of the
|
||||
visible section of the buffer, and pass LINE and COL as TOPOS. */)
|
||||
(from, frompos, to, topos, width, offsets, window)
|
||||
Lisp_Object from, frompos, to, topos;
|
||||
Lisp_Object width, offsets, window;
|
||||
(Lisp_Object from, Lisp_Object frompos, Lisp_Object to, Lisp_Object topos, Lisp_Object width, Lisp_Object offsets, Lisp_Object window)
|
||||
{
|
||||
struct window *w;
|
||||
Lisp_Object bufpos, hpos, vpos, prevhpos;
|
||||
|
@ -2001,8 +1997,7 @@ regardless of which buffer is displayed in WINDOW.
|
|||
This is consistent with other cursor motion functions
|
||||
and makes it possible to use `vertical-motion' in any buffer,
|
||||
whether or not it is currently displayed in some window. */)
|
||||
(lines, window)
|
||||
Lisp_Object lines, window;
|
||||
(Lisp_Object lines, Lisp_Object window)
|
||||
{
|
||||
struct it it;
|
||||
struct text_pos pt;
|
||||
|
|
|
@ -2267,7 +2267,7 @@ Fcombine_after_change_execute_1 (Lisp_Object val)
|
|||
DEFUN ("combine-after-change-execute", Fcombine_after_change_execute,
|
||||
Scombine_after_change_execute, 0, 0, 0,
|
||||
doc: /* This function is for use internally in `combine-after-change-calls'. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
int count = SPECPDL_INDEX ();
|
||||
EMACS_INT beg, end, change;
|
||||
|
|
|
@ -975,7 +975,7 @@ To get out of the recursive edit, a command can do `(throw 'exit nil)';
|
|||
that tells this function to return.
|
||||
Alternatively, `(throw 'exit t)' makes this function signal an error.
|
||||
This function is called by the editor initialization to begin editing. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
int count = SPECPDL_INDEX ();
|
||||
Lisp_Object buffer;
|
||||
|
@ -1366,7 +1366,7 @@ top_level_1 (Lisp_Object ignore)
|
|||
DEFUN ("top-level", Ftop_level, Stop_level, 0, 0, "",
|
||||
doc: /* Exit all recursive editing levels.
|
||||
This also exits all active minibuffers. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
#ifdef HAVE_WINDOW_SYSTEM
|
||||
if (display_hourglass_p)
|
||||
|
@ -1383,7 +1383,7 @@ This also exits all active minibuffers. */)
|
|||
|
||||
DEFUN ("exit-recursive-edit", Fexit_recursive_edit, Sexit_recursive_edit, 0, 0, "",
|
||||
doc: /* Exit from the innermost recursive edit or minibuffer. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (command_loop_level > 0 || minibuf_level > 0)
|
||||
Fthrow (Qexit, Qnil);
|
||||
|
@ -1394,7 +1394,7 @@ DEFUN ("exit-recursive-edit", Fexit_recursive_edit, Sexit_recursive_edit, 0, 0,
|
|||
|
||||
DEFUN ("abort-recursive-edit", Fabort_recursive_edit, Sabort_recursive_edit, 0, 0, "",
|
||||
doc: /* Abort the command that requested this recursive edit or minibuffer input. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (command_loop_level > 0 || minibuf_level > 0)
|
||||
Fthrow (Qexit, Qt);
|
||||
|
@ -1435,8 +1435,7 @@ Within a `track-mouse' form, mouse motion generates input events that
|
|||
you can read with `read-event'.
|
||||
Normally, mouse motion is ignored.
|
||||
usage: (track-mouse BODY...) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
int count = SPECPDL_INDEX ();
|
||||
Lisp_Object val;
|
||||
|
@ -4612,7 +4611,7 @@ The value when Emacs is not idle is nil.
|
|||
|
||||
The microsecond count is zero on systems that do not provide
|
||||
resolution finer than a second. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (! EMACS_TIME_NEG_P (timer_idleness_start_time))
|
||||
{
|
||||
|
@ -6429,8 +6428,7 @@ parse_modifiers (Lisp_Object symbol)
|
|||
DEFUN ("internal-event-symbol-parse-modifiers", Fevent_symbol_parse_modifiers,
|
||||
Sevent_symbol_parse_modifiers, 1, 1, 0,
|
||||
doc: /* Parse the event symbol. For internal use. */)
|
||||
(symbol)
|
||||
Lisp_Object symbol;
|
||||
(Lisp_Object symbol)
|
||||
{
|
||||
/* Fill the cache if needed. */
|
||||
parse_modifiers (symbol);
|
||||
|
@ -6659,8 +6657,7 @@ and zero or more modifier names (control, meta, hyper, super, shift, alt,
|
|||
drag, down, double or triple). The base must be last.
|
||||
The return value is an event type (a character or symbol) which
|
||||
has the same base event type and all the specified modifiers. */)
|
||||
(event_desc)
|
||||
Lisp_Object event_desc;
|
||||
(Lisp_Object event_desc)
|
||||
{
|
||||
Lisp_Object base;
|
||||
int modifiers = 0;
|
||||
|
@ -10127,10 +10124,7 @@ The optional fifth argument COMMAND-LOOP, if non-nil, means
|
|||
that this key sequence is being read by something that will
|
||||
read commands one after another. It should be nil if the caller
|
||||
will read just one key sequence. */)
|
||||
(prompt, continue_echo, dont_downcase_last, can_return_switch_frame,
|
||||
command_loop)
|
||||
Lisp_Object prompt, continue_echo, dont_downcase_last;
|
||||
Lisp_Object can_return_switch_frame, command_loop;
|
||||
(Lisp_Object prompt, Lisp_Object continue_echo, Lisp_Object dont_downcase_last, Lisp_Object can_return_switch_frame, Lisp_Object command_loop)
|
||||
{
|
||||
Lisp_Object keybuf[30];
|
||||
register int i;
|
||||
|
@ -10187,10 +10181,7 @@ will read just one key sequence. */)
|
|||
DEFUN ("read-key-sequence-vector", Fread_key_sequence_vector,
|
||||
Sread_key_sequence_vector, 1, 5, 0,
|
||||
doc: /* Like `read-key-sequence' but always return a vector. */)
|
||||
(prompt, continue_echo, dont_downcase_last, can_return_switch_frame,
|
||||
command_loop)
|
||||
Lisp_Object prompt, continue_echo, dont_downcase_last;
|
||||
Lisp_Object can_return_switch_frame, command_loop;
|
||||
(Lisp_Object prompt, Lisp_Object continue_echo, Lisp_Object dont_downcase_last, Lisp_Object can_return_switch_frame, Lisp_Object command_loop)
|
||||
{
|
||||
Lisp_Object keybuf[30];
|
||||
register int i;
|
||||
|
@ -10250,8 +10241,7 @@ The argument KEYS specifies the value to use instead of (this-command-keys)
|
|||
when reading the arguments; if it is nil, (this-command-keys) is used.
|
||||
The argument SPECIAL, if non-nil, means that this command is executing
|
||||
a special event, so ignore the prefix argument and don't clear it. */)
|
||||
(cmd, record_flag, keys, special)
|
||||
Lisp_Object cmd, record_flag, keys, special;
|
||||
(Lisp_Object cmd, Lisp_Object record_flag, Lisp_Object keys, Lisp_Object special)
|
||||
{
|
||||
register Lisp_Object final;
|
||||
register Lisp_Object tem;
|
||||
|
@ -10340,8 +10330,7 @@ the numeric argument to this command.
|
|||
|
||||
Noninteractively, the argument PREFIXARG is the prefix argument to
|
||||
give to the command you invoke, if it asks for an argument. */)
|
||||
(prefixarg)
|
||||
Lisp_Object prefixarg;
|
||||
(Lisp_Object prefixarg)
|
||||
{
|
||||
Lisp_Object function;
|
||||
char buf[40];
|
||||
|
@ -10571,7 +10560,7 @@ DEFUN ("input-pending-p", Finput_pending_p, Sinput_pending_p, 0, 0, 0,
|
|||
doc: /* Return t if command input is currently available with no wait.
|
||||
Actually, the value is nil only if we can be sure that no input is available;
|
||||
if there is a doubt, the value is t. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (!NILP (Vunread_command_events) || unread_command_char != -1
|
||||
|| !NILP (Vunread_post_input_method_events)
|
||||
|
@ -10586,7 +10575,7 @@ if there is a doubt, the value is t. */)
|
|||
|
||||
DEFUN ("recent-keys", Frecent_keys, Srecent_keys, 0, 0, 0,
|
||||
doc: /* Return vector of last 300 events, not counting those from keyboard macros. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object *keys = XVECTOR (recent_keys)->contents;
|
||||
Lisp_Object val;
|
||||
|
@ -10611,7 +10600,7 @@ the last key sequence that has been read.
|
|||
The value is a string or a vector.
|
||||
|
||||
See also `this-command-keys-vector'. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return make_event_array (this_command_key_count,
|
||||
XVECTOR (this_command_keys)->contents);
|
||||
|
@ -10623,7 +10612,7 @@ However, if the command has called `read-key-sequence', it returns
|
|||
the last key sequence that has been read.
|
||||
|
||||
See also `this-command-keys'. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return Fvector (this_command_key_count,
|
||||
XVECTOR (this_command_keys)->contents);
|
||||
|
@ -10637,7 +10626,7 @@ the command loop or by `read-key-sequence'.
|
|||
Unlike `this-command-keys', this function's value
|
||||
does not include prefix arguments.
|
||||
The value is always a vector. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return Fvector (this_command_key_count
|
||||
- this_single_command_key_start,
|
||||
|
@ -10653,7 +10642,7 @@ the command loop or by `read-key-sequence'.
|
|||
Unlike `this-single-command-keys', this function's value
|
||||
shows the events before all translations (except for input methods).
|
||||
The value is always a vector. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return Fvector (raw_keybuf_count,
|
||||
(XVECTOR (raw_keybuf)->contents));
|
||||
|
@ -10671,7 +10660,7 @@ both in the value of (this-command-keys) and in echoing.
|
|||
To achieve this, `universal-argument-other-key' calls
|
||||
`reset-this-command-lengths', which discards the record of reading
|
||||
these events the first time. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
this_command_key_count = before_command_key_count;
|
||||
if (this_command_key_count < this_single_command_key_start)
|
||||
|
@ -10691,8 +10680,7 @@ DEFUN ("clear-this-command-keys", Fclear_this_command_keys,
|
|||
doc: /* Clear out the vector that `this-command-keys' returns.
|
||||
Also clear the record of the last 100 events, unless optional arg
|
||||
KEEP-RECORD is non-nil. */)
|
||||
(keep_record)
|
||||
Lisp_Object keep_record;
|
||||
(Lisp_Object keep_record)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -10711,7 +10699,7 @@ KEEP-RECORD is non-nil. */)
|
|||
|
||||
DEFUN ("recursion-depth", Frecursion_depth, Srecursion_depth, 0, 0, 0,
|
||||
doc: /* Return the current depth in recursive edits. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object temp;
|
||||
XSETFASTINT (temp, command_loop_level + minibuf_level);
|
||||
|
@ -10722,8 +10710,7 @@ DEFUN ("open-dribble-file", Fopen_dribble_file, Sopen_dribble_file, 1, 1,
|
|||
"FOpen dribble file: ",
|
||||
doc: /* Start writing all keyboard characters to a dribble file called FILE.
|
||||
If FILE is nil, close any open dribble file. */)
|
||||
(file)
|
||||
Lisp_Object file;
|
||||
(Lisp_Object file)
|
||||
{
|
||||
if (dribble)
|
||||
{
|
||||
|
@ -10745,7 +10732,7 @@ If FILE is nil, close any open dribble file. */)
|
|||
DEFUN ("discard-input", Fdiscard_input, Sdiscard_input, 0, 0, 0,
|
||||
doc: /* Discard the contents of the terminal input buffer.
|
||||
Also end any kbd macro being defined. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (!NILP (current_kboard->defining_kbd_macro))
|
||||
{
|
||||
|
@ -10780,8 +10767,7 @@ After resumption run the normal hook `suspend-resume-hook'.
|
|||
|
||||
Some operating systems cannot stop the Emacs process and resume it later.
|
||||
On such systems, Emacs starts a subshell instead of suspending. */)
|
||||
(stuffstring)
|
||||
Lisp_Object stuffstring;
|
||||
(Lisp_Object stuffstring)
|
||||
{
|
||||
int count = SPECPDL_INDEX ();
|
||||
int old_height, old_width;
|
||||
|
@ -11101,8 +11087,7 @@ If INTERRUPT is non-nil, Emacs will use input interrupts;
|
|||
otherwise Emacs uses CBREAK mode.
|
||||
|
||||
See also `current-input-mode'. */)
|
||||
(interrupt)
|
||||
Lisp_Object interrupt;
|
||||
(Lisp_Object interrupt)
|
||||
{
|
||||
int new_interrupt_input;
|
||||
#ifdef SIGIO
|
||||
|
@ -11152,8 +11137,7 @@ This setting only has an effect on tty terminals and only when
|
|||
Emacs reads input in CBREAK mode; see `set-input-interrupt-mode'.
|
||||
|
||||
See also `current-input-mode'. */)
|
||||
(flow, terminal)
|
||||
Lisp_Object flow, terminal;
|
||||
(Lisp_Object flow, Lisp_Object terminal)
|
||||
{
|
||||
struct terminal *t = get_terminal (terminal, 1);
|
||||
struct tty_display_info *tty;
|
||||
|
@ -11195,8 +11179,7 @@ It may be a terminal object, a frame, or nil for the terminal used by
|
|||
the currently selected frame.
|
||||
|
||||
See also `current-input-mode'. */)
|
||||
(meta, terminal)
|
||||
Lisp_Object meta, terminal;
|
||||
(Lisp_Object meta, Lisp_Object terminal)
|
||||
{
|
||||
struct terminal *t = get_terminal (terminal, 1);
|
||||
struct tty_display_info *tty;
|
||||
|
@ -11237,8 +11220,7 @@ This function only has an effect on the controlling tty of the Emacs
|
|||
process.
|
||||
|
||||
See also `current-input-mode'. */)
|
||||
(quit)
|
||||
Lisp_Object quit;
|
||||
(Lisp_Object quit)
|
||||
{
|
||||
struct terminal *t = get_named_tty ("/dev/tty");
|
||||
struct tty_display_info *tty;
|
||||
|
@ -11275,8 +11257,7 @@ Third arg META t means accept 8-bit input (for a Meta key).
|
|||
Otherwise, accept 8-bit input and don't use the top bit for Meta.
|
||||
Optional fourth arg QUIT if non-nil specifies character to use for quitting.
|
||||
See also `current-input-mode'. */)
|
||||
(interrupt, flow, meta, quit)
|
||||
Lisp_Object interrupt, flow, meta, quit;
|
||||
(Lisp_Object interrupt, Lisp_Object flow, Lisp_Object meta, Lisp_Object quit)
|
||||
{
|
||||
Fset_input_interrupt_mode (interrupt);
|
||||
Fset_output_flow_control (flow, Qnil);
|
||||
|
@ -11300,7 +11281,7 @@ The value is a list of the form (INTERRUPT FLOW META QUIT), where
|
|||
QUIT is the character Emacs currently uses to quit.
|
||||
The elements of this list correspond to the arguments of
|
||||
`set-input-mode'. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object val[4];
|
||||
struct frame *sf = XFRAME (selected_frame);
|
||||
|
@ -11334,8 +11315,7 @@ The return value is similar to a mouse click position:
|
|||
(WINDOW AREA-OR-POS (X . Y) TIMESTAMP OBJECT POS (COL . ROW)
|
||||
IMAGE (DX . DY) (WIDTH . HEIGHT))
|
||||
The `posn-' functions access elements of such lists. */)
|
||||
(x, y, frame_or_window, whole)
|
||||
Lisp_Object x, y, frame_or_window, whole;
|
||||
(Lisp_Object x, Lisp_Object y, Lisp_Object frame_or_window, Lisp_Object whole)
|
||||
{
|
||||
CHECK_NATNUM (x);
|
||||
CHECK_NATNUM (y);
|
||||
|
@ -11375,8 +11355,7 @@ to the given buffer position:
|
|||
(WINDOW AREA-OR-POS (X . Y) TIMESTAMP OBJECT POS (COL . ROW)
|
||||
IMAGE (DX . DY) (WIDTH . HEIGHT))
|
||||
The `posn-' functions access elements of such lists. */)
|
||||
(pos, window)
|
||||
Lisp_Object pos, window;
|
||||
(Lisp_Object pos, Lisp_Object window)
|
||||
{
|
||||
Lisp_Object tem;
|
||||
|
||||
|
|
95
src/keymap.c
95
src/keymap.c
|
@ -142,8 +142,7 @@ input stream. Initially, ALIST is nil.
|
|||
|
||||
The optional arg STRING supplies a menu name for the keymap
|
||||
in case you use it as a menu with `x-popup-menu'. */)
|
||||
(string)
|
||||
Lisp_Object string;
|
||||
(Lisp_Object string)
|
||||
{
|
||||
Lisp_Object tail;
|
||||
if (!NILP (string))
|
||||
|
@ -163,8 +162,7 @@ Initially the alist is nil.
|
|||
|
||||
The optional arg STRING supplies a menu name for the keymap
|
||||
in case you use it as a menu with `x-popup-menu'. */)
|
||||
(string)
|
||||
Lisp_Object string;
|
||||
(Lisp_Object string)
|
||||
{
|
||||
if (!NILP (string))
|
||||
{
|
||||
|
@ -202,8 +200,7 @@ or a symbol whose function definition is itself a keymap.
|
|||
ALIST elements look like (CHAR . DEFN) or (SYMBOL . DEFN);
|
||||
a vector of densely packed bindings for small character codes
|
||||
is also allowed as an element. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
return (KEYMAPP (object) ? Qt : Qnil);
|
||||
}
|
||||
|
@ -212,8 +209,7 @@ DEFUN ("keymap-prompt", Fkeymap_prompt, Skeymap_prompt, 1, 1, 0,
|
|||
doc: /* Return the prompt-string of a keymap MAP.
|
||||
If non-nil, the prompt is shown in the echo-area
|
||||
when reading a key-sequence to be looked-up in this keymap. */)
|
||||
(map)
|
||||
Lisp_Object map;
|
||||
(Lisp_Object map)
|
||||
{
|
||||
map = get_keymap (map, 0, 0);
|
||||
while (CONSP (map))
|
||||
|
@ -322,8 +318,7 @@ keymap_parent (Lisp_Object keymap, int autoload)
|
|||
DEFUN ("keymap-parent", Fkeymap_parent, Skeymap_parent, 1, 1, 0,
|
||||
doc: /* Return the parent keymap of KEYMAP.
|
||||
If KEYMAP has no parent, return nil. */)
|
||||
(keymap)
|
||||
Lisp_Object keymap;
|
||||
(Lisp_Object keymap)
|
||||
{
|
||||
return keymap_parent (keymap, 1);
|
||||
}
|
||||
|
@ -343,8 +338,7 @@ keymap_memberp (Lisp_Object map, Lisp_Object maps)
|
|||
DEFUN ("set-keymap-parent", Fset_keymap_parent, Sset_keymap_parent, 2, 2, 0,
|
||||
doc: /* Modify KEYMAP to set its parent map to PARENT.
|
||||
Return PARENT. PARENT should be nil or another keymap. */)
|
||||
(keymap, parent)
|
||||
Lisp_Object keymap, parent;
|
||||
(Lisp_Object keymap, Lisp_Object parent)
|
||||
{
|
||||
Lisp_Object list, prev;
|
||||
struct gcpro gcpro1, gcpro2;
|
||||
|
@ -729,8 +723,7 @@ DEFUN ("map-keymap-internal", Fmap_keymap_internal, Smap_keymap_internal, 2, 2,
|
|||
FUNCTION is called with two arguments: the event that is bound, and
|
||||
the definition it is bound to. The event may be a character range.
|
||||
If KEYMAP has a parent, this function returns it without processing it. */)
|
||||
(function, keymap)
|
||||
Lisp_Object function, keymap;
|
||||
(Lisp_Object function, Lisp_Object keymap)
|
||||
{
|
||||
struct gcpro gcpro1;
|
||||
GCPRO1 (function);
|
||||
|
@ -749,8 +742,7 @@ If KEYMAP has a parent, the parent's bindings are included as well.
|
|||
This works recursively: if the parent has itself a parent, then the
|
||||
grandparent's bindings are also included and so on.
|
||||
usage: (map-keymap FUNCTION KEYMAP) */)
|
||||
(function, keymap, sort_first)
|
||||
Lisp_Object function, keymap, sort_first;
|
||||
(Lisp_Object function, Lisp_Object keymap, Lisp_Object sort_first)
|
||||
{
|
||||
if (! NILP (sort_first))
|
||||
return call2 (intern ("map-keymap-sorted"), function, keymap);
|
||||
|
@ -1094,8 +1086,7 @@ but changing either the copy or KEYMAP does not affect the other.
|
|||
Any key definitions that are subkeymaps are recursively copied.
|
||||
However, a key definition which is a symbol whose definition is a keymap
|
||||
is not copied. */)
|
||||
(keymap)
|
||||
Lisp_Object keymap;
|
||||
(Lisp_Object keymap)
|
||||
{
|
||||
register Lisp_Object copy, tail;
|
||||
keymap = get_keymap (keymap, 1, 0);
|
||||
|
@ -1158,10 +1149,7 @@ DEF is anything that can be a key's definition:
|
|||
If KEYMAP is a sparse keymap with a binding for KEY, the existing
|
||||
binding is altered. If there is no binding for KEY, the new pair
|
||||
binding KEY to DEF is added at the front of KEYMAP. */)
|
||||
(keymap, key, def)
|
||||
Lisp_Object keymap;
|
||||
Lisp_Object key;
|
||||
Lisp_Object def;
|
||||
(Lisp_Object keymap, Lisp_Object key, Lisp_Object def)
|
||||
{
|
||||
register int idx;
|
||||
register Lisp_Object c;
|
||||
|
@ -1277,8 +1265,7 @@ ignored if POSITION is non-nil.
|
|||
If the optional argument KEYMAPS is non-nil, it should be a list of
|
||||
keymaps to search for command remapping. Otherwise, search for the
|
||||
remapping in all currently active keymaps. */)
|
||||
(command, position, keymaps)
|
||||
Lisp_Object command, position, keymaps;
|
||||
(Lisp_Object command, Lisp_Object position, Lisp_Object keymaps)
|
||||
{
|
||||
if (!SYMBOLP (command))
|
||||
return Qnil;
|
||||
|
@ -1320,10 +1307,7 @@ bindings, used when nothing else in the keymap applies; this makes it
|
|||
usable as a general function for probing keymaps. However, if the
|
||||
third optional argument ACCEPT-DEFAULT is non-nil, `lookup-key' will
|
||||
recognize the default bindings, just as `read-key-sequence' does. */)
|
||||
(keymap, key, accept_default)
|
||||
Lisp_Object keymap;
|
||||
Lisp_Object key;
|
||||
Lisp_Object accept_default;
|
||||
(Lisp_Object keymap, Lisp_Object key, Lisp_Object accept_default)
|
||||
{
|
||||
register int idx;
|
||||
register Lisp_Object cmd;
|
||||
|
@ -1581,8 +1565,7 @@ DEFUN ("current-active-maps", Fcurrent_active_maps, Scurrent_active_maps,
|
|||
OLP if non-nil indicates that we should obey `overriding-local-map' and
|
||||
`overriding-terminal-local-map'. POSITION can specify a click position
|
||||
like in the respective argument of `key-binding'. */)
|
||||
(olp, position)
|
||||
Lisp_Object olp, position;
|
||||
(Lisp_Object olp, Lisp_Object position)
|
||||
{
|
||||
int count = SPECPDL_INDEX ();
|
||||
|
||||
|
@ -1745,8 +1728,7 @@ occurs in the keymaps associated with it instead of KEY. It can also
|
|||
be a number or marker, in which case the keymap properties at the
|
||||
specified buffer position instead of point are used.
|
||||
*/)
|
||||
(key, accept_default, no_remap, position)
|
||||
Lisp_Object key, accept_default, no_remap, position;
|
||||
(Lisp_Object key, Lisp_Object accept_default, Lisp_Object no_remap, Lisp_Object position)
|
||||
{
|
||||
Lisp_Object *maps, value;
|
||||
int nmaps, i;
|
||||
|
@ -1936,8 +1918,7 @@ The binding is probably a symbol with a function definition.
|
|||
|
||||
If optional argument ACCEPT-DEFAULT is non-nil, recognize default
|
||||
bindings; see the description of `lookup-key' for more details about this. */)
|
||||
(keys, accept_default)
|
||||
Lisp_Object keys, accept_default;
|
||||
(Lisp_Object keys, Lisp_Object accept_default)
|
||||
{
|
||||
register Lisp_Object map;
|
||||
map = current_buffer->keymap;
|
||||
|
@ -1957,8 +1938,7 @@ This function's return values are the same as those of `lookup-key'
|
|||
|
||||
If optional argument ACCEPT-DEFAULT is non-nil, recognize default
|
||||
bindings; see the description of `lookup-key' for more details about this. */)
|
||||
(keys, accept_default)
|
||||
Lisp_Object keys, accept_default;
|
||||
(Lisp_Object keys, Lisp_Object accept_default)
|
||||
{
|
||||
return Flookup_key (current_global_map, keys, accept_default);
|
||||
}
|
||||
|
@ -1977,8 +1957,7 @@ that come after prefix bindings.
|
|||
|
||||
If optional argument ACCEPT-DEFAULT is non-nil, recognize default
|
||||
bindings; see the description of `lookup-key' for more details about this. */)
|
||||
(key, accept_default)
|
||||
Lisp_Object key, accept_default;
|
||||
(Lisp_Object key, Lisp_Object accept_default)
|
||||
{
|
||||
Lisp_Object *modes, *maps;
|
||||
int nmaps;
|
||||
|
@ -2017,8 +1996,7 @@ as a function.
|
|||
The third optional argument NAME, if given, supplies a menu name
|
||||
string for the map. This is required to use the keymap as a menu.
|
||||
This function returns COMMAND. */)
|
||||
(command, mapvar, name)
|
||||
Lisp_Object command, mapvar, name;
|
||||
(Lisp_Object command, Lisp_Object mapvar, Lisp_Object name)
|
||||
{
|
||||
Lisp_Object map;
|
||||
map = Fmake_sparse_keymap (name);
|
||||
|
@ -2032,8 +2010,7 @@ This function returns COMMAND. */)
|
|||
|
||||
DEFUN ("use-global-map", Fuse_global_map, Suse_global_map, 1, 1, 0,
|
||||
doc: /* Select KEYMAP as the global keymap. */)
|
||||
(keymap)
|
||||
Lisp_Object keymap;
|
||||
(Lisp_Object keymap)
|
||||
{
|
||||
keymap = get_keymap (keymap, 1, 1);
|
||||
current_global_map = keymap;
|
||||
|
@ -2044,8 +2021,7 @@ DEFUN ("use-global-map", Fuse_global_map, Suse_global_map, 1, 1, 0,
|
|||
DEFUN ("use-local-map", Fuse_local_map, Suse_local_map, 1, 1, 0,
|
||||
doc: /* Select KEYMAP as the local keymap.
|
||||
If KEYMAP is nil, that means no local keymap. */)
|
||||
(keymap)
|
||||
Lisp_Object keymap;
|
||||
(Lisp_Object keymap)
|
||||
{
|
||||
if (!NILP (keymap))
|
||||
keymap = get_keymap (keymap, 1, 1);
|
||||
|
@ -2058,21 +2034,21 @@ If KEYMAP is nil, that means no local keymap. */)
|
|||
DEFUN ("current-local-map", Fcurrent_local_map, Scurrent_local_map, 0, 0, 0,
|
||||
doc: /* Return current buffer's local keymap, or nil if it has none.
|
||||
Normally the local keymap is set by the major mode with `use-local-map'. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return current_buffer->keymap;
|
||||
}
|
||||
|
||||
DEFUN ("current-global-map", Fcurrent_global_map, Scurrent_global_map, 0, 0, 0,
|
||||
doc: /* Return the current global keymap. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return current_global_map;
|
||||
}
|
||||
|
||||
DEFUN ("current-minor-mode-maps", Fcurrent_minor_mode_maps, Scurrent_minor_mode_maps, 0, 0, 0,
|
||||
doc: /* Return a list of keymaps for the minor modes of the current buffer. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object *maps;
|
||||
int nmaps = current_minor_maps (0, &maps);
|
||||
|
@ -2160,8 +2136,7 @@ KEYS starting from KEYMAP gets you to MAP. These elements are ordered
|
|||
so that the KEYS increase in length. The first element is ([] . KEYMAP).
|
||||
An optional argument PREFIX, if non-nil, should be a key sequence;
|
||||
then the value includes only maps for prefixes that start with PREFIX. */)
|
||||
(keymap, prefix)
|
||||
Lisp_Object keymap, prefix;
|
||||
(Lisp_Object keymap, Lisp_Object prefix)
|
||||
{
|
||||
Lisp_Object maps, tail;
|
||||
int prefixlen = XINT (Flength (prefix));
|
||||
|
@ -2249,8 +2224,7 @@ DEFUN ("key-description", Fkey_description, Skey_description, 1, 2, 0,
|
|||
Optional arg PREFIX is the sequence of keys leading up to KEYS.
|
||||
Control characters turn into "C-foo" sequences, meta into "M-foo",
|
||||
spaces are put between sequence elements, etc. */)
|
||||
(keys, prefix)
|
||||
Lisp_Object keys, prefix;
|
||||
(Lisp_Object keys, Lisp_Object prefix)
|
||||
{
|
||||
int len = 0;
|
||||
int i, i_byte;
|
||||
|
@ -2470,8 +2444,7 @@ DEFUN ("single-key-description", Fsingle_key_description,
|
|||
Control characters turn into C-whatever, etc.
|
||||
Optional argument NO-ANGLES non-nil means don't put angle brackets
|
||||
around function keys and event symbols. */)
|
||||
(key, no_angles)
|
||||
Lisp_Object key, no_angles;
|
||||
(Lisp_Object key, Lisp_Object no_angles)
|
||||
{
|
||||
if (CONSP (key) && lucid_event_type_list_p (key))
|
||||
key = Fevent_convert_list (key);
|
||||
|
@ -2537,8 +2510,7 @@ Control characters turn into "^char", etc. This differs from
|
|||
Also, this function recognizes the 2**7 bit as the Meta character,
|
||||
whereas `single-key-description' uses the 2**27 bit for Meta.
|
||||
See Info node `(elisp)Describing Characters' for examples. */)
|
||||
(character)
|
||||
Lisp_Object character;
|
||||
(Lisp_Object character)
|
||||
{
|
||||
/* Currently MAX_MULTIBYTE_LENGTH is 4 (< 6). */
|
||||
unsigned char str[6];
|
||||
|
@ -2767,9 +2739,7 @@ indirect definition itself.
|
|||
If optional 5th arg NO-REMAP is non-nil, don't search for key sequences
|
||||
that invoke a command which is remapped to DEFINITION, but include the
|
||||
remapped command in the returned list. */)
|
||||
(definition, keymap, firstonly, noindirect, no_remap)
|
||||
Lisp_Object definition, keymap;
|
||||
Lisp_Object firstonly, noindirect, no_remap;
|
||||
(Lisp_Object definition, Lisp_Object keymap, Lisp_Object firstonly, Lisp_Object noindirect, Lisp_Object no_remap)
|
||||
{
|
||||
/* The keymaps in which to search. */
|
||||
Lisp_Object keymaps;
|
||||
|
@ -2990,8 +2960,7 @@ The optional argument PREFIX, if non-nil, should be a key sequence;
|
|||
then we display only bindings that start with that prefix.
|
||||
The optional argument MENUS, if non-nil, says to mention menu bindings.
|
||||
\(Ordinarily these are omitted from the output.) */)
|
||||
(buffer, prefix, menus)
|
||||
Lisp_Object buffer, prefix, menus;
|
||||
(Lisp_Object buffer, Lisp_Object prefix, Lisp_Object menus)
|
||||
{
|
||||
Lisp_Object outbuf, shadow;
|
||||
int nomenu = NILP (menus);
|
||||
|
@ -3583,8 +3552,7 @@ DEFUN ("describe-vector", Fdescribe_vector, Sdescribe_vector, 1, 2, 0,
|
|||
doc: /* Insert a description of contents of VECTOR.
|
||||
This is text showing the elements of vector matched against indices.
|
||||
DESCRIBER is the output function used; nil means use `princ'. */)
|
||||
(vector, describer)
|
||||
Lisp_Object vector, describer;
|
||||
(Lisp_Object vector, Lisp_Object describer)
|
||||
{
|
||||
int count = SPECPDL_INDEX ();
|
||||
if (NILP (describer))
|
||||
|
@ -3856,8 +3824,7 @@ DEFUN ("apropos-internal", Fapropos_internal, Sapropos_internal, 1, 2, 0,
|
|||
If optional 2nd arg PREDICATE is non-nil, (funcall PREDICATE SYMBOL) is done
|
||||
for each symbol and a symbol is mentioned only if that returns non-nil.
|
||||
Return list of symbols found. */)
|
||||
(regexp, predicate)
|
||||
Lisp_Object regexp, predicate;
|
||||
(Lisp_Object regexp, Lisp_Object predicate)
|
||||
{
|
||||
Lisp_Object tem;
|
||||
CHECK_STRING (regexp);
|
||||
|
|
43
src/lread.c
43
src/lread.c
|
@ -779,8 +779,7 @@ If the optional argument SECONDS is non-nil, it should be a number
|
|||
specifying the maximum number of seconds to wait for input. If no
|
||||
input arrives in that time, return nil. SECONDS may be a
|
||||
floating-point value. */)
|
||||
(prompt, inherit_input_method, seconds)
|
||||
Lisp_Object prompt, inherit_input_method, seconds;
|
||||
(Lisp_Object prompt, Lisp_Object inherit_input_method, Lisp_Object seconds)
|
||||
{
|
||||
Lisp_Object val;
|
||||
|
||||
|
@ -802,8 +801,7 @@ If the optional argument SECONDS is non-nil, it should be a number
|
|||
specifying the maximum number of seconds to wait for input. If no
|
||||
input arrives in that time, return nil. SECONDS may be a
|
||||
floating-point value. */)
|
||||
(prompt, inherit_input_method, seconds)
|
||||
Lisp_Object prompt, inherit_input_method, seconds;
|
||||
(Lisp_Object prompt, Lisp_Object inherit_input_method, Lisp_Object seconds)
|
||||
{
|
||||
if (! NILP (prompt))
|
||||
message_with_string ("%s", prompt, 0);
|
||||
|
@ -824,8 +822,7 @@ If the optional argument SECONDS is non-nil, it should be a number
|
|||
specifying the maximum number of seconds to wait for input. If no
|
||||
input arrives in that time, return nil. SECONDS may be a
|
||||
floating-point value. */)
|
||||
(prompt, inherit_input_method, seconds)
|
||||
Lisp_Object prompt, inherit_input_method, seconds;
|
||||
(Lisp_Object prompt, Lisp_Object inherit_input_method, Lisp_Object seconds)
|
||||
{
|
||||
Lisp_Object val;
|
||||
|
||||
|
@ -840,7 +837,7 @@ floating-point value. */)
|
|||
|
||||
DEFUN ("get-file-char", Fget_file_char, Sget_file_char, 0, 0, 0,
|
||||
doc: /* Don't use this yourself. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
register Lisp_Object val;
|
||||
BLOCK_INPUT;
|
||||
|
@ -925,7 +922,7 @@ DEFUN ("get-load-suffixes", Fget_load_suffixes, Sget_load_suffixes, 0, 0, 0,
|
|||
doc: /* Return the suffixes that `load' should try if a suffix is \
|
||||
required.
|
||||
This uses the variables `load-suffixes' and `load-file-rep-suffixes'. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object lst = Qnil, suffixes = Vload_suffixes, suffix, ext;
|
||||
while (CONSP (suffixes))
|
||||
|
@ -980,8 +977,7 @@ Loading a file records its definitions, and its `provide' and
|
|||
car is the file name loaded. See `load-history'.
|
||||
|
||||
Return t if the file exists and loads successfully. */)
|
||||
(file, noerror, nomessage, nosuffix, must_suffix)
|
||||
Lisp_Object file, noerror, nomessage, nosuffix, must_suffix;
|
||||
(Lisp_Object file, Lisp_Object noerror, Lisp_Object nomessage, Lisp_Object nosuffix, Lisp_Object must_suffix)
|
||||
{
|
||||
register FILE *stream;
|
||||
register int fd = -1;
|
||||
|
@ -1331,8 +1327,7 @@ file name when searching.
|
|||
If non-nil, PREDICATE is used instead of `file-readable-p'.
|
||||
PREDICATE can also be an integer to pass to the access(2) function,
|
||||
in which case file-name-handlers are ignored. */)
|
||||
(filename, path, suffixes, predicate)
|
||||
Lisp_Object filename, path, suffixes, predicate;
|
||||
(Lisp_Object filename, Lisp_Object path, Lisp_Object suffixes, Lisp_Object predicate)
|
||||
{
|
||||
Lisp_Object file;
|
||||
int fd = openp (path, filename, suffixes, &file, predicate);
|
||||
|
@ -1785,8 +1780,7 @@ DO-ALLOW-PRINT, if non-nil, specifies that `print' and related
|
|||
functions should work normally even if PRINTFLAG is nil.
|
||||
|
||||
This function preserves the position of point. */)
|
||||
(buffer, printflag, filename, unibyte, do_allow_print)
|
||||
Lisp_Object buffer, printflag, filename, unibyte, do_allow_print;
|
||||
(Lisp_Object buffer, Lisp_Object printflag, Lisp_Object filename, Lisp_Object unibyte, Lisp_Object do_allow_print)
|
||||
{
|
||||
int count = SPECPDL_INDEX ();
|
||||
Lisp_Object tem, buf;
|
||||
|
@ -1829,8 +1823,7 @@ instead of `read' to read each expression. It gets one argument
|
|||
which is the input stream for reading characters.
|
||||
|
||||
This function does not move point. */)
|
||||
(start, end, printflag, read_function)
|
||||
Lisp_Object start, end, printflag, read_function;
|
||||
(Lisp_Object start, Lisp_Object end, Lisp_Object printflag, Lisp_Object read_function)
|
||||
{
|
||||
int count = SPECPDL_INDEX ();
|
||||
Lisp_Object tem, cbuf;
|
||||
|
@ -1864,8 +1857,7 @@ STREAM or the value of `standard-input' may be:
|
|||
a string (takes text from string, starting at the beginning)
|
||||
t (read text line using minibuffer and use it, or read from
|
||||
standard input in batch mode). */)
|
||||
(stream)
|
||||
Lisp_Object stream;
|
||||
(Lisp_Object stream)
|
||||
{
|
||||
if (NILP (stream))
|
||||
stream = Vstandard_input;
|
||||
|
@ -1882,8 +1874,7 @@ DEFUN ("read-from-string", Fread_from_string, Sread_from_string, 1, 3, 0,
|
|||
Returns a cons: (OBJECT-READ . FINAL-STRING-INDEX).
|
||||
START and END optionally delimit a substring of STRING from which to read;
|
||||
they default to 0 and (length STRING) respectively. */)
|
||||
(string, start, end)
|
||||
Lisp_Object string, start, end;
|
||||
(Lisp_Object string, Lisp_Object start, Lisp_Object end)
|
||||
{
|
||||
Lisp_Object ret;
|
||||
CHECK_STRING (string);
|
||||
|
@ -3609,8 +3600,7 @@ DEFUN ("intern", Fintern, Sintern, 1, 2, 0,
|
|||
If there is none, one is created by this function and returned.
|
||||
A second optional argument specifies the obarray to use;
|
||||
it defaults to the value of `obarray'. */)
|
||||
(string, obarray)
|
||||
Lisp_Object string, obarray;
|
||||
(Lisp_Object string, Lisp_Object obarray)
|
||||
{
|
||||
register Lisp_Object tem, sym, *ptr;
|
||||
|
||||
|
@ -3657,8 +3647,7 @@ NAME may be a string or a symbol. If it is a symbol, that exact
|
|||
symbol is searched for.
|
||||
A second optional argument specifies the obarray to use;
|
||||
it defaults to the value of `obarray'. */)
|
||||
(name, obarray)
|
||||
Lisp_Object name, obarray;
|
||||
(Lisp_Object name, Lisp_Object obarray)
|
||||
{
|
||||
register Lisp_Object tem, string;
|
||||
|
||||
|
@ -3686,8 +3675,7 @@ The value is t if a symbol was found and deleted, nil otherwise.
|
|||
NAME may be a string or a symbol. If it is a symbol, that symbol
|
||||
is deleted, if it belongs to OBARRAY--no other symbol is deleted.
|
||||
OBARRAY defaults to the value of the variable `obarray'. */)
|
||||
(name, obarray)
|
||||
Lisp_Object name, obarray;
|
||||
(Lisp_Object name, Lisp_Object obarray)
|
||||
{
|
||||
register Lisp_Object string, tem;
|
||||
int hash;
|
||||
|
@ -3839,8 +3827,7 @@ mapatoms_1 (Lisp_Object sym, Lisp_Object function)
|
|||
DEFUN ("mapatoms", Fmapatoms, Smapatoms, 1, 2, 0,
|
||||
doc: /* Call FUNCTION on every symbol in OBARRAY.
|
||||
OBARRAY defaults to the value of `obarray'. */)
|
||||
(function, obarray)
|
||||
Lisp_Object function, obarray;
|
||||
(Lisp_Object function, Lisp_Object obarray)
|
||||
{
|
||||
if (NILP (obarray)) obarray = Vobarray;
|
||||
obarray = check_obarray (obarray);
|
||||
|
|
17
src/macros.c
17
src/macros.c
|
@ -64,8 +64,7 @@ Non-nil arg (prefix arg) means append to last macro defined;
|
|||
this begins by re-executing that macro as if you typed it again.
|
||||
If optional second arg, NO-EXEC, is non-nil, do not re-execute last
|
||||
macro before appending to it. */)
|
||||
(append, no_exec)
|
||||
Lisp_Object append, no_exec;
|
||||
(Lisp_Object append, Lisp_Object no_exec)
|
||||
{
|
||||
if (!NILP (current_kboard->defining_kbd_macro))
|
||||
error ("Already defining kbd macro");
|
||||
|
@ -163,8 +162,7 @@ An argument of zero means repeat until error.
|
|||
|
||||
In Lisp, optional second arg LOOPFUNC may be a function that is called prior to
|
||||
each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */)
|
||||
(repeat, loopfunc)
|
||||
Lisp_Object repeat, loopfunc;
|
||||
(Lisp_Object repeat, Lisp_Object loopfunc)
|
||||
{
|
||||
if (NILP (current_kboard->defining_kbd_macro))
|
||||
error ("Not defining kbd macro");
|
||||
|
@ -230,7 +228,7 @@ finalize_kbd_macro_chars (void)
|
|||
DEFUN ("cancel-kbd-macro-events", Fcancel_kbd_macro_events,
|
||||
Scancel_kbd_macro_events, 0, 0, 0,
|
||||
doc: /* Cancel the events added to a keyboard macro for this command. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
current_kboard->kbd_macro_ptr = current_kboard->kbd_macro_end;
|
||||
return Qnil;
|
||||
|
@ -239,8 +237,7 @@ DEFUN ("cancel-kbd-macro-events", Fcancel_kbd_macro_events,
|
|||
DEFUN ("store-kbd-macro-event", Fstore_kbd_macro_event,
|
||||
Sstore_kbd_macro_event, 1, 1, 0,
|
||||
doc: /* Store EVENT into the keyboard macro being defined. */)
|
||||
(event)
|
||||
Lisp_Object event;
|
||||
(Lisp_Object event)
|
||||
{
|
||||
store_kbd_macro_char (event);
|
||||
return Qnil;
|
||||
|
@ -257,8 +254,7 @@ defining others, use \\[name-last-kbd-macro].
|
|||
|
||||
In Lisp, optional second arg LOOPFUNC may be a function that is called prior to
|
||||
each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */)
|
||||
(prefix, loopfunc)
|
||||
Lisp_Object prefix, loopfunc;
|
||||
(Lisp_Object prefix, Lisp_Object loopfunc)
|
||||
{
|
||||
/* Don't interfere with recognition of the previous command
|
||||
from before this macro started. */
|
||||
|
@ -303,8 +299,7 @@ COUNT is a repeat count, or nil for once, or 0 for infinite loop.
|
|||
|
||||
Optional third arg LOOPFUNC may be a function that is called prior to
|
||||
each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */)
|
||||
(macro, count, loopfunc)
|
||||
Lisp_Object macro, count, loopfunc;
|
||||
(Lisp_Object macro, Lisp_Object count, Lisp_Object loopfunc)
|
||||
{
|
||||
Lisp_Object final;
|
||||
Lisp_Object tem;
|
||||
|
|
21
src/marker.c
21
src/marker.c
|
@ -433,8 +433,7 @@ buf_bytepos_to_charpos (struct buffer *b, int bytepos)
|
|||
DEFUN ("marker-buffer", Fmarker_buffer, Smarker_buffer, 1, 1, 0,
|
||||
doc: /* Return the buffer that MARKER points into, or nil if none.
|
||||
Returns nil if MARKER points into a dead buffer. */)
|
||||
(marker)
|
||||
register Lisp_Object marker;
|
||||
(register Lisp_Object marker)
|
||||
{
|
||||
register Lisp_Object buf;
|
||||
CHECK_MARKER (marker);
|
||||
|
@ -454,8 +453,7 @@ Returns nil if MARKER points into a dead buffer. */)
|
|||
DEFUN ("marker-position", Fmarker_position, Smarker_position, 1, 1, 0,
|
||||
doc: /* Return the position MARKER points at, as a character number.
|
||||
Returns nil if MARKER points nowhere. */)
|
||||
(marker)
|
||||
Lisp_Object marker;
|
||||
(Lisp_Object marker)
|
||||
{
|
||||
CHECK_MARKER (marker);
|
||||
if (XMARKER (marker)->buffer)
|
||||
|
@ -470,8 +468,7 @@ BUFFER defaults to the current buffer.
|
|||
If POSITION is nil, makes marker point nowhere.
|
||||
Then it no longer slows down editing in any buffer.
|
||||
Returns MARKER. */)
|
||||
(marker, position, buffer)
|
||||
Lisp_Object marker, position, buffer;
|
||||
(Lisp_Object marker, Lisp_Object position, Lisp_Object buffer)
|
||||
{
|
||||
register int charno, bytepos;
|
||||
register struct buffer *b;
|
||||
|
@ -815,8 +812,7 @@ If argument is a number, makes a new marker pointing
|
|||
at that position in the current buffer.
|
||||
The optional argument TYPE specifies the insertion type of the new marker;
|
||||
see `marker-insertion-type'. */)
|
||||
(marker, type)
|
||||
register Lisp_Object marker, type;
|
||||
(register Lisp_Object marker, Lisp_Object type)
|
||||
{
|
||||
register Lisp_Object new;
|
||||
|
||||
|
@ -833,8 +829,7 @@ DEFUN ("marker-insertion-type", Fmarker_insertion_type,
|
|||
Smarker_insertion_type, 1, 1, 0,
|
||||
doc: /* Return insertion type of MARKER: t if it stays after inserted text.
|
||||
The value nil means the marker stays before text inserted there. */)
|
||||
(marker)
|
||||
register Lisp_Object marker;
|
||||
(register Lisp_Object marker)
|
||||
{
|
||||
CHECK_MARKER (marker);
|
||||
return XMARKER (marker)->insertion_type ? Qt : Qnil;
|
||||
|
@ -845,8 +840,7 @@ DEFUN ("set-marker-insertion-type", Fset_marker_insertion_type,
|
|||
doc: /* Set the insertion-type of MARKER to TYPE.
|
||||
If TYPE is t, it means the marker advances when you insert text at it.
|
||||
If TYPE is nil, it means the marker stays behind when you insert text at it. */)
|
||||
(marker, type)
|
||||
Lisp_Object marker, type;
|
||||
(Lisp_Object marker, Lisp_Object type)
|
||||
{
|
||||
CHECK_MARKER (marker);
|
||||
|
||||
|
@ -857,8 +851,7 @@ If TYPE is nil, it means the marker stays behind when you insert text at it. */
|
|||
DEFUN ("buffer-has-markers-at", Fbuffer_has_markers_at, Sbuffer_has_markers_at,
|
||||
1, 1, 0,
|
||||
doc: /* Return t if there are markers pointing at POSITION in the current buffer. */)
|
||||
(position)
|
||||
Lisp_Object position;
|
||||
(Lisp_Object position)
|
||||
{
|
||||
register struct Lisp_Marker *tail;
|
||||
register int charno;
|
||||
|
|
|
@ -1064,8 +1064,7 @@ keyboard input, then this normally results in a quit and
|
|||
`x-popup-menu' does not return. But if POSITION is a mouse button
|
||||
event (indicating that the user invoked the menu with the mouse) then
|
||||
no quit occurs and `x-popup-menu' returns nil. */)
|
||||
(position, menu)
|
||||
Lisp_Object position, menu;
|
||||
(Lisp_Object position, Lisp_Object menu)
|
||||
{
|
||||
Lisp_Object keymap, tem;
|
||||
int xpos = 0, ypos = 0;
|
||||
|
|
|
@ -204,8 +204,7 @@ DEFUN ("set-minibuffer-window", Fset_minibuffer_window,
|
|||
doc: /* Specify which minibuffer window to use for the minibuffer.
|
||||
This affects where the minibuffer is displayed if you put text in it
|
||||
without invoking the usual minibuffer commands. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
CHECK_WINDOW (window);
|
||||
if (! MINI_WINDOW_P (XWINDOW (window)))
|
||||
|
@ -340,8 +339,7 @@ DEFUN ("minibufferp", Fminibufferp,
|
|||
doc: /* Return t if BUFFER is a minibuffer.
|
||||
No argument or nil as argument means use current buffer as BUFFER.
|
||||
BUFFER can be a buffer or a buffer name. */)
|
||||
(buffer)
|
||||
Lisp_Object buffer;
|
||||
(Lisp_Object buffer)
|
||||
{
|
||||
Lisp_Object tem;
|
||||
|
||||
|
@ -360,7 +358,7 @@ DEFUN ("minibuffer-prompt-end", Fminibuffer_prompt_end,
|
|||
Sminibuffer_prompt_end, 0, 0, 0,
|
||||
doc: /* Return the buffer position of the end of the minibuffer prompt.
|
||||
Return (point-min) if current buffer is not a minibuffer. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
/* This function is written to be most efficient when there's a prompt. */
|
||||
Lisp_Object beg, end, tem;
|
||||
|
@ -382,7 +380,7 @@ DEFUN ("minibuffer-contents", Fminibuffer_contents,
|
|||
Sminibuffer_contents, 0, 0, 0,
|
||||
doc: /* Return the user input in a minibuffer as a string.
|
||||
If the current buffer is not a minibuffer, return its entire contents. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
int prompt_end = XINT (Fminibuffer_prompt_end ());
|
||||
return make_buffer_string (prompt_end, ZV, 1);
|
||||
|
@ -392,7 +390,7 @@ DEFUN ("minibuffer-contents-no-properties", Fminibuffer_contents_no_properties,
|
|||
Sminibuffer_contents_no_properties, 0, 0, 0,
|
||||
doc: /* Return the user input in a minibuffer as a string, without text-properties.
|
||||
If the current buffer is not a minibuffer, return its entire contents. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
int prompt_end = XINT (Fminibuffer_prompt_end ());
|
||||
return make_buffer_string (prompt_end, ZV, 0);
|
||||
|
@ -403,7 +401,7 @@ DEFUN ("minibuffer-completion-contents", Fminibuffer_completion_contents,
|
|||
doc: /* Return the user input in a minibuffer before point as a string.
|
||||
That is what completion commands operate on.
|
||||
If the current buffer is not a minibuffer, return its entire contents. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
int prompt_end = XINT (Fminibuffer_prompt_end ());
|
||||
if (PT < prompt_end)
|
||||
|
@ -996,9 +994,7 @@ POSITION in the minibuffer. Any integer value less than or equal to
|
|||
one puts point at the beginning of the string. *Note* that this
|
||||
behavior differs from the way such arguments are used in `completing-read'
|
||||
and some related functions, which use zero-indexing for POSITION. */)
|
||||
(prompt, initial_contents, keymap, read, hist, default_value, inherit_input_method)
|
||||
Lisp_Object prompt, initial_contents, keymap, read, hist, default_value;
|
||||
Lisp_Object inherit_input_method;
|
||||
(Lisp_Object prompt, Lisp_Object initial_contents, Lisp_Object keymap, Lisp_Object read, Lisp_Object hist, Lisp_Object default_value, Lisp_Object inherit_input_method)
|
||||
{
|
||||
Lisp_Object histvar, histpos, val;
|
||||
struct gcpro gcpro1;
|
||||
|
@ -1040,8 +1036,7 @@ Prompt with PROMPT. If non-nil, optional second arg INITIAL-CONTENTS
|
|||
is a string to insert in the minibuffer before reading.
|
||||
\(INITIAL-CONTENTS can also be a cons of a string and an integer.
|
||||
Such arguments are used as in `read-from-minibuffer'.) */)
|
||||
(prompt, initial_contents)
|
||||
Lisp_Object prompt, initial_contents;
|
||||
(Lisp_Object prompt, Lisp_Object initial_contents)
|
||||
{
|
||||
CHECK_STRING (prompt);
|
||||
return read_minibuf (Vminibuffer_local_map, initial_contents,
|
||||
|
@ -1055,8 +1050,7 @@ Prompt with PROMPT. If non-nil, optional second arg INITIAL-CONTENTS
|
|||
is a string to insert in the minibuffer before reading.
|
||||
\(INITIAL-CONTENTS can also be a cons of a string and an integer.
|
||||
Such arguments are used as in `read-from-minibuffer'.) */)
|
||||
(prompt, initial_contents)
|
||||
Lisp_Object prompt, initial_contents;
|
||||
(Lisp_Object prompt, Lisp_Object initial_contents)
|
||||
{
|
||||
return Feval (read_minibuf (Vread_expression_map, initial_contents,
|
||||
prompt, Qnil, 1, Qread_expression_history,
|
||||
|
@ -1080,9 +1074,7 @@ Fourth arg DEFAULT-VALUE is the default value or the list of default values.
|
|||
empty string.
|
||||
Fifth arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits
|
||||
the current input method and the setting of `enable-multibyte-characters'. */)
|
||||
(prompt, initial_input, history, default_value, inherit_input_method)
|
||||
Lisp_Object prompt, initial_input, history, default_value;
|
||||
Lisp_Object inherit_input_method;
|
||||
(Lisp_Object prompt, Lisp_Object initial_input, Lisp_Object history, Lisp_Object default_value, Lisp_Object inherit_input_method)
|
||||
{
|
||||
Lisp_Object val;
|
||||
val = Fread_from_minibuffer (prompt, initial_input, Qnil,
|
||||
|
@ -1103,8 +1095,7 @@ Such values are treated as in `read-from-minibuffer', but are normally
|
|||
not useful in this function.)
|
||||
Third arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits
|
||||
the current input method and the setting of`enable-multibyte-characters'. */)
|
||||
(prompt, initial, inherit_input_method)
|
||||
Lisp_Object prompt, initial, inherit_input_method;
|
||||
(Lisp_Object prompt, Lisp_Object initial, Lisp_Object inherit_input_method)
|
||||
{
|
||||
CHECK_STRING (prompt);
|
||||
return read_minibuf (Vminibuffer_local_ns_map, initial, prompt, Qnil,
|
||||
|
@ -1116,8 +1107,7 @@ DEFUN ("read-command", Fread_command, Sread_command, 1, 2, 0,
|
|||
doc: /* Read the name of a command and return as a symbol.
|
||||
Prompt with PROMPT. By default, return DEFAULT-VALUE or its first element
|
||||
if it is a list. */)
|
||||
(prompt, default_value)
|
||||
Lisp_Object prompt, default_value;
|
||||
(Lisp_Object prompt, Lisp_Object default_value)
|
||||
{
|
||||
Lisp_Object name, default_string;
|
||||
|
||||
|
@ -1139,8 +1129,7 @@ if it is a list. */)
|
|||
DEFUN ("read-function", Fread_function, Sread_function, 1, 1, 0,
|
||||
doc: /* One arg PROMPT, a string. Read the name of a function and return as a symbol.
|
||||
Prompt with PROMPT. */)
|
||||
(prompt)
|
||||
Lisp_Object prompt;
|
||||
(Lisp_Object prompt)
|
||||
{
|
||||
return Fintern (Fcompleting_read (prompt, Vobarray, Qfboundp, Qt, Qnil, Qnil, Qnil, Qnil),
|
||||
Qnil);
|
||||
|
@ -1152,8 +1141,7 @@ DEFUN ("read-variable", Fread_variable, Sread_variable, 1, 2, 0,
|
|||
Prompt with PROMPT. By default, return DEFAULT-VALUE or its first element
|
||||
if it is a list.
|
||||
A user variable is one for which `user-variable-p' returns non-nil. */)
|
||||
(prompt, default_value)
|
||||
Lisp_Object prompt, default_value;
|
||||
(Lisp_Object prompt, Lisp_Object default_value)
|
||||
{
|
||||
Lisp_Object name, default_string;
|
||||
|
||||
|
@ -1185,8 +1173,7 @@ If `read-buffer-completion-ignore-case' is non-nil, completion ignores
|
|||
case while reading the buffer name.
|
||||
If `read-buffer-function' is non-nil, this works by calling it as a
|
||||
function, instead of the usual behavior. */)
|
||||
(prompt, def, require_match)
|
||||
Lisp_Object prompt, def, require_match;
|
||||
(Lisp_Object prompt, Lisp_Object def, Lisp_Object require_match)
|
||||
{
|
||||
Lisp_Object args[4], result;
|
||||
unsigned char *s;
|
||||
|
@ -1286,8 +1273,7 @@ or the symbol from the obarray. If COLLECTION is a hash-table,
|
|||
predicate is called with two arguments: the key and the value.
|
||||
Additionally to this predicate, `completion-regexp-list'
|
||||
is used to further constrain the set of candidates. */)
|
||||
(string, collection, predicate)
|
||||
Lisp_Object string, collection, predicate;
|
||||
(Lisp_Object string, Lisp_Object collection, Lisp_Object predicate)
|
||||
{
|
||||
Lisp_Object bestmatch, tail, elt, eltstring;
|
||||
/* Size in bytes of BESTMATCH. */
|
||||
|
@ -1558,8 +1544,7 @@ is used to further constrain the set of candidates.
|
|||
An obsolete optional fourth argument HIDE-SPACES is still accepted for
|
||||
backward compatibility. If non-nil, strings in COLLECTION that start
|
||||
with a space are ignored unless STRING itself starts with a space. */)
|
||||
(string, collection, predicate, hide_spaces)
|
||||
Lisp_Object string, collection, predicate, hide_spaces;
|
||||
(Lisp_Object string, Lisp_Object collection, Lisp_Object predicate, Lisp_Object hide_spaces)
|
||||
{
|
||||
Lisp_Object tail, elt, eltstring;
|
||||
Lisp_Object allmatches;
|
||||
|
@ -1768,9 +1753,7 @@ If INHERIT-INPUT-METHOD is non-nil, the minibuffer inherits
|
|||
|
||||
Completion ignores case if the ambient value of
|
||||
`completion-ignore-case' is non-nil. */)
|
||||
(prompt, collection, predicate, require_match, initial_input, hist, def, inherit_input_method)
|
||||
Lisp_Object prompt, collection, predicate, require_match, initial_input;
|
||||
Lisp_Object hist, def, inherit_input_method;
|
||||
(Lisp_Object prompt, Lisp_Object collection, Lisp_Object predicate, Lisp_Object require_match, Lisp_Object initial_input, Lisp_Object hist, Lisp_Object def, Lisp_Object inherit_input_method)
|
||||
{
|
||||
Lisp_Object val, histvar, histpos, position;
|
||||
Lisp_Object init;
|
||||
|
@ -1845,8 +1828,7 @@ DEFUN ("test-completion", Ftest_completion, Stest_completion, 2, 3, 0,
|
|||
Takes the same arguments as `all-completions' and `try-completion'.
|
||||
If COLLECTION is a function, it is called with three arguments:
|
||||
the values STRING, PREDICATE and `lambda'. */)
|
||||
(string, collection, predicate)
|
||||
Lisp_Object string, collection, predicate;
|
||||
(Lisp_Object string, Lisp_Object collection, Lisp_Object predicate)
|
||||
{
|
||||
Lisp_Object regexps, tail, tem = Qnil;
|
||||
int i = 0;
|
||||
|
@ -1964,8 +1946,7 @@ If the argument FLAG is nil, invoke `try-completion', if it's t, invoke
|
|||
|
||||
The arguments STRING and PREDICATE are as in `try-completion',
|
||||
`all-completions', and `test-completion'. */)
|
||||
(string, predicate, flag)
|
||||
Lisp_Object string, predicate, flag;
|
||||
(Lisp_Object string, Lisp_Object predicate, Lisp_Object flag)
|
||||
{
|
||||
if (NILP (flag))
|
||||
return Ftry_completion (string, Vbuffer_alist, predicate);
|
||||
|
@ -2009,9 +1990,7 @@ is ignored.
|
|||
|
||||
Unlike `assoc', KEY can also match an entry in LIST consisting of a
|
||||
single string, rather than a cons cell whose car is a string. */)
|
||||
(key, list, case_fold)
|
||||
register Lisp_Object key;
|
||||
Lisp_Object list, case_fold;
|
||||
(register Lisp_Object key, Lisp_Object list, Lisp_Object case_fold)
|
||||
{
|
||||
register Lisp_Object tail;
|
||||
|
||||
|
@ -2040,7 +2019,7 @@ single string, rather than a cons cell whose car is a string. */)
|
|||
|
||||
DEFUN ("minibuffer-depth", Fminibuffer_depth, Sminibuffer_depth, 0, 0, 0,
|
||||
doc: /* Return current depth of activations of minibuffer, a nonnegative integer. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return make_number (minibuf_level);
|
||||
}
|
||||
|
@ -2048,7 +2027,7 @@ DEFUN ("minibuffer-depth", Fminibuffer_depth, Sminibuffer_depth, 0, 0, 0,
|
|||
DEFUN ("minibuffer-prompt", Fminibuffer_prompt, Sminibuffer_prompt, 0, 0, 0,
|
||||
doc: /* Return the prompt string of the currently-active minibuffer.
|
||||
If no minibuffer is active, return nil. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return Fcopy_sequence (minibuf_prompt);
|
||||
}
|
||||
|
|
13
src/msdos.c
13
src/msdos.c
|
@ -195,8 +195,7 @@ DEFUN ("msdos-set-mouse-buttons", Fmsdos_set_mouse_buttons, Smsdos_set_mouse_but
|
|||
This is useful with mice that report the number of buttons inconsistently,
|
||||
e.g., if the number of buttons is reported as 3, but Emacs only sees 2 of
|
||||
them. This happens with wheeled mice on Windows 9X, for example. */)
|
||||
(nbuttons)
|
||||
Lisp_Object nbuttons;
|
||||
(Lisp_Object nbuttons)
|
||||
{
|
||||
int n;
|
||||
|
||||
|
@ -2045,8 +2044,7 @@ IT_set_terminal_window (struct frame *f, int foo)
|
|||
DEFUN ("msdos-remember-default-colors", Fmsdos_remember_default_colors,
|
||||
Smsdos_remember_default_colors, 1, 1, 0,
|
||||
doc: /* Remember the screen colors of the current frame. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
struct frame *f;
|
||||
|
||||
|
@ -2920,7 +2918,7 @@ DEFUN ("recent-doskeys", Frecent_doskeys, Srecent_doskeys, 0, 0, 0,
|
|||
doc: /* Return vector of last 100 keyboard input values seen in dos_rawgetc.
|
||||
Each input key receives two values in this vector: first the ASCII code,
|
||||
and then the scan code. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object val, *keys = XVECTOR (recent_doskeys)->contents;
|
||||
|
||||
|
@ -3954,7 +3952,7 @@ crlf_to_lf (int n, unsigned char *buf)
|
|||
DEFUN ("msdos-long-file-names", Fmsdos_long_file_names, Smsdos_long_file_names,
|
||||
0, 0, 0,
|
||||
doc: /* Return non-nil if long file names are supported on MS-DOS. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return (_USE_LFN ? Qt : Qnil);
|
||||
}
|
||||
|
@ -3988,8 +3986,7 @@ DEFUN ("msdos-downcase-filename", Fmsdos_downcase_filename, Smsdos_downcase_file
|
|||
When long filenames are supported, doesn't change FILENAME.
|
||||
If FILENAME is not a string, returns nil.
|
||||
The argument object is never altered--the value is a copy. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
Lisp_Object tem;
|
||||
|
||||
|
|
112
src/nsfns.m
112
src/nsfns.m
|
@ -1063,8 +1063,7 @@ Turn the input menu (an NSMenu) into a lisp list for tracking on lisp side
|
|||
and do not specify a specific minibuffer window to use,
|
||||
then `default-minibuffer-frame' must be a frame whose minibuffer can
|
||||
be shared by the new frame. */)
|
||||
(parms)
|
||||
Lisp_Object parms;
|
||||
(Lisp_Object parms)
|
||||
{
|
||||
static int desc_ctr = 1;
|
||||
struct frame *f;
|
||||
|
@ -1373,8 +1372,7 @@ Turn the input menu (an NSMenu) into a lisp list for tracking on lisp side
|
|||
DEFUN ("x-focus-frame", Fx_focus_frame, Sx_focus_frame, 1, 1, 0,
|
||||
doc: /* Set the input focus to FRAME.
|
||||
FRAME nil means use the selected frame. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
struct frame *f = check_ns_frame (frame);
|
||||
struct ns_display_info *dpyinfo = FRAME_NS_DISPLAY_INFO (f);
|
||||
|
@ -1395,8 +1393,7 @@ Turn the input menu (an NSMenu) into a lisp list for tracking on lisp side
|
|||
DEFUN ("ns-popup-font-panel", Fns_popup_font_panel, Sns_popup_font_panel,
|
||||
0, 1, "",
|
||||
doc: /* Pop up the font panel. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
id fm;
|
||||
struct frame *f;
|
||||
|
@ -1421,8 +1418,7 @@ Turn the input menu (an NSMenu) into a lisp list for tracking on lisp side
|
|||
DEFUN ("ns-popup-color-panel", Fns_popup_color_panel, Sns_popup_color_panel,
|
||||
0, 1, "",
|
||||
doc: /* Pop up the color panel. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
struct frame *f;
|
||||
|
||||
|
@ -1445,8 +1441,7 @@ Turn the input menu (an NSMenu) into a lisp list for tracking on lisp side
|
|||
Optional arg DIR, if non-nil, supplies a default directory.
|
||||
Optional arg ISLOAD, if non-nil, means read a file name for saving.
|
||||
Optional arg INIT, if non-nil, provides a default file name to use. */)
|
||||
(prompt, dir, isLoad, init)
|
||||
Lisp_Object prompt, dir, isLoad, init;
|
||||
(Lisp_Object prompt, Lisp_Object dir, Lisp_Object isLoad, Lisp_Object init)
|
||||
{
|
||||
static id fileDelegate = nil;
|
||||
int ret;
|
||||
|
@ -1510,8 +1505,7 @@ Turn the input menu (an NSMenu) into a lisp list for tracking on lisp side
|
|||
DEFUN ("ns-get-resource", Fns_get_resource, Sns_get_resource, 2, 2, 0,
|
||||
doc: /* Return the value of the property NAME of OWNER from the defaults database.
|
||||
If OWNER is nil, Emacs is assumed. */)
|
||||
(owner, name)
|
||||
Lisp_Object owner, name;
|
||||
(Lisp_Object owner, Lisp_Object name)
|
||||
{
|
||||
const char *value;
|
||||
|
||||
|
@ -1535,8 +1529,7 @@ Turn the input menu (an NSMenu) into a lisp list for tracking on lisp side
|
|||
doc: /* Set property NAME of OWNER to VALUE, from the defaults database.
|
||||
If OWNER is nil, Emacs is assumed.
|
||||
If VALUE is nil, the default is removed. */)
|
||||
(owner, name, value)
|
||||
Lisp_Object owner, name, value;
|
||||
(Lisp_Object owner, Lisp_Object name, Lisp_Object value)
|
||||
{
|
||||
check_ns ();
|
||||
if (NILP (owner))
|
||||
|
@ -1564,8 +1557,7 @@ Turn the input menu (an NSMenu) into a lisp list for tracking on lisp side
|
|||
Sx_server_max_request_size,
|
||||
0, 1, 0,
|
||||
doc: /* This function is a no-op. It is only present for completeness. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
check_ns ();
|
||||
/* This function has no real equivalent under NeXTstep. Return nil to
|
||||
|
@ -1578,8 +1570,7 @@ Turn the input menu (an NSMenu) into a lisp list for tracking on lisp side
|
|||
doc: /* Return the vendor ID string of Nextstep display server DISPLAY.
|
||||
DISPLAY should be either a frame or a display name (a string).
|
||||
If omitted or nil, the selected frame's display is used. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
#ifdef NS_IMPL_GNUSTEP
|
||||
return build_string ("GNU");
|
||||
|
@ -1598,8 +1589,7 @@ DISPLAY should be either a frame or a display name (a string).
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
/*NOTE: it is unclear what would best correspond with "protocol";
|
||||
we return 10.3, meaning Panther, since this is roughly the
|
||||
|
@ -1617,8 +1607,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
doc: /* Return the number of screens on Nextstep display server DISPLAY.
|
||||
DISPLAY should be a frame, the display name as a string, or a terminal ID.
|
||||
If omitted or nil, the selected frame's display is used. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
int num;
|
||||
|
||||
|
@ -1634,8 +1623,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
doc: /* Return the height of Nextstep display server DISPLAY, in millimeters.
|
||||
DISPLAY should be a frame, the display name as a string, or a terminal ID.
|
||||
If omitted or nil, the selected frame's display is used. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
check_ns ();
|
||||
return make_number ((int)
|
||||
|
@ -1648,8 +1636,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
doc: /* Return the width of Nextstep display server DISPLAY, in millimeters.
|
||||
DISPLAY should be a frame, the display name as a string, or a terminal ID.
|
||||
If omitted or nil, the selected frame's display is used. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
check_ns ();
|
||||
return make_number ((int)
|
||||
|
@ -1663,8 +1650,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
The value may be `buffered', `retained', or `non-retained'.
|
||||
DISPLAY should be a frame, the display name as a string, or a terminal ID.
|
||||
If omitted or nil, the selected frame's display is used. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
check_ns ();
|
||||
switch ([ns_get_window (display) backingType])
|
||||
|
@ -1689,8 +1675,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
`static-color', `pseudo-color', `true-color', or `direct-color'.
|
||||
DISPLAY should be a frame, the display name as a string, or a terminal ID.
|
||||
If omitted or nil, the selected frame's display is used. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
NSWindowDepth depth;
|
||||
check_ns ();
|
||||
|
@ -1718,8 +1703,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be a frame, the display name as a string, or a terminal ID.
|
||||
If omitted or nil, the selected frame's display is used. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
check_ns ();
|
||||
switch ([ns_get_window (display) backingType])
|
||||
|
@ -1743,8 +1727,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
doc: /* Open a connection to a Nextstep display server.
|
||||
DISPLAY is the name of the display to connect to.
|
||||
Optional arguments XRM-STRING and MUST-SUCCEED are currently ignored. */)
|
||||
(display, resource_string, must_succeed)
|
||||
Lisp_Object display, resource_string, must_succeed;
|
||||
(Lisp_Object display, Lisp_Object resource_string, Lisp_Object must_succeed)
|
||||
{
|
||||
struct ns_display_info *dpyinfo;
|
||||
|
||||
|
@ -1782,8 +1765,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
1, 1, 0,
|
||||
doc: /* Close the connection to the current Nextstep display server.
|
||||
The argument DISPLAY is currently ignored. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
check_ns ();
|
||||
/*ns_delete_terminal (dpyinfo->terminal); */
|
||||
|
@ -1794,7 +1776,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
|
||||
DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0,
|
||||
doc: /* Return the list of display names that Emacs has connections to. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object tail, result;
|
||||
|
||||
|
@ -1809,7 +1791,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
DEFUN ("ns-hide-others", Fns_hide_others, Sns_hide_others,
|
||||
0, 0, 0,
|
||||
doc: /* Hides all applications other than Emacs. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
check_ns ();
|
||||
[NSApp hideOtherApplications: NSApp];
|
||||
|
@ -1822,8 +1804,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
Otherwise if Emacs is hidden, it is unhidden.
|
||||
If ON is equal to `activate', Emacs is unhidden and becomes
|
||||
the active application. */)
|
||||
(on)
|
||||
Lisp_Object on;
|
||||
(Lisp_Object on)
|
||||
{
|
||||
check_ns ();
|
||||
if (EQ (on, intern ("activate")))
|
||||
|
@ -1842,7 +1823,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
DEFUN ("ns-emacs-info-panel", Fns_emacs_info_panel, Sns_emacs_info_panel,
|
||||
0, 0, 0,
|
||||
doc: /* Shows the 'Info' or 'About' panel for Emacs. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
check_ns ();
|
||||
[NSApp orderFrontStandardAboutPanel: nil];
|
||||
|
@ -1855,8 +1836,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
NAME should be a string containing either the font name or an XLFD
|
||||
font descriptor. If string contains `fontset' and not
|
||||
`fontset-startup', it is left alone. */)
|
||||
(name)
|
||||
Lisp_Object name;
|
||||
(Lisp_Object name)
|
||||
{
|
||||
char *nm;
|
||||
CHECK_STRING (name);
|
||||
|
@ -1874,8 +1854,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
DEFUN ("ns-list-colors", Fns_list_colors, Sns_list_colors, 0, 1, 0,
|
||||
doc: /* Return a list of all available colors.
|
||||
The optional argument FRAME is currently ignored. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object list = Qnil;
|
||||
NSEnumerator *colorlists;
|
||||
|
@ -1914,7 +1893,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
|
||||
DEFUN ("ns-list-services", Fns_list_services, Sns_list_services, 0, 0, 0,
|
||||
doc: /* List available Nextstep services by querying NSApp. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object ret = Qnil;
|
||||
NSMenu *svcs;
|
||||
|
@ -1968,8 +1947,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
SEND should be either a string or nil.
|
||||
The return value is the result of the service, as string, or nil if
|
||||
there was no result. */)
|
||||
(service, send)
|
||||
Lisp_Object service, send;
|
||||
(Lisp_Object service, Lisp_Object send)
|
||||
{
|
||||
id pb;
|
||||
NSString *svcName;
|
||||
|
@ -1997,8 +1975,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
DEFUN ("ns-convert-utf8-nfd-to-nfc", Fns_convert_utf8_nfd_to_nfc,
|
||||
Sns_convert_utf8_nfd_to_nfc, 1, 1, 0,
|
||||
doc: /* Return an NFC string that matches the UTF-8 NFD string STR. */)
|
||||
(str)
|
||||
Lisp_Object str;
|
||||
(Lisp_Object str)
|
||||
{
|
||||
/* TODO: If GNUstep ever implements precomposedStringWithCanonicalMapping,
|
||||
remove this. */
|
||||
|
@ -2085,8 +2062,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
If compilation and execution are successful, the resulting script value
|
||||
is returned as a string, a number or, in the case of other constructs, t.
|
||||
In case the execution fails, an error is signaled. */)
|
||||
(script)
|
||||
Lisp_Object script;
|
||||
(Lisp_Object script)
|
||||
{
|
||||
Lisp_Object result;
|
||||
long status;
|
||||
|
@ -2231,8 +2207,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0,
|
||||
doc: /* Return t if the current Nextstep display supports the color COLOR.
|
||||
The optional argument FRAME is currently ignored. */)
|
||||
(color, frame)
|
||||
Lisp_Object color, frame;
|
||||
(Lisp_Object color, Lisp_Object frame)
|
||||
{
|
||||
NSColor * col;
|
||||
check_ns ();
|
||||
|
@ -2242,8 +2217,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
|
||||
DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0,
|
||||
doc: /* Internal function called by `color-values', which see. */)
|
||||
(color, frame)
|
||||
Lisp_Object color, frame;
|
||||
(Lisp_Object color, Lisp_Object frame)
|
||||
{
|
||||
NSColor * col;
|
||||
CGFloat red, green, blue, alpha;
|
||||
|
@ -2267,8 +2241,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame, a display name (a string), or terminal ID.
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
NSWindowDepth depth;
|
||||
NSString *colorSpace;
|
||||
|
@ -2289,8 +2262,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame, a display name (a string), or terminal ID.
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
NSWindowDepth depth;
|
||||
check_ns ();
|
||||
|
@ -2306,8 +2278,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame, a display name (a string), or terminal ID.
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
check_ns ();
|
||||
return make_number ((int) [ns_get_screen (display) frame].size.width);
|
||||
|
@ -2320,8 +2291,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame, a display name (a string), or terminal ID.
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
check_ns ();
|
||||
return make_number ((int) [ns_get_screen (display) frame].size.height);
|
||||
|
@ -2338,8 +2308,7 @@ The return value is a list of integers (LEFT TOP WIDTH HEIGHT), which
|
|||
The screen queried corresponds to DISPLAY, which should be either a
|
||||
frame, a display name (a string), or terminal ID. If omitted or nil,
|
||||
that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
int top;
|
||||
NSScreen *screen;
|
||||
|
@ -2368,8 +2337,7 @@ The return value is a list of integers (LEFT TOP WIDTH HEIGHT), which
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame, a display name (a string), or terminal ID.
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
check_ns ();
|
||||
return make_number
|
||||
|
@ -2383,8 +2351,7 @@ The return value is a list of integers (LEFT TOP WIDTH HEIGHT), which
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame, a display name (a string), or terminal ID.
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
struct ns_display_info *dpyinfo;
|
||||
check_ns ();
|
||||
|
@ -2482,8 +2449,7 @@ DY added (default is -10).
|
|||
|
||||
A tooltip's maximum size is specified by `x-max-tooltip-size'.
|
||||
Text larger than the specified size is clipped. */)
|
||||
(string, frame, parms, timeout, dx, dy)
|
||||
Lisp_Object string, frame, parms, timeout, dx, dy;
|
||||
(Lisp_Object string, Lisp_Object frame, Lisp_Object parms, Lisp_Object timeout, Lisp_Object dx, Lisp_Object dy)
|
||||
{
|
||||
int root_x, root_y;
|
||||
struct gcpro gcpro1, gcpro2, gcpro3, gcpro4;
|
||||
|
@ -2539,7 +2505,7 @@ DY added (default is -10).
|
|||
DEFUN ("x-hide-tip", Fx_hide_tip, Sx_hide_tip, 0, 0, 0,
|
||||
doc: /* Hide the current tooltip window, if there is any.
|
||||
Value is t if tooltip was open, nil otherwise. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (ns_tooltip == nil || ![ns_tooltip isActive])
|
||||
return Qnil;
|
||||
|
|
|
@ -1752,7 +1752,7 @@ - (Lisp_Object)runDialogAt: (NSPoint)p
|
|||
|
||||
DEFUN ("ns-reset-menu", Fns_reset_menu, Sns_reset_menu, 0, 0, 0,
|
||||
doc: /* Cause the NS menu to be re-calculated. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
set_frame_menubar (SELECTED_FRAME (), 1, 0);
|
||||
return Qnil;
|
||||
|
@ -1782,15 +1782,14 @@ Each ITEM is a cons cell (STRING . VALUE).
|
|||
If the user gets rid of the dialog box without making a valid choice,
|
||||
for instance using the window manager, then this produces a quit and
|
||||
`x-popup-dialog' does not return. */)
|
||||
(position, contents, header)
|
||||
Lisp_Object position, contents, header;
|
||||
(Lisp_Object position, Lisp_Object contents, Lisp_Object header)
|
||||
{
|
||||
return ns_popup_dialog (position, contents, header);
|
||||
}
|
||||
|
||||
DEFUN ("menu-or-popup-active-p", Fmenu_or_popup_active_p, Smenu_or_popup_active_p, 0, 0, 0,
|
||||
doc: /* Return t if a menu or popup dialog is active. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return popup_activated () ? Qt : Qnil;
|
||||
}
|
||||
|
|
|
@ -378,8 +378,7 @@ Updated by Christian Limpach (chris@nice.ch)
|
|||
SELECTION-NAME is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'.
|
||||
VALUE is typically a string, or a cons of two markers, but may be
|
||||
anything that the functions on `selection-converter-alist' know about. */)
|
||||
(selection_name, selection_value)
|
||||
Lisp_Object selection_name, selection_value;
|
||||
(Lisp_Object selection_name, Lisp_Object selection_value)
|
||||
{
|
||||
id pb;
|
||||
Lisp_Object old_value, new_value;
|
||||
|
@ -413,8 +412,7 @@ Updated by Christian Limpach (chris@nice.ch)
|
|||
DEFUN ("x-disown-selection-internal", Fx_disown_selection_internal,
|
||||
Sx_disown_selection_internal, 1, 2, 0,
|
||||
doc: /* If we own the selection SELECTION, disown it. */)
|
||||
(selection_name, time)
|
||||
Lisp_Object selection_name, time;
|
||||
(Lisp_Object selection_name, Lisp_Object time)
|
||||
{
|
||||
id pb;
|
||||
check_ns ();
|
||||
|
@ -434,8 +432,7 @@ Updated by Christian Limpach (chris@nice.ch)
|
|||
\(Those are literal upper-case symbol names.)
|
||||
For convenience, the symbol nil is the same as `PRIMARY',
|
||||
and t is the same as `SECONDARY'.) */)
|
||||
(selection)
|
||||
Lisp_Object selection;
|
||||
(Lisp_Object selection)
|
||||
{
|
||||
id pb;
|
||||
NSArray *types;
|
||||
|
@ -458,8 +455,7 @@ Updated by Christian Limpach (chris@nice.ch)
|
|||
\(Those are literal upper-case symbol names.)
|
||||
For convenience, the symbol nil is the same as `PRIMARY',
|
||||
and t is the same as `SECONDARY'.) */)
|
||||
(selection)
|
||||
Lisp_Object selection;
|
||||
(Lisp_Object selection)
|
||||
{
|
||||
check_ns ();
|
||||
CHECK_SYMBOL (selection);
|
||||
|
@ -475,8 +471,7 @@ Updated by Christian Limpach (chris@nice.ch)
|
|||
SELECTION is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'.
|
||||
\(Those are literal upper-case symbol names.)
|
||||
TYPE is the type of data desired, typically `STRING'. */)
|
||||
(selection_name, target_type)
|
||||
Lisp_Object selection_name, target_type;
|
||||
(Lisp_Object selection_name, Lisp_Object target_type)
|
||||
{
|
||||
Lisp_Object val;
|
||||
|
||||
|
@ -501,8 +496,7 @@ Updated by Christian Limpach (chris@nice.ch)
|
|||
DEFUN ("ns-get-cut-buffer-internal", Fns_get_cut_buffer_internal,
|
||||
Sns_get_cut_buffer_internal, 1, 1, 0,
|
||||
doc: /* Returns the value of the named cut buffer. */)
|
||||
(buffer)
|
||||
Lisp_Object buffer;
|
||||
(Lisp_Object buffer)
|
||||
{
|
||||
id pb;
|
||||
check_ns ();
|
||||
|
@ -516,8 +510,7 @@ Updated by Christian Limpach (chris@nice.ch)
|
|||
doc: /* Rotate the values of the cut buffers by N steps.
|
||||
Positive N means move values forward, negative means
|
||||
backward. CURRENTLY NOT IMPLEMENTED UNDER NEXTSTEP. */ )
|
||||
(n)
|
||||
Lisp_Object n;
|
||||
(Lisp_Object n)
|
||||
{
|
||||
/* XXX This function is unimplemented under NeXTstep XXX */
|
||||
Fsignal (Qquit, Fcons (build_string (
|
||||
|
@ -529,8 +522,7 @@ Updated by Christian Limpach (chris@nice.ch)
|
|||
DEFUN ("ns-store-cut-buffer-internal", Fns_store_cut_buffer_internal,
|
||||
Sns_store_cut_buffer_internal, 2, 2, 0,
|
||||
doc: /* Sets the value of the named cut buffer (typically CUT_BUFFER0). */)
|
||||
(buffer, string)
|
||||
Lisp_Object buffer, string;
|
||||
(Lisp_Object buffer, Lisp_Object string)
|
||||
{
|
||||
id pb;
|
||||
check_ns ();
|
||||
|
|
30
src/print.c
30
src/print.c
|
@ -522,8 +522,7 @@ print_string (Lisp_Object string, Lisp_Object printcharfun)
|
|||
DEFUN ("write-char", Fwrite_char, Swrite_char, 1, 2, 0,
|
||||
doc: /* Output character CHARACTER to stream PRINTCHARFUN.
|
||||
PRINTCHARFUN defaults to the value of `standard-output' (which see). */)
|
||||
(character, printcharfun)
|
||||
Lisp_Object character, printcharfun;
|
||||
(Lisp_Object character, Lisp_Object printcharfun)
|
||||
{
|
||||
PRINTDECLARE;
|
||||
|
||||
|
@ -653,8 +652,7 @@ temporarily selected. But it doesn't run `temp-buffer-show-hook'
|
|||
if it uses `temp-buffer-show-function'.
|
||||
|
||||
usage: (with-output-to-temp-buffer BUFNAME BODY...) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
struct gcpro gcpro1;
|
||||
Lisp_Object name;
|
||||
|
@ -686,8 +684,7 @@ static void print_object (Lisp_Object obj, register Lisp_Object printcharfun, in
|
|||
DEFUN ("terpri", Fterpri, Sterpri, 0, 1, 0,
|
||||
doc: /* Output a newline to stream PRINTCHARFUN.
|
||||
If PRINTCHARFUN is omitted or nil, the value of `standard-output' is used. */)
|
||||
(printcharfun)
|
||||
Lisp_Object printcharfun;
|
||||
(Lisp_Object printcharfun)
|
||||
{
|
||||
PRINTDECLARE;
|
||||
|
||||
|
@ -722,8 +719,7 @@ of these:
|
|||
|
||||
If PRINTCHARFUN is omitted, the value of `standard-output' (which see)
|
||||
is used instead. */)
|
||||
(object, printcharfun)
|
||||
Lisp_Object object, printcharfun;
|
||||
(Lisp_Object object, Lisp_Object printcharfun)
|
||||
{
|
||||
PRINTDECLARE;
|
||||
|
||||
|
@ -749,8 +745,7 @@ OBJECT is any of the Lisp data types: a number, a string, a symbol,
|
|||
a list, a buffer, a window, a frame, etc.
|
||||
|
||||
A printed representation of an object is text which describes that object. */)
|
||||
(object, noescape)
|
||||
Lisp_Object object, noescape;
|
||||
(Lisp_Object object, Lisp_Object noescape)
|
||||
{
|
||||
Lisp_Object printcharfun;
|
||||
/* struct gcpro gcpro1, gcpro2; */
|
||||
|
@ -818,8 +813,7 @@ of these:
|
|||
|
||||
If PRINTCHARFUN is omitted, the value of `standard-output' (which see)
|
||||
is used instead. */)
|
||||
(object, printcharfun)
|
||||
Lisp_Object object, printcharfun;
|
||||
(Lisp_Object object, Lisp_Object printcharfun)
|
||||
{
|
||||
PRINTDECLARE;
|
||||
|
||||
|
@ -854,8 +848,7 @@ of these:
|
|||
|
||||
If PRINTCHARFUN is omitted, the value of `standard-output' (which see)
|
||||
is used instead. */)
|
||||
(object, printcharfun)
|
||||
Lisp_Object object, printcharfun;
|
||||
(Lisp_Object object, Lisp_Object printcharfun)
|
||||
{
|
||||
PRINTDECLARE;
|
||||
struct gcpro gcpro1;
|
||||
|
@ -880,8 +873,7 @@ DEFUN ("external-debugging-output", Fexternal_debugging_output, Sexternal_debugg
|
|||
doc: /* Write CHARACTER to stderr.
|
||||
You can call print while debugging emacs, and pass it this function
|
||||
to make it write to the debugging output. */)
|
||||
(character)
|
||||
Lisp_Object character;
|
||||
(Lisp_Object character)
|
||||
{
|
||||
CHECK_NUMBER (character);
|
||||
putc (XINT (character), stderr);
|
||||
|
@ -923,8 +915,7 @@ DEFUN ("redirect-debugging-output", Fredirect_debugging_output, Sredirect_debugg
|
|||
If FILE is nil, reset target to the initial stderr stream.
|
||||
Optional arg APPEND non-nil (interactively, with prefix arg) means
|
||||
append to existing target file. */)
|
||||
(file, append)
|
||||
Lisp_Object file, append;
|
||||
(Lisp_Object file, Lisp_Object append)
|
||||
{
|
||||
if (initial_stderr_stream != NULL)
|
||||
{
|
||||
|
@ -982,8 +973,7 @@ DEFUN ("error-message-string", Ferror_message_string, Serror_message_string,
|
|||
doc: /* Convert an error value (ERROR-SYMBOL . DATA) to an error message.
|
||||
See Info anchor `(elisp)Definition of signal' for some details on how this
|
||||
error message is constructed. */)
|
||||
(obj)
|
||||
Lisp_Object obj;
|
||||
(Lisp_Object obj)
|
||||
{
|
||||
struct buffer *old = current_buffer;
|
||||
Lisp_Object value;
|
||||
|
|
213
src/process.c
213
src/process.c
|
@ -680,16 +680,14 @@ setup_process_coding_systems (Lisp_Object process)
|
|||
|
||||
DEFUN ("processp", Fprocessp, Sprocessp, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a process. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
return PROCESSP (object) ? Qt : Qnil;
|
||||
}
|
||||
|
||||
DEFUN ("get-process", Fget_process, Sget_process, 1, 1, 0,
|
||||
doc: /* Return the process named NAME, or nil if there is none. */)
|
||||
(name)
|
||||
register Lisp_Object name;
|
||||
(register Lisp_Object name)
|
||||
{
|
||||
if (PROCESSP (name))
|
||||
return name;
|
||||
|
@ -700,8 +698,7 @@ DEFUN ("get-process", Fget_process, Sget_process, 1, 1, 0,
|
|||
DEFUN ("get-buffer-process", Fget_buffer_process, Sget_buffer_process, 1, 1, 0,
|
||||
doc: /* Return the (or a) process associated with BUFFER.
|
||||
BUFFER may be a buffer or the name of one. */)
|
||||
(buffer)
|
||||
register Lisp_Object buffer;
|
||||
(register Lisp_Object buffer)
|
||||
{
|
||||
register Lisp_Object buf, tail, proc;
|
||||
|
||||
|
@ -770,8 +767,7 @@ DEFUN ("delete-process", Fdelete_process, Sdelete_process, 1, 1, 0,
|
|||
doc: /* Delete PROCESS: kill it and forget about it immediately.
|
||||
PROCESS may be a process, a buffer, the name of a process or buffer, or
|
||||
nil, indicating the current buffer's process. */)
|
||||
(process)
|
||||
register Lisp_Object process;
|
||||
(register Lisp_Object process)
|
||||
{
|
||||
register struct Lisp_Process *p;
|
||||
|
||||
|
@ -838,8 +834,7 @@ failed -- when a non-blocking connection has failed.
|
|||
nil -- if arg is a process name and no such process exists.
|
||||
PROCESS may be a process, a buffer, the name of a process, or
|
||||
nil, indicating the current buffer's process. */)
|
||||
(process)
|
||||
register Lisp_Object process;
|
||||
(register Lisp_Object process)
|
||||
{
|
||||
register struct Lisp_Process *p;
|
||||
register Lisp_Object status;
|
||||
|
@ -874,8 +869,7 @@ DEFUN ("process-exit-status", Fprocess_exit_status, Sprocess_exit_status,
|
|||
1, 1, 0,
|
||||
doc: /* Return the exit status of PROCESS or the signal number that killed it.
|
||||
If PROCESS has not yet exited or died, return 0. */)
|
||||
(process)
|
||||
register Lisp_Object process;
|
||||
(register Lisp_Object process)
|
||||
{
|
||||
CHECK_PROCESS (process);
|
||||
if (XPROCESS (process)->raw_status_new)
|
||||
|
@ -889,8 +883,7 @@ DEFUN ("process-id", Fprocess_id, Sprocess_id, 1, 1, 0,
|
|||
doc: /* Return the process id of PROCESS.
|
||||
This is the pid of the external process which PROCESS uses or talks to.
|
||||
For a network connection, this value is nil. */)
|
||||
(process)
|
||||
register Lisp_Object process;
|
||||
(register Lisp_Object process)
|
||||
{
|
||||
/* Assignment to EMACS_INT stops GCC whining about limited range of
|
||||
data type. */
|
||||
|
@ -905,8 +898,7 @@ DEFUN ("process-name", Fprocess_name, Sprocess_name, 1, 1, 0,
|
|||
doc: /* Return the name of PROCESS, as a string.
|
||||
This is the name of the program invoked in PROCESS,
|
||||
possibly modified to make it unique among process names. */)
|
||||
(process)
|
||||
register Lisp_Object process;
|
||||
(register Lisp_Object process)
|
||||
{
|
||||
CHECK_PROCESS (process);
|
||||
return XPROCESS (process)->name;
|
||||
|
@ -918,8 +910,7 @@ This is a list of strings, the first string being the program executed
|
|||
and the rest of the strings being the arguments given to it.
|
||||
For a network or serial process, this is nil (process is running) or t
|
||||
\(process is stopped). */)
|
||||
(process)
|
||||
register Lisp_Object process;
|
||||
(register Lisp_Object process)
|
||||
{
|
||||
CHECK_PROCESS (process);
|
||||
return XPROCESS (process)->command;
|
||||
|
@ -929,8 +920,7 @@ DEFUN ("process-tty-name", Fprocess_tty_name, Sprocess_tty_name, 1, 1, 0,
|
|||
doc: /* Return the name of the terminal PROCESS uses, or nil if none.
|
||||
This is the terminal that the process itself reads and writes on,
|
||||
not the name of the pty that Emacs uses to talk with that terminal. */)
|
||||
(process)
|
||||
register Lisp_Object process;
|
||||
(register Lisp_Object process)
|
||||
{
|
||||
CHECK_PROCESS (process);
|
||||
return XPROCESS (process)->tty_name;
|
||||
|
@ -939,8 +929,7 @@ not the name of the pty that Emacs uses to talk with that terminal. */)
|
|||
DEFUN ("set-process-buffer", Fset_process_buffer, Sset_process_buffer,
|
||||
2, 2, 0,
|
||||
doc: /* Set buffer associated with PROCESS to BUFFER (a buffer, or nil). */)
|
||||
(process, buffer)
|
||||
register Lisp_Object process, buffer;
|
||||
(register Lisp_Object process, Lisp_Object buffer)
|
||||
{
|
||||
struct Lisp_Process *p;
|
||||
|
||||
|
@ -959,8 +948,7 @@ DEFUN ("process-buffer", Fprocess_buffer, Sprocess_buffer,
|
|||
1, 1, 0,
|
||||
doc: /* Return the buffer PROCESS is associated with.
|
||||
Output from PROCESS is inserted in this buffer unless PROCESS has a filter. */)
|
||||
(process)
|
||||
register Lisp_Object process;
|
||||
(register Lisp_Object process)
|
||||
{
|
||||
CHECK_PROCESS (process);
|
||||
return XPROCESS (process)->buffer;
|
||||
|
@ -969,8 +957,7 @@ Output from PROCESS is inserted in this buffer unless PROCESS has a filter. */)
|
|||
DEFUN ("process-mark", Fprocess_mark, Sprocess_mark,
|
||||
1, 1, 0,
|
||||
doc: /* Return the marker for the end of the last output from PROCESS. */)
|
||||
(process)
|
||||
register Lisp_Object process;
|
||||
(register Lisp_Object process)
|
||||
{
|
||||
CHECK_PROCESS (process);
|
||||
return XPROCESS (process)->mark;
|
||||
|
@ -992,8 +979,7 @@ The string argument is normally a multibyte string, except:
|
|||
- if `default-enable-multibyte-characters' is nil, it is a unibyte
|
||||
string (the result of converting the decoded input multibyte
|
||||
string to unibyte with `string-make-unibyte'). */)
|
||||
(process, filter)
|
||||
register Lisp_Object process, filter;
|
||||
(register Lisp_Object process, Lisp_Object filter)
|
||||
{
|
||||
struct Lisp_Process *p;
|
||||
|
||||
|
@ -1035,8 +1021,7 @@ DEFUN ("process-filter", Fprocess_filter, Sprocess_filter,
|
|||
1, 1, 0,
|
||||
doc: /* Returns the filter function of PROCESS; nil if none.
|
||||
See `set-process-filter' for more info on filter functions. */)
|
||||
(process)
|
||||
register Lisp_Object process;
|
||||
(register Lisp_Object process)
|
||||
{
|
||||
CHECK_PROCESS (process);
|
||||
return XPROCESS (process)->filter;
|
||||
|
@ -1047,8 +1032,7 @@ DEFUN ("set-process-sentinel", Fset_process_sentinel, Sset_process_sentinel,
|
|||
doc: /* Give PROCESS the sentinel SENTINEL; nil for none.
|
||||
The sentinel is called as a function when the process changes state.
|
||||
It gets two arguments: the process, and a string describing the change. */)
|
||||
(process, sentinel)
|
||||
register Lisp_Object process, sentinel;
|
||||
(register Lisp_Object process, Lisp_Object sentinel)
|
||||
{
|
||||
struct Lisp_Process *p;
|
||||
|
||||
|
@ -1065,8 +1049,7 @@ DEFUN ("process-sentinel", Fprocess_sentinel, Sprocess_sentinel,
|
|||
1, 1, 0,
|
||||
doc: /* Return the sentinel of PROCESS; nil if none.
|
||||
See `set-process-sentinel' for more info on sentinels. */)
|
||||
(process)
|
||||
register Lisp_Object process;
|
||||
(register Lisp_Object process)
|
||||
{
|
||||
CHECK_PROCESS (process);
|
||||
return XPROCESS (process)->sentinel;
|
||||
|
@ -1075,8 +1058,7 @@ See `set-process-sentinel' for more info on sentinels. */)
|
|||
DEFUN ("set-process-window-size", Fset_process_window_size,
|
||||
Sset_process_window_size, 3, 3, 0,
|
||||
doc: /* Tell PROCESS that it has logical window size HEIGHT and WIDTH. */)
|
||||
(process, height, width)
|
||||
register Lisp_Object process, height, width;
|
||||
(register Lisp_Object process, Lisp_Object height, Lisp_Object width)
|
||||
{
|
||||
CHECK_PROCESS (process);
|
||||
CHECK_NATNUM (height);
|
||||
|
@ -1107,8 +1089,7 @@ is more appropriate for saving the process buffer.
|
|||
Binding the variable `inherit-process-coding-system' to non-nil before
|
||||
starting the process is an alternative way of setting the inherit flag
|
||||
for the process which will run. */)
|
||||
(process, flag)
|
||||
register Lisp_Object process, flag;
|
||||
(register Lisp_Object process, Lisp_Object flag)
|
||||
{
|
||||
CHECK_PROCESS (process);
|
||||
XPROCESS (process)->inherit_coding_system_flag = !NILP (flag);
|
||||
|
@ -1122,8 +1103,7 @@ DEFUN ("process-inherit-coding-system-flag",
|
|||
If this flag is t, `buffer-file-coding-system' of the buffer
|
||||
associated with PROCESS will inherit the coding system used to decode
|
||||
the process output. */)
|
||||
(process)
|
||||
register Lisp_Object process;
|
||||
(register Lisp_Object process)
|
||||
{
|
||||
CHECK_PROCESS (process);
|
||||
return XPROCESS (process)->inherit_coding_system_flag ? Qt : Qnil;
|
||||
|
@ -1135,8 +1115,7 @@ DEFUN ("set-process-query-on-exit-flag",
|
|||
doc: /* Specify if query is needed for PROCESS when Emacs is exited.
|
||||
If the second argument FLAG is non-nil, Emacs will query the user before
|
||||
exiting or killing a buffer if PROCESS is running. */)
|
||||
(process, flag)
|
||||
register Lisp_Object process, flag;
|
||||
(register Lisp_Object process, Lisp_Object flag)
|
||||
{
|
||||
CHECK_PROCESS (process);
|
||||
XPROCESS (process)->kill_without_query = NILP (flag);
|
||||
|
@ -1147,8 +1126,7 @@ DEFUN ("process-query-on-exit-flag",
|
|||
Fprocess_query_on_exit_flag, Sprocess_query_on_exit_flag,
|
||||
1, 1, 0,
|
||||
doc: /* Return the current value of query-on-exit flag for PROCESS. */)
|
||||
(process)
|
||||
register Lisp_Object process;
|
||||
(register Lisp_Object process)
|
||||
{
|
||||
CHECK_PROCESS (process);
|
||||
return (XPROCESS (process)->kill_without_query ? Qnil : Qt);
|
||||
|
@ -1168,8 +1146,7 @@ connection. If KEY is t, the complete contact information for the
|
|||
connection is returned, else the specific value for the keyword KEY is
|
||||
returned. See `make-network-process' or `make-serial-process' for a
|
||||
list of keywords. */)
|
||||
(process, key)
|
||||
register Lisp_Object process, key;
|
||||
(register Lisp_Object process, Lisp_Object key)
|
||||
{
|
||||
Lisp_Object contact;
|
||||
|
||||
|
@ -1197,8 +1174,7 @@ list of keywords. */)
|
|||
DEFUN ("process-plist", Fprocess_plist, Sprocess_plist,
|
||||
1, 1, 0,
|
||||
doc: /* Return the plist of PROCESS. */)
|
||||
(process)
|
||||
register Lisp_Object process;
|
||||
(register Lisp_Object process)
|
||||
{
|
||||
CHECK_PROCESS (process);
|
||||
return XPROCESS (process)->plist;
|
||||
|
@ -1207,8 +1183,7 @@ DEFUN ("process-plist", Fprocess_plist, Sprocess_plist,
|
|||
DEFUN ("set-process-plist", Fset_process_plist, Sset_process_plist,
|
||||
2, 2, 0,
|
||||
doc: /* Replace the plist of PROCESS with PLIST. Returns PLIST. */)
|
||||
(process, plist)
|
||||
register Lisp_Object process, plist;
|
||||
(register Lisp_Object process, Lisp_Object plist)
|
||||
{
|
||||
CHECK_PROCESS (process);
|
||||
CHECK_LIST (plist);
|
||||
|
@ -1223,8 +1198,7 @@ DEFUN ("process-connection", Fprocess_connection, Sprocess_connection, 1, 1, 0,
|
|||
doc: /* Return the connection type of PROCESS.
|
||||
The value is nil for a pipe, t or `pty' for a pty, or `stream' for
|
||||
a socket connection. */)
|
||||
(process)
|
||||
Lisp_Object process;
|
||||
(Lisp_Object process)
|
||||
{
|
||||
return XPROCESS (process)->type;
|
||||
}
|
||||
|
@ -1235,8 +1209,7 @@ DEFUN ("process-type", Fprocess_type, Sprocess_type, 1, 1, 0,
|
|||
The value is either the symbol `real', `network', or `serial'.
|
||||
PROCESS may be a process, a buffer, the name of a process or buffer, or
|
||||
nil, indicating the current buffer's process. */)
|
||||
(process)
|
||||
Lisp_Object process;
|
||||
(Lisp_Object process)
|
||||
{
|
||||
Lisp_Object proc;
|
||||
proc = get_process (process);
|
||||
|
@ -1252,8 +1225,7 @@ An 8 or 9 element vector represents an IPv6 address (with port number).
|
|||
If optional second argument OMIT-PORT is non-nil, don't include a port
|
||||
number in the string, even when present in ADDRESS.
|
||||
Returns nil if format of ADDRESS is invalid. */)
|
||||
(address, omit_port)
|
||||
Lisp_Object address, omit_port;
|
||||
(Lisp_Object address, Lisp_Object omit_port)
|
||||
{
|
||||
if (NILP (address))
|
||||
return Qnil;
|
||||
|
@ -1555,8 +1527,7 @@ If optional argument QUERY-ONLY is non-nil, only processes with
|
|||
the query-on-exit flag set will be listed.
|
||||
Any process listed as exited or signaled is actually eliminated
|
||||
after the listing is made. */)
|
||||
(query_only)
|
||||
Lisp_Object query_only;
|
||||
(Lisp_Object query_only)
|
||||
{
|
||||
internal_with_output_to_temp_buffer ("*Process List*",
|
||||
list_processes_1, query_only);
|
||||
|
@ -1565,7 +1536,7 @@ after the listing is made. */)
|
|||
|
||||
DEFUN ("process-list", Fprocess_list, Sprocess_list, 0, 0, 0,
|
||||
doc: /* Return a list of all processes. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return Fmapcar (Qcdr, Vprocess_alist);
|
||||
}
|
||||
|
@ -1593,9 +1564,7 @@ the command through a shell and redirect one of them using the shell
|
|||
syntax.
|
||||
|
||||
usage: (start-process NAME BUFFER PROGRAM &rest PROGRAM-ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
register Lisp_Object *args;
|
||||
(int nargs, register Lisp_Object *args)
|
||||
{
|
||||
Lisp_Object buffer, name, program, proc, current_dir, tem;
|
||||
register unsigned char **new_argv;
|
||||
|
@ -2504,8 +2473,7 @@ conv_lisp_to_sockaddr (int family, Lisp_Object address, struct sockaddr *sa, int
|
|||
DEFUN ("process-datagram-address", Fprocess_datagram_address, Sprocess_datagram_address,
|
||||
1, 1, 0,
|
||||
doc: /* Get the current datagram address associated with PROCESS. */)
|
||||
(process)
|
||||
Lisp_Object process;
|
||||
(Lisp_Object process)
|
||||
{
|
||||
int channel;
|
||||
|
||||
|
@ -2523,8 +2491,7 @@ DEFUN ("set-process-datagram-address", Fset_process_datagram_address, Sset_proce
|
|||
2, 2, 0,
|
||||
doc: /* Set the datagram address for PROCESS to ADDRESS.
|
||||
Returns nil upon error setting address, ADDRESS otherwise. */)
|
||||
(process, address)
|
||||
Lisp_Object process, address;
|
||||
(Lisp_Object process, Lisp_Object address)
|
||||
{
|
||||
int channel;
|
||||
int family, len;
|
||||
|
@ -2685,9 +2652,7 @@ DEFUN ("set-network-process-option",
|
|||
See `make-network-process' for a list of options and values.
|
||||
If optional fourth arg NO-ERROR is non-nil, don't signal an error if
|
||||
OPTION is not a supported option, return nil instead; otherwise return t. */)
|
||||
(process, option, value, no_error)
|
||||
Lisp_Object process, option, value;
|
||||
Lisp_Object no_error;
|
||||
(Lisp_Object process, Lisp_Object option, Lisp_Object value, Lisp_Object no_error)
|
||||
{
|
||||
int s;
|
||||
struct Lisp_Process *p;
|
||||
|
@ -2774,9 +2739,7 @@ initial configuration of the serial port.
|
|||
\(serial-process-configure :port "\\\\.\\COM13" :bytesize 7)
|
||||
|
||||
usage: (serial-process-configure &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
struct Lisp_Process *p;
|
||||
Lisp_Object contact = Qnil;
|
||||
|
@ -2893,9 +2856,7 @@ is available via the function `process-contact'.
|
|||
\(make-serial-process :port "/dev/tty.BlueConsole-SPP-1" :speed nil)
|
||||
|
||||
usage: (make-serial-process &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
int fd = -1;
|
||||
Lisp_Object proc, contact, port;
|
||||
|
@ -3174,9 +3135,7 @@ The original argument list, modified with the actual connection
|
|||
information, is available via the `process-contact' function.
|
||||
|
||||
usage: (make-network-process &rest ARGS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
Lisp_Object proc;
|
||||
Lisp_Object contact;
|
||||
|
@ -3890,7 +3849,7 @@ DEFUN ("network-interface-list", Fnetwork_interface_list, Snetwork_interface_lis
|
|||
Each element is a cons, the car of which is a string containing the
|
||||
interface name, and the cdr is the network address in internal
|
||||
format; see the description of ADDRESS in `make-network-process'. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
struct ifconf ifconf;
|
||||
struct ifreq *ifreqs = NULL;
|
||||
|
@ -4025,8 +3984,7 @@ The return value is a list (ADDR BCAST NETMASK HWADDR FLAGS),
|
|||
where ADDR is the layer 3 address, BCAST is the layer 3 broadcast address,
|
||||
NETMASK is the layer 3 network mask, HWADDR is the layer 2 addres, and
|
||||
FLAGS is the current flags of the interface. */)
|
||||
(ifname)
|
||||
Lisp_Object ifname;
|
||||
(Lisp_Object ifname)
|
||||
{
|
||||
struct ifreq rq;
|
||||
Lisp_Object res = Qnil;
|
||||
|
@ -4234,8 +4192,7 @@ If optional fourth arg JUST-THIS-ONE is non-nil, only accept output
|
|||
from PROCESS, suspending reading output from other processes.
|
||||
If JUST-THIS-ONE is an integer, don't run any timers either.
|
||||
Return non-nil if we received any output before the timeout expired. */)
|
||||
(process, seconds, millisec, just_this_one)
|
||||
register Lisp_Object process, seconds, millisec, just_this_one;
|
||||
(register Lisp_Object process, Lisp_Object seconds, Lisp_Object millisec, Lisp_Object just_this_one)
|
||||
{
|
||||
int secs, usecs = 0;
|
||||
|
||||
|
@ -5576,7 +5533,7 @@ DEFUN ("waiting-for-user-input-p", Fwaiting_for_user_input_p, Swaiting_for_user_
|
|||
0, 0, 0,
|
||||
doc: /* Returns non-nil if Emacs is waiting for input from the user.
|
||||
This is intended for use by asynchronous process output filters and sentinels. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return (waiting_for_user_input_p ? Qt : Qnil);
|
||||
}
|
||||
|
@ -5851,8 +5808,7 @@ Called from program, takes three arguments, PROCESS, START and END.
|
|||
If the region is more than 500 characters long,
|
||||
it is sent in several bunches. This may happen even for shorter regions.
|
||||
Output from processes can arrive in between bunches. */)
|
||||
(process, start, end)
|
||||
Lisp_Object process, start, end;
|
||||
(Lisp_Object process, Lisp_Object start, Lisp_Object end)
|
||||
{
|
||||
Lisp_Object proc;
|
||||
int start1, end1;
|
||||
|
@ -5879,8 +5835,7 @@ nil, indicating the current buffer's process.
|
|||
If STRING is more than 500 characters long,
|
||||
it is sent in several bunches. This may happen even for shorter strings.
|
||||
Output from processes can arrive in between bunches. */)
|
||||
(process, string)
|
||||
Lisp_Object process, string;
|
||||
(Lisp_Object process, Lisp_Object string)
|
||||
{
|
||||
Lisp_Object proc;
|
||||
CHECK_STRING (string);
|
||||
|
@ -5921,8 +5876,7 @@ DEFUN ("process-running-child-p", Fprocess_running_child_p,
|
|||
doc: /* Return t if PROCESS has given the terminal to a child.
|
||||
If the operating system does not make it possible to find out,
|
||||
return t unconditionally. */)
|
||||
(process)
|
||||
Lisp_Object process;
|
||||
(Lisp_Object process)
|
||||
{
|
||||
/* Initialize in case ioctl doesn't exist or gives an error,
|
||||
in a way that will cause returning t. */
|
||||
|
@ -6183,8 +6137,7 @@ rather than the shell.
|
|||
|
||||
If CURRENT-GROUP is `lambda', and if the shell owns the terminal,
|
||||
don't send the signal. */)
|
||||
(process, current_group)
|
||||
Lisp_Object process, current_group;
|
||||
(Lisp_Object process, Lisp_Object current_group)
|
||||
{
|
||||
process_send_signal (process, SIGINT, current_group, 0);
|
||||
return process;
|
||||
|
@ -6193,8 +6146,7 @@ don't send the signal. */)
|
|||
DEFUN ("kill-process", Fkill_process, Skill_process, 0, 2, 0,
|
||||
doc: /* Kill process PROCESS. May be process or name of one.
|
||||
See function `interrupt-process' for more details on usage. */)
|
||||
(process, current_group)
|
||||
Lisp_Object process, current_group;
|
||||
(Lisp_Object process, Lisp_Object current_group)
|
||||
{
|
||||
process_send_signal (process, SIGKILL, current_group, 0);
|
||||
return process;
|
||||
|
@ -6203,8 +6155,7 @@ See function `interrupt-process' for more details on usage. */)
|
|||
DEFUN ("quit-process", Fquit_process, Squit_process, 0, 2, 0,
|
||||
doc: /* Send QUIT signal to process PROCESS. May be process or name of one.
|
||||
See function `interrupt-process' for more details on usage. */)
|
||||
(process, current_group)
|
||||
Lisp_Object process, current_group;
|
||||
(Lisp_Object process, Lisp_Object current_group)
|
||||
{
|
||||
process_send_signal (process, SIGQUIT, current_group, 0);
|
||||
return process;
|
||||
|
@ -6215,8 +6166,7 @@ DEFUN ("stop-process", Fstop_process, Sstop_process, 0, 2, 0,
|
|||
See function `interrupt-process' for more details on usage.
|
||||
If PROCESS is a network or serial process, inhibit handling of incoming
|
||||
traffic. */)
|
||||
(process, current_group)
|
||||
Lisp_Object process, current_group;
|
||||
(Lisp_Object process, Lisp_Object current_group)
|
||||
{
|
||||
#ifdef HAVE_SOCKETS
|
||||
if (PROCESSP (process) && (NETCONN_P (process) || SERIALCONN_P (process)))
|
||||
|
@ -6247,8 +6197,7 @@ DEFUN ("continue-process", Fcontinue_process, Scontinue_process, 0, 2, 0,
|
|||
See function `interrupt-process' for more details on usage.
|
||||
If PROCESS is a network or serial process, resume handling of incoming
|
||||
traffic. */)
|
||||
(process, current_group)
|
||||
Lisp_Object process, current_group;
|
||||
(Lisp_Object process, Lisp_Object current_group)
|
||||
{
|
||||
#ifdef HAVE_SOCKETS
|
||||
if (PROCESSP (process) && (NETCONN_P (process) || SERIALCONN_P (process)))
|
||||
|
@ -6289,8 +6238,7 @@ PROCESS may also be a number specifying the process id of the
|
|||
process to signal; in this case, the process need not be a child of
|
||||
this Emacs.
|
||||
SIGCODE may be an integer, or a symbol whose name is a signal name. */)
|
||||
(process, sigcode)
|
||||
Lisp_Object process, sigcode;
|
||||
(Lisp_Object process, Lisp_Object sigcode)
|
||||
{
|
||||
pid_t pid;
|
||||
|
||||
|
@ -6457,8 +6405,7 @@ through a pipe (as opposed to a pty), then you cannot send any more
|
|||
text to PROCESS after you call this function.
|
||||
If PROCESS is a serial process, wait until all output written to the
|
||||
process has been transmitted to the serial port. */)
|
||||
(process)
|
||||
Lisp_Object process;
|
||||
(Lisp_Object process)
|
||||
{
|
||||
Lisp_Object proc;
|
||||
struct coding_system *coding;
|
||||
|
@ -6947,8 +6894,7 @@ DEFUN ("set-process-coding-system", Fset_process_coding_system,
|
|||
doc: /* Set coding systems of PROCESS to DECODING and ENCODING.
|
||||
DECODING will be used to decode subprocess output and ENCODING to
|
||||
encode subprocess input. */)
|
||||
(process, decoding, encoding)
|
||||
register Lisp_Object process, decoding, encoding;
|
||||
(register Lisp_Object process, Lisp_Object decoding, Lisp_Object encoding)
|
||||
{
|
||||
register struct Lisp_Process *p;
|
||||
|
||||
|
@ -6971,8 +6917,7 @@ encode subprocess input. */)
|
|||
DEFUN ("process-coding-system",
|
||||
Fprocess_coding_system, Sprocess_coding_system, 1, 1, 0,
|
||||
doc: /* Return a cons of coding systems for decoding and encoding of PROCESS. */)
|
||||
(process)
|
||||
register Lisp_Object process;
|
||||
(register Lisp_Object process)
|
||||
{
|
||||
CHECK_PROCESS (process);
|
||||
return Fcons (XPROCESS (process)->decode_coding_system,
|
||||
|
@ -6986,8 +6931,7 @@ If FLAG is non-nil, the filter is given multibyte strings.
|
|||
If FLAG is nil, the filter is given unibyte strings. In this case,
|
||||
all character code conversion except for end-of-line conversion is
|
||||
suppressed. */)
|
||||
(process, flag)
|
||||
Lisp_Object process, flag;
|
||||
(Lisp_Object process, Lisp_Object flag)
|
||||
{
|
||||
register struct Lisp_Process *p;
|
||||
|
||||
|
@ -7003,8 +6947,7 @@ suppressed. */)
|
|||
DEFUN ("process-filter-multibyte-p", Fprocess_filter_multibyte_p,
|
||||
Sprocess_filter_multibyte_p, 1, 1, 0,
|
||||
doc: /* Return t if a multibyte string is given to PROCESS's filter.*/)
|
||||
(process)
|
||||
Lisp_Object process;
|
||||
(Lisp_Object process)
|
||||
{
|
||||
register struct Lisp_Process *p;
|
||||
struct coding_system *coding;
|
||||
|
@ -7126,7 +7069,7 @@ DEFUN ("list-system-processes", Flist_system_processes, Slist_system_processes,
|
|||
If this functionality is unsupported, return nil.
|
||||
|
||||
See `process-attributes' for getting attributes of a process given its ID. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return list_system_processes ();
|
||||
}
|
||||
|
@ -7182,9 +7125,7 @@ integer or floating point values.
|
|||
pmem -- percents of total physical memory used by process's resident set
|
||||
(floating-point number)
|
||||
args -- command line which invoked the process (string). */)
|
||||
(pid)
|
||||
|
||||
Lisp_Object pid;
|
||||
( Lisp_Object pid)
|
||||
{
|
||||
return system_process_attributes (pid);
|
||||
}
|
||||
|
@ -7600,6 +7541,9 @@ Lisp_Object Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcstime;
|
|||
Lisp_Object Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs;
|
||||
Lisp_Object Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtime, Qctime;
|
||||
|
||||
/* Non-zero if keyboard input is on hold, zero otherwise. */
|
||||
static int kbd_is_on_hold;
|
||||
|
||||
/* As described above, except assuming that there are no subprocesses:
|
||||
|
||||
Wait for timeout to elapse and/or keyboard input to be available.
|
||||
|
@ -7830,8 +7774,7 @@ wait_reading_process_output (time_limit, microsecs, read_kbd, do_display,
|
|||
make-docfile does not pay attention to #if, for good reason! */
|
||||
DEFUN ("get-buffer-process", Fget_buffer_process, Sget_buffer_process, 1, 1, 0,
|
||||
0)
|
||||
(name)
|
||||
register Lisp_Object name;
|
||||
(register Lisp_Object name)
|
||||
{
|
||||
return Qnil;
|
||||
}
|
||||
|
@ -7842,8 +7785,7 @@ DEFUN ("process-inherit-coding-system-flag",
|
|||
Fprocess_inherit_coding_system_flag, Sprocess_inherit_coding_system_flag,
|
||||
1, 1, 0,
|
||||
0)
|
||||
(process)
|
||||
register Lisp_Object process;
|
||||
(register Lisp_Object process)
|
||||
{
|
||||
/* Ignore the argument and return the value of
|
||||
inherit-process-coding-system. */
|
||||
|
@ -7860,13 +7802,38 @@ kill_buffer_processes (buffer)
|
|||
{
|
||||
}
|
||||
|
||||
|
||||
/* Stop reading input from keyboard sources. */
|
||||
|
||||
void
|
||||
hold_keyboard_input (void)
|
||||
{
|
||||
kbd_is_on_hold = 1;
|
||||
}
|
||||
|
||||
/* Resume reading input from keyboard sources. */
|
||||
|
||||
void
|
||||
unhold_keyboard_input (void)
|
||||
{
|
||||
kbd_is_on_hold = 0;
|
||||
}
|
||||
|
||||
/* Return non-zero if keyboard input is on hold, zero otherwise. */
|
||||
|
||||
int
|
||||
kbd_on_hold_p (void)
|
||||
{
|
||||
return kbd_is_on_hold;
|
||||
}
|
||||
|
||||
DEFUN ("list-system-processes", Flist_system_processes, Slist_system_processes,
|
||||
0, 0, 0,
|
||||
doc: /* Return a list of numerical process IDs of all running processes.
|
||||
If this functionality is unsupported, return nil.
|
||||
|
||||
See `process-attributes' for getting attributes of a process given its ID. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return list_system_processes ();
|
||||
}
|
||||
|
@ -7922,9 +7889,7 @@ integer or floating point values.
|
|||
pmem -- percents of total physical memory used by process's resident set
|
||||
(floating-point number)
|
||||
args -- command line which invoked the process (string). */)
|
||||
(pid)
|
||||
|
||||
Lisp_Object pid;
|
||||
( Lisp_Object pid)
|
||||
{
|
||||
return system_process_attributes (pid);
|
||||
}
|
||||
|
|
60
src/search.c
60
src/search.c
|
@ -362,8 +362,7 @@ DEFUN ("looking-at", Flooking_at, Slooking_at, 1, 1, 0,
|
|||
This function modifies the match data that `match-beginning',
|
||||
`match-end' and `match-data' access; save and restore the match
|
||||
data if you want to preserve them. */)
|
||||
(regexp)
|
||||
Lisp_Object regexp;
|
||||
(Lisp_Object regexp)
|
||||
{
|
||||
return looking_at_1 (regexp, 0);
|
||||
}
|
||||
|
@ -374,8 +373,7 @@ Find the longest match, in accord with Posix regular expression rules.
|
|||
This function modifies the match data that `match-beginning',
|
||||
`match-end' and `match-data' access; save and restore the match
|
||||
data if you want to preserve them. */)
|
||||
(regexp)
|
||||
Lisp_Object regexp;
|
||||
(Lisp_Object regexp)
|
||||
{
|
||||
return looking_at_1 (regexp, 1);
|
||||
}
|
||||
|
@ -461,8 +459,7 @@ matched by parenthesis constructs in the pattern.
|
|||
|
||||
You can use the function `match-string' to extract the substrings
|
||||
matched by the parenthesis constructions in REGEXP. */)
|
||||
(regexp, string, start)
|
||||
Lisp_Object regexp, string, start;
|
||||
(Lisp_Object regexp, Lisp_Object string, Lisp_Object start)
|
||||
{
|
||||
return string_match_1 (regexp, string, start, 0);
|
||||
}
|
||||
|
@ -475,8 +472,7 @@ If third arg START is non-nil, start search at that index in STRING.
|
|||
For index of first char beyond the match, do (match-end 0).
|
||||
`match-end' and `match-beginning' also give indices of substrings
|
||||
matched by parenthesis constructs in the pattern. */)
|
||||
(regexp, string, start)
|
||||
Lisp_Object regexp, string, start;
|
||||
(Lisp_Object regexp, Lisp_Object string, Lisp_Object start)
|
||||
{
|
||||
return string_match_1 (regexp, string, start, 1);
|
||||
}
|
||||
|
@ -2216,8 +2212,7 @@ Search case-sensitivity is determined by the value of the variable
|
|||
`case-fold-search', which see.
|
||||
|
||||
See also the functions `match-beginning', `match-end' and `replace-match'. */)
|
||||
(string, bound, noerror, count)
|
||||
Lisp_Object string, bound, noerror, count;
|
||||
(Lisp_Object string, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
|
||||
{
|
||||
return search_command (string, bound, noerror, count, -1, 0, 0);
|
||||
}
|
||||
|
@ -2236,8 +2231,7 @@ Search case-sensitivity is determined by the value of the variable
|
|||
`case-fold-search', which see.
|
||||
|
||||
See also the functions `match-beginning', `match-end' and `replace-match'. */)
|
||||
(string, bound, noerror, count)
|
||||
Lisp_Object string, bound, noerror, count;
|
||||
(Lisp_Object string, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
|
||||
{
|
||||
return search_command (string, bound, noerror, count, 1, 0, 0);
|
||||
}
|
||||
|
@ -2251,8 +2245,7 @@ The match found must not extend before that position.
|
|||
Optional third argument, if t, means if fail just return nil (no error).
|
||||
If not nil and not t, move to limit of search and return nil.
|
||||
Optional fourth argument is repeat count--search for successive occurrences. */)
|
||||
(string, bound, noerror, count)
|
||||
Lisp_Object string, bound, noerror, count;
|
||||
(Lisp_Object string, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
|
||||
{
|
||||
return search_command (wordify (string, 0), bound, noerror, count, -1, 1, 0);
|
||||
}
|
||||
|
@ -2266,8 +2259,7 @@ The match found must not extend after that position.
|
|||
Optional third argument, if t, means if fail just return nil (no error).
|
||||
If not nil and not t, move to limit of search and return nil.
|
||||
Optional fourth argument is repeat count--search for successive occurrences. */)
|
||||
(string, bound, noerror, count)
|
||||
Lisp_Object string, bound, noerror, count;
|
||||
(Lisp_Object string, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
|
||||
{
|
||||
return search_command (wordify (string, 0), bound, noerror, count, 1, 1, 0);
|
||||
}
|
||||
|
@ -2285,8 +2277,7 @@ The match found must not extend before that position.
|
|||
Optional third argument, if t, means if fail just return nil (no error).
|
||||
If not nil and not t, move to limit of search and return nil.
|
||||
Optional fourth argument is repeat count--search for successive occurrences. */)
|
||||
(string, bound, noerror, count)
|
||||
Lisp_Object string, bound, noerror, count;
|
||||
(Lisp_Object string, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
|
||||
{
|
||||
return search_command (wordify (string, 1), bound, noerror, count, -1, 1, 0);
|
||||
}
|
||||
|
@ -2304,8 +2295,7 @@ The match found must not extend after that position.
|
|||
Optional third argument, if t, means if fail just return nil (no error).
|
||||
If not nil and not t, move to limit of search and return nil.
|
||||
Optional fourth argument is repeat count--search for successive occurrences. */)
|
||||
(string, bound, noerror, count)
|
||||
Lisp_Object string, bound, noerror, count;
|
||||
(Lisp_Object string, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
|
||||
{
|
||||
return search_command (wordify (string, 1), bound, noerror, count, 1, 1, 0);
|
||||
}
|
||||
|
@ -2323,8 +2313,7 @@ Optional third argument, if t, means if fail just return nil (no error).
|
|||
Optional fourth argument is repeat count--search for successive occurrences.
|
||||
See also the functions `match-beginning', `match-end', `match-string',
|
||||
and `replace-match'. */)
|
||||
(regexp, bound, noerror, count)
|
||||
Lisp_Object regexp, bound, noerror, count;
|
||||
(Lisp_Object regexp, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
|
||||
{
|
||||
return search_command (regexp, bound, noerror, count, -1, 1, 0);
|
||||
}
|
||||
|
@ -2340,8 +2329,7 @@ Optional third argument, if t, means if fail just return nil (no error).
|
|||
Optional fourth argument is repeat count--search for successive occurrences.
|
||||
See also the functions `match-beginning', `match-end', `match-string',
|
||||
and `replace-match'. */)
|
||||
(regexp, bound, noerror, count)
|
||||
Lisp_Object regexp, bound, noerror, count;
|
||||
(Lisp_Object regexp, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
|
||||
{
|
||||
return search_command (regexp, bound, noerror, count, 1, 1, 0);
|
||||
}
|
||||
|
@ -2360,8 +2348,7 @@ Optional third argument, if t, means if fail just return nil (no error).
|
|||
Optional fourth argument is repeat count--search for successive occurrences.
|
||||
See also the functions `match-beginning', `match-end', `match-string',
|
||||
and `replace-match'. */)
|
||||
(regexp, bound, noerror, count)
|
||||
Lisp_Object regexp, bound, noerror, count;
|
||||
(Lisp_Object regexp, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
|
||||
{
|
||||
return search_command (regexp, bound, noerror, count, -1, 1, 1);
|
||||
}
|
||||
|
@ -2378,8 +2365,7 @@ Optional third argument, if t, means if fail just return nil (no error).
|
|||
Optional fourth argument is repeat count--search for successive occurrences.
|
||||
See also the functions `match-beginning', `match-end', `match-string',
|
||||
and `replace-match'. */)
|
||||
(regexp, bound, noerror, count)
|
||||
Lisp_Object regexp, bound, noerror, count;
|
||||
(Lisp_Object regexp, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count)
|
||||
{
|
||||
return search_command (regexp, bound, noerror, count, 1, 1, 1);
|
||||
}
|
||||
|
@ -2420,8 +2406,7 @@ This is, in a vague sense, the inverse of using `\\N' in NEWTEXT;
|
|||
NEWTEXT in place of subexp N.
|
||||
This is useful only after a regular expression search or match,
|
||||
since only regular expressions have distinguished subexpressions. */)
|
||||
(newtext, fixedcase, literal, string, subexp)
|
||||
Lisp_Object newtext, fixedcase, literal, string, subexp;
|
||||
(Lisp_Object newtext, Lisp_Object fixedcase, Lisp_Object literal, Lisp_Object string, Lisp_Object subexp)
|
||||
{
|
||||
enum { nochange, all_caps, cap_initial } case_action;
|
||||
register int pos, pos_byte;
|
||||
|
@ -2861,8 +2846,7 @@ SUBEXP, a number, specifies which parenthesized expression in the last
|
|||
Value is nil if SUBEXPth pair didn't match, or there were less than
|
||||
SUBEXP pairs.
|
||||
Zero means the entire text matched by the whole regexp or whole string. */)
|
||||
(subexp)
|
||||
Lisp_Object subexp;
|
||||
(Lisp_Object subexp)
|
||||
{
|
||||
return match_limit (subexp, 1);
|
||||
}
|
||||
|
@ -2874,8 +2858,7 @@ SUBEXP, a number, specifies which parenthesized expression in the last
|
|||
Value is nil if SUBEXPth pair didn't match, or there were less than
|
||||
SUBEXP pairs.
|
||||
Zero means the entire text matched by the whole regexp or whole string. */)
|
||||
(subexp)
|
||||
Lisp_Object subexp;
|
||||
(Lisp_Object subexp)
|
||||
{
|
||||
return match_limit (subexp, 0);
|
||||
}
|
||||
|
@ -2900,8 +2883,7 @@ If optional third arg RESEAT is non-nil, any previous markers on the
|
|||
REUSE list will be modified to point to nowhere.
|
||||
|
||||
Return value is undefined if the last search failed. */)
|
||||
(integers, reuse, reseat)
|
||||
Lisp_Object integers, reuse, reseat;
|
||||
(Lisp_Object integers, Lisp_Object reuse, Lisp_Object reseat)
|
||||
{
|
||||
Lisp_Object tail, prev;
|
||||
Lisp_Object *data;
|
||||
|
@ -3001,8 +2983,7 @@ DEFUN ("set-match-data", Fset_match_data, Sset_match_data, 1, 2, 0,
|
|||
LIST should have been created by calling `match-data' previously.
|
||||
|
||||
If optional arg RESEAT is non-nil, make markers on LIST point nowhere. */)
|
||||
(list, reseat)
|
||||
register Lisp_Object list, reseat;
|
||||
(register Lisp_Object list, Lisp_Object reseat)
|
||||
{
|
||||
register int i;
|
||||
register Lisp_Object marker;
|
||||
|
@ -3176,8 +3157,7 @@ record_unwind_save_match_data (void)
|
|||
|
||||
DEFUN ("regexp-quote", Fregexp_quote, Sregexp_quote, 1, 1, 0,
|
||||
doc: /* Return a regexp string which matches exactly STRING and nothing else. */)
|
||||
(string)
|
||||
Lisp_Object string;
|
||||
(Lisp_Object string)
|
||||
{
|
||||
register unsigned char *in, *out, *end;
|
||||
register unsigned char *temp;
|
||||
|
|
|
@ -1353,8 +1353,7 @@ DEFUN ("play-sound-internal", Fplay_sound_internal, Splay_sound_internal, 1, 1,
|
|||
doc: /* Play sound SOUND.
|
||||
|
||||
Internal use only, use `play-sound' instead. */)
|
||||
(sound)
|
||||
Lisp_Object sound;
|
||||
(Lisp_Object sound)
|
||||
{
|
||||
Lisp_Object attrs[SOUND_ATTR_SENTINEL];
|
||||
int count = SPECPDL_INDEX ();
|
||||
|
|
57
src/syntax.c
57
src/syntax.c
|
@ -721,8 +721,7 @@ back_comment (EMACS_INT from, EMACS_INT from_byte, EMACS_INT stop, int comnested
|
|||
DEFUN ("syntax-table-p", Fsyntax_table_p, Ssyntax_table_p, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a syntax table.
|
||||
Currently, any char-table counts as a syntax table. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (CHAR_TABLE_P (object)
|
||||
&& EQ (XCHAR_TABLE (object)->purpose, Qsyntax_table))
|
||||
|
@ -740,7 +739,7 @@ check_syntax_table (Lisp_Object obj)
|
|||
DEFUN ("syntax-table", Fsyntax_table, Ssyntax_table, 0, 0, 0,
|
||||
doc: /* Return the current syntax table.
|
||||
This is the one specified by the current buffer. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return current_buffer->syntax_table;
|
||||
}
|
||||
|
@ -749,7 +748,7 @@ DEFUN ("standard-syntax-table", Fstandard_syntax_table,
|
|||
Sstandard_syntax_table, 0, 0, 0,
|
||||
doc: /* Return the standard syntax table.
|
||||
This is the one used for new buffers. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return Vstandard_syntax_table;
|
||||
}
|
||||
|
@ -757,8 +756,7 @@ This is the one used for new buffers. */)
|
|||
DEFUN ("copy-syntax-table", Fcopy_syntax_table, Scopy_syntax_table, 0, 1, 0,
|
||||
doc: /* Construct a new syntax table and return it.
|
||||
It is a copy of the TABLE, which defaults to the standard syntax table. */)
|
||||
(table)
|
||||
Lisp_Object table;
|
||||
(Lisp_Object table)
|
||||
{
|
||||
Lisp_Object copy;
|
||||
|
||||
|
@ -784,8 +782,7 @@ It is a copy of the TABLE, which defaults to the standard syntax table. */)
|
|||
DEFUN ("set-syntax-table", Fset_syntax_table, Sset_syntax_table, 1, 1, 0,
|
||||
doc: /* Select a new syntax table for the current buffer.
|
||||
One argument, a syntax table. */)
|
||||
(table)
|
||||
Lisp_Object table;
|
||||
(Lisp_Object table)
|
||||
{
|
||||
int idx;
|
||||
check_syntax_table (table);
|
||||
|
@ -844,8 +841,7 @@ For example, if CHARACTER is a word constituent, the
|
|||
character `w' (119) is returned.
|
||||
The characters that correspond to various syntax codes
|
||||
are listed in the documentation of `modify-syntax-entry'. */)
|
||||
(character)
|
||||
Lisp_Object character;
|
||||
(Lisp_Object character)
|
||||
{
|
||||
int char_int;
|
||||
CHECK_CHARACTER (character);
|
||||
|
@ -856,8 +852,7 @@ are listed in the documentation of `modify-syntax-entry'. */)
|
|||
|
||||
DEFUN ("matching-paren", Fmatching_paren, Smatching_paren, 1, 1, 0,
|
||||
doc: /* Return the matching parenthesis of CHARACTER, or nil if none. */)
|
||||
(character)
|
||||
Lisp_Object character;
|
||||
(Lisp_Object character)
|
||||
{
|
||||
int char_int, code;
|
||||
CHECK_NUMBER (character);
|
||||
|
@ -875,8 +870,7 @@ STRING should be a string as it is allowed as argument of
|
|||
`modify-syntax-entry'. Value is the equivalent cons cell
|
||||
\(CODE . MATCHING-CHAR) that can be used as value of a `syntax-table'
|
||||
text property. */)
|
||||
(string)
|
||||
Lisp_Object string;
|
||||
(Lisp_Object string)
|
||||
{
|
||||
register const unsigned char *p;
|
||||
register enum syntaxcode code;
|
||||
|
@ -987,8 +981,7 @@ this flag:
|
|||
such characters are treated as whitespace when they occur
|
||||
between expressions.
|
||||
usage: (modify-syntax-entry CHAR NEWENTRY &optional SYNTAX-TABLE) */)
|
||||
(c, newentry, syntax_table)
|
||||
Lisp_Object c, newentry, syntax_table;
|
||||
(Lisp_Object c, Lisp_Object newentry, Lisp_Object syntax_table)
|
||||
{
|
||||
if (CONSP (c))
|
||||
{
|
||||
|
@ -1021,8 +1014,7 @@ usage: (modify-syntax-entry CHAR NEWENTRY &optional SYNTAX-TABLE) */)
|
|||
DEFUN ("internal-describe-syntax-value", Finternal_describe_syntax_value,
|
||||
Sinternal_describe_syntax_value, 1, 1, 0,
|
||||
doc: /* Insert a description of the internal syntax description SYNTAX at point. */)
|
||||
(syntax)
|
||||
Lisp_Object syntax;
|
||||
(Lisp_Object syntax)
|
||||
{
|
||||
register enum syntaxcode code;
|
||||
char desc, start1, start2, end1, end2, prefix, comstyle, comnested;
|
||||
|
@ -1307,8 +1299,7 @@ Normally returns t.
|
|||
If an edge of the buffer or a field boundary is reached, point is left there
|
||||
and the function returns nil. Field boundaries are not noticed if
|
||||
`inhibit-field-text-motion' is non-nil. */)
|
||||
(arg)
|
||||
Lisp_Object arg;
|
||||
(Lisp_Object arg)
|
||||
{
|
||||
Lisp_Object tmp;
|
||||
int orig_val, val;
|
||||
|
@ -1343,8 +1334,7 @@ With arg "^a-zA-Z", skips nonletters stopping before first letter.
|
|||
Char classes, e.g. `[:alpha:]', are supported.
|
||||
|
||||
Returns the distance traveled, either zero or positive. */)
|
||||
(string, lim)
|
||||
Lisp_Object string, lim;
|
||||
(Lisp_Object string, Lisp_Object lim)
|
||||
{
|
||||
return skip_chars (1, string, lim, 1);
|
||||
}
|
||||
|
@ -1353,8 +1343,7 @@ DEFUN ("skip-chars-backward", Fskip_chars_backward, Sskip_chars_backward, 1, 2,
|
|||
doc: /* Move point backward, stopping after a char not in STRING, or at pos LIM.
|
||||
See `skip-chars-forward' for details.
|
||||
Returns the distance traveled, either zero or negative. */)
|
||||
(string, lim)
|
||||
Lisp_Object string, lim;
|
||||
(Lisp_Object string, Lisp_Object lim)
|
||||
{
|
||||
return skip_chars (0, string, lim, 1);
|
||||
}
|
||||
|
@ -1365,8 +1354,7 @@ SYNTAX is a string of syntax code characters.
|
|||
Stop before a char whose syntax is not in SYNTAX, or at position LIM.
|
||||
If SYNTAX starts with ^, skip characters whose syntax is NOT in SYNTAX.
|
||||
This function returns the distance traveled, either zero or positive. */)
|
||||
(syntax, lim)
|
||||
Lisp_Object syntax, lim;
|
||||
(Lisp_Object syntax, Lisp_Object lim)
|
||||
{
|
||||
return skip_syntaxes (1, syntax, lim);
|
||||
}
|
||||
|
@ -1377,8 +1365,7 @@ SYNTAX is a string of syntax code characters.
|
|||
Stop on reaching a char whose syntax is not in SYNTAX, or at position LIM.
|
||||
If SYNTAX starts with ^, skip characters whose syntax is NOT in SYNTAX.
|
||||
This function returns the distance traveled, either zero or negative. */)
|
||||
(syntax, lim)
|
||||
Lisp_Object syntax, lim;
|
||||
(Lisp_Object syntax, Lisp_Object lim)
|
||||
{
|
||||
return skip_syntaxes (0, syntax, lim);
|
||||
}
|
||||
|
@ -2193,8 +2180,7 @@ Stop scanning if we find something other than a comment or whitespace.
|
|||
Set point to where scanning stops.
|
||||
If COUNT comments are found as expected, with nothing except whitespace
|
||||
between them, return t; otherwise return nil. */)
|
||||
(count)
|
||||
Lisp_Object count;
|
||||
(Lisp_Object count)
|
||||
{
|
||||
register EMACS_INT from;
|
||||
EMACS_INT from_byte;
|
||||
|
@ -2797,8 +2783,7 @@ Comments are ignored if `parse-sexp-ignore-comments' is non-nil.
|
|||
If the beginning or end of (the accessible part of) the buffer is reached
|
||||
and the depth is wrong, an error is signaled.
|
||||
If the depth is right but the count is not used up, nil is returned. */)
|
||||
(from, count, depth)
|
||||
Lisp_Object from, count, depth;
|
||||
(Lisp_Object from, Lisp_Object count, Lisp_Object depth)
|
||||
{
|
||||
CHECK_NUMBER (from);
|
||||
CHECK_NUMBER (count);
|
||||
|
@ -2818,8 +2803,7 @@ If the beginning or end of (the accessible part of) the buffer is reached
|
|||
in the middle of a parenthetical grouping, an error is signaled.
|
||||
If the beginning or end is reached between groupings
|
||||
but before count is used up, nil is returned. */)
|
||||
(from, count)
|
||||
Lisp_Object from, count;
|
||||
(Lisp_Object from, Lisp_Object count)
|
||||
{
|
||||
CHECK_NUMBER (from);
|
||||
CHECK_NUMBER (count);
|
||||
|
@ -2831,7 +2815,7 @@ DEFUN ("backward-prefix-chars", Fbackward_prefix_chars, Sbackward_prefix_chars,
|
|||
0, 0, 0,
|
||||
doc: /* Move point backward over any number of chars with prefix syntax.
|
||||
This includes chars with "quote" or "prefix" syntax (' or p). */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
int beg = BEGV;
|
||||
int opoint = PT;
|
||||
|
@ -3255,8 +3239,7 @@ Fifth arg OLDSTATE is a list like what this function returns.
|
|||
Sixth arg COMMENTSTOP non-nil means stop at the start of a comment.
|
||||
If it is symbol `syntax-table', stop after the start of a comment or a
|
||||
string, or after end of a comment or a string. */)
|
||||
(from, to, targetdepth, stopbefore, oldstate, commentstop)
|
||||
Lisp_Object from, to, targetdepth, stopbefore, oldstate, commentstop;
|
||||
(Lisp_Object from, Lisp_Object to, Lisp_Object targetdepth, Lisp_Object stopbefore, Lisp_Object oldstate, Lisp_Object commentstop)
|
||||
{
|
||||
struct lisp_parse_state state;
|
||||
int target;
|
||||
|
|
25
src/term.c
25
src/term.c
|
@ -2133,8 +2133,7 @@ DEFUN ("tty-display-color-p", Ftty_display_color_p, Stty_display_color_p,
|
|||
TERMINAL can be a terminal object, a frame, or nil (meaning the
|
||||
selected frame's terminal). This function always returns nil if
|
||||
TERMINAL does not refer to a text-only terminal. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct terminal *t = get_tty_terminal (terminal, 0);
|
||||
if (!t)
|
||||
|
@ -2151,8 +2150,7 @@ DEFUN ("tty-display-color-cells", Ftty_display_color_cells,
|
|||
TERMINAL can be a terminal object, a frame, or nil (meaning the
|
||||
selected frame's terminal). This function always returns 0 if
|
||||
TERMINAL does not refer to a text-only terminal. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct terminal *t = get_tty_terminal (terminal, 0);
|
||||
if (!t)
|
||||
|
@ -2336,8 +2334,7 @@ Returns nil if TERMINAL is not on a tty device.
|
|||
|
||||
TERMINAL can be a terminal object, a frame, or nil (meaning the
|
||||
selected frame's terminal). */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct terminal *t = get_terminal (terminal, 1);
|
||||
|
||||
|
@ -2356,8 +2353,7 @@ DEFUN ("controlling-tty-p", Fcontrolling_tty_p, Scontrolling_tty_p, 0, 1, 0,
|
|||
TERMINAL can be a terminal object, a frame, or nil (meaning the
|
||||
selected frame's terminal). This function always returns nil if
|
||||
TERMINAL is not on a tty device. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct terminal *t = get_terminal (terminal, 1);
|
||||
|
||||
|
@ -2377,8 +2373,7 @@ no effect if used on a non-tty terminal.
|
|||
TERMINAL can be a terminal object, a frame or nil (meaning the
|
||||
selected frame's terminal). This function always returns nil if
|
||||
TERMINAL does not refer to a text-only terminal. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct terminal *t = get_terminal (terminal, 1);
|
||||
|
||||
|
@ -2408,8 +2403,7 @@ terminal device.
|
|||
suspended.
|
||||
|
||||
A suspended tty may be resumed by calling `resume-tty' on it. */)
|
||||
(tty)
|
||||
Lisp_Object tty;
|
||||
(Lisp_Object tty)
|
||||
{
|
||||
struct terminal *t = get_tty_terminal (tty, 1);
|
||||
FILE *f;
|
||||
|
@ -2475,8 +2469,7 @@ suspended.
|
|||
|
||||
TTY may be a terminal object, a frame, or nil (meaning the selected
|
||||
frame's terminal). */)
|
||||
(tty)
|
||||
Lisp_Object tty;
|
||||
(Lisp_Object tty)
|
||||
{
|
||||
struct terminal *t = get_tty_terminal (tty, 1);
|
||||
int fd;
|
||||
|
@ -3148,7 +3141,7 @@ DEFUN ("gpm-mouse-start", Fgpm_mouse_start, Sgpm_mouse_start,
|
|||
0, 0, 0,
|
||||
doc: /* Open a connection to Gpm.
|
||||
Gpm-mouse can only be activated for one tty at a time. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
struct frame *f = SELECTED_FRAME ();
|
||||
struct tty_display_info *tty
|
||||
|
@ -3196,7 +3189,7 @@ close_gpm (int fd)
|
|||
DEFUN ("gpm-mouse-stop", Fgpm_mouse_stop, Sgpm_mouse_stop,
|
||||
0, 0, 0,
|
||||
doc: /* Close a connection to Gpm. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
struct frame *f = SELECTED_FRAME ();
|
||||
struct tty_display_info *tty
|
||||
|
|
|
@ -300,8 +300,7 @@ selected frame's terminal).
|
|||
|
||||
Normally, you may not delete a display if all other displays are suspended,
|
||||
but if the second argument FORCE is non-nil, you may do so. */)
|
||||
(terminal, force)
|
||||
Lisp_Object terminal, force;
|
||||
(Lisp_Object terminal, Lisp_Object force)
|
||||
{
|
||||
struct terminal *t = get_terminal (terminal, 0);
|
||||
|
||||
|
@ -342,8 +341,7 @@ DEFUN ("frame-terminal", Fframe_terminal, Sframe_terminal, 0, 1, 0,
|
|||
If FRAME is nil, the selected frame is used.
|
||||
|
||||
The terminal device is represented by its integer identifier. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
struct terminal *t;
|
||||
|
||||
|
@ -370,8 +368,7 @@ Value is nil if OBJECT is not a live display terminal.
|
|||
If object is a live display terminal, the return value indicates what
|
||||
sort of output terminal it uses. See the documentation of `framep' for
|
||||
possible return values. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
struct terminal *t;
|
||||
|
||||
|
@ -402,7 +399,7 @@ possible return values. */)
|
|||
|
||||
DEFUN ("terminal-list", Fterminal_list, Sterminal_list, 0, 0, 0,
|
||||
doc: /* Return a list of all terminal devices. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object terminal, terminals = Qnil;
|
||||
struct terminal *t;
|
||||
|
@ -422,8 +419,7 @@ It is not guaranteed that the returned value is unique among opened devices.
|
|||
|
||||
TERMINAL may be a terminal object, a frame, or nil (meaning the
|
||||
selected frame's terminal). */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct terminal *t
|
||||
= TERMINALP (terminal) ? XTERMINAL (terminal) : get_terminal (terminal, 1);
|
||||
|
@ -471,8 +467,7 @@ is a symbol.
|
|||
|
||||
TERMINAL can be a terminal object, a frame, or nil (meaning the
|
||||
selected frame's terminal). */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct terminal *t
|
||||
= TERMINALP (terminal) ? XTERMINAL (terminal) : get_terminal (terminal, 1);
|
||||
|
@ -483,9 +478,7 @@ DEFUN ("terminal-parameter", Fterminal_parameter, Sterminal_parameter, 2, 2, 0,
|
|||
doc: /* Return TERMINAL's value for parameter PARAMETER.
|
||||
TERMINAL can be a terminal object, a frame, or nil (meaning the
|
||||
selected frame's terminal). */)
|
||||
(terminal, parameter)
|
||||
Lisp_Object terminal;
|
||||
Lisp_Object parameter;
|
||||
(Lisp_Object terminal, Lisp_Object parameter)
|
||||
{
|
||||
Lisp_Object value;
|
||||
struct terminal *t
|
||||
|
@ -502,10 +495,7 @@ Return the previous value of PARAMETER.
|
|||
|
||||
TERMINAL can be a terminal object, a frame or nil (meaning the
|
||||
selected frame's terminal). */)
|
||||
(terminal, parameter, value)
|
||||
Lisp_Object terminal;
|
||||
Lisp_Object parameter;
|
||||
Lisp_Object value;
|
||||
(Lisp_Object terminal, Lisp_Object parameter, Lisp_Object value)
|
||||
{
|
||||
struct terminal *t
|
||||
= TERMINALP (terminal) ? XTERMINAL (terminal) : get_terminal (terminal, 1);
|
||||
|
|
|
@ -558,8 +558,7 @@ If the optional second argument OBJECT is a buffer (or nil, which means
|
|||
the current buffer), POSITION is a buffer position (integer or marker).
|
||||
If OBJECT is a string, POSITION is a 0-based index into it.
|
||||
If POSITION is at the end of OBJECT, the value is nil. */)
|
||||
(position, object)
|
||||
Lisp_Object position, object;
|
||||
(Lisp_Object position, Lisp_Object object)
|
||||
{
|
||||
register INTERVAL i;
|
||||
|
||||
|
@ -583,9 +582,7 @@ DEFUN ("get-text-property", Fget_text_property, Sget_text_property, 2, 3, 0,
|
|||
doc: /* Return the value of POSITION's property PROP, in OBJECT.
|
||||
OBJECT is optional and defaults to the current buffer.
|
||||
If POSITION is at the end of OBJECT, the value is nil. */)
|
||||
(position, prop, object)
|
||||
Lisp_Object position, object;
|
||||
Lisp_Object prop;
|
||||
(Lisp_Object position, Lisp_Object prop, Lisp_Object object)
|
||||
{
|
||||
return textget (Ftext_properties_at (position, object), prop);
|
||||
}
|
||||
|
@ -665,9 +662,7 @@ If OBJECT is a buffer, then overlay properties are considered as well as
|
|||
text properties.
|
||||
If OBJECT is a window, then that window's buffer is used, but window-specific
|
||||
overlays are considered only if they are associated with OBJECT. */)
|
||||
(position, prop, object)
|
||||
Lisp_Object position, object;
|
||||
register Lisp_Object prop;
|
||||
(Lisp_Object position, Lisp_Object prop, Lisp_Object object)
|
||||
{
|
||||
return get_char_property_and_overlay (position, prop, object, 0);
|
||||
}
|
||||
|
@ -686,9 +681,7 @@ value is always nil, since strings do not have overlays. If OBJECT is
|
|||
a window, then that window's buffer is used, but window-specific
|
||||
overlays are considered only if they are associated with OBJECT. If
|
||||
POSITION is at the end of OBJECT, both car and cdr are nil. */)
|
||||
(position, prop, object)
|
||||
Lisp_Object position, object;
|
||||
register Lisp_Object prop;
|
||||
(Lisp_Object position, Lisp_Object prop, Lisp_Object object)
|
||||
{
|
||||
Lisp_Object overlay;
|
||||
Lisp_Object val
|
||||
|
@ -708,8 +701,7 @@ If none is found up to (point-max), the function returns (point-max).
|
|||
If the optional second argument LIMIT is non-nil, don't search
|
||||
past position LIMIT; return LIMIT if nothing is found before LIMIT.
|
||||
LIMIT is a no-op if it is greater than (point-max). */)
|
||||
(position, limit)
|
||||
Lisp_Object position, limit;
|
||||
(Lisp_Object position, Lisp_Object limit)
|
||||
{
|
||||
Lisp_Object temp;
|
||||
|
||||
|
@ -734,8 +726,7 @@ If none is found since (point-min), the function returns (point-min).
|
|||
If the optional second argument LIMIT is non-nil, don't search
|
||||
past position LIMIT; return LIMIT if nothing is found before LIMIT.
|
||||
LIMIT is a no-op if it is less than (point-min). */)
|
||||
(position, limit)
|
||||
Lisp_Object position, limit;
|
||||
(Lisp_Object position, Lisp_Object limit)
|
||||
{
|
||||
Lisp_Object temp;
|
||||
|
||||
|
@ -767,8 +758,7 @@ If the property is constant all the way to the end of OBJECT, return the
|
|||
last valid position in OBJECT.
|
||||
If the optional fourth argument LIMIT is non-nil, don't search
|
||||
past position LIMIT; return LIMIT if nothing is found before LIMIT. */)
|
||||
(position, prop, object, limit)
|
||||
Lisp_Object prop, position, object, limit;
|
||||
(Lisp_Object position, Lisp_Object prop, Lisp_Object object, Lisp_Object limit)
|
||||
{
|
||||
if (STRINGP (object))
|
||||
{
|
||||
|
@ -852,8 +842,7 @@ If the property is constant all the way to the start of OBJECT, return the
|
|||
first valid position in OBJECT.
|
||||
If the optional fourth argument LIMIT is non-nil, don't search
|
||||
back past position LIMIT; return LIMIT if nothing is found before LIMIT. */)
|
||||
(position, prop, object, limit)
|
||||
Lisp_Object prop, position, object, limit;
|
||||
(Lisp_Object position, Lisp_Object prop, Lisp_Object object, Lisp_Object limit)
|
||||
{
|
||||
if (STRINGP (object))
|
||||
{
|
||||
|
@ -941,8 +930,7 @@ If the value is non-nil, it is a position greater than POSITION, never equal.
|
|||
|
||||
If the optional third argument LIMIT is non-nil, don't search
|
||||
past position LIMIT; return LIMIT if nothing is found before LIMIT. */)
|
||||
(position, object, limit)
|
||||
Lisp_Object position, object, limit;
|
||||
(Lisp_Object position, Lisp_Object object, Lisp_Object limit)
|
||||
{
|
||||
register INTERVAL i, next;
|
||||
|
||||
|
@ -1038,8 +1026,7 @@ If the value is non-nil, it is a position greater than POSITION, never equal.
|
|||
|
||||
If the optional fourth argument LIMIT is non-nil, don't search
|
||||
past position LIMIT; return LIMIT if nothing is found before LIMIT. */)
|
||||
(position, prop, object, limit)
|
||||
Lisp_Object position, prop, object, limit;
|
||||
(Lisp_Object position, Lisp_Object prop, Lisp_Object object, Lisp_Object limit)
|
||||
{
|
||||
register INTERVAL i, next;
|
||||
register Lisp_Object here_val;
|
||||
|
@ -1086,8 +1073,7 @@ If the value is non-nil, it is a position less than POSITION, never equal.
|
|||
|
||||
If the optional third argument LIMIT is non-nil, don't search
|
||||
back past position LIMIT; return LIMIT if nothing is found until LIMIT. */)
|
||||
(position, object, limit)
|
||||
Lisp_Object position, object, limit;
|
||||
(Lisp_Object position, Lisp_Object object, Lisp_Object limit)
|
||||
{
|
||||
register INTERVAL i, previous;
|
||||
|
||||
|
@ -1135,8 +1121,7 @@ If the value is non-nil, it is a position less than POSITION, never equal.
|
|||
|
||||
If the optional fourth argument LIMIT is non-nil, don't search
|
||||
back past position LIMIT; return LIMIT if nothing is found until LIMIT. */)
|
||||
(position, prop, object, limit)
|
||||
Lisp_Object position, prop, object, limit;
|
||||
(Lisp_Object position, Lisp_Object prop, Lisp_Object object, Lisp_Object limit)
|
||||
{
|
||||
register INTERVAL i, previous;
|
||||
register Lisp_Object here_val;
|
||||
|
@ -1185,8 +1170,7 @@ OBJECT is a buffer (or nil, which means the current buffer),
|
|||
START and END are buffer positions (integers or markers).
|
||||
If OBJECT is a string, START and END are 0-based indices into it.
|
||||
Return t if any property value actually changed, nil otherwise. */)
|
||||
(start, end, properties, object)
|
||||
Lisp_Object start, end, properties, object;
|
||||
(Lisp_Object start, Lisp_Object end, Lisp_Object properties, Lisp_Object object)
|
||||
{
|
||||
register INTERVAL i, unchanged;
|
||||
register int s, len, modified = 0;
|
||||
|
@ -1293,8 +1277,7 @@ specify the property to add.
|
|||
If the optional fifth argument OBJECT is a buffer (or nil, which means
|
||||
the current buffer), START and END are buffer positions (integers or
|
||||
markers). If OBJECT is a string, START and END are 0-based indices into it. */)
|
||||
(start, end, property, value, object)
|
||||
Lisp_Object start, end, property, value, object;
|
||||
(Lisp_Object start, Lisp_Object end, Lisp_Object property, Lisp_Object value, Lisp_Object object)
|
||||
{
|
||||
Fadd_text_properties (start, end,
|
||||
Fcons (property, Fcons (value, Qnil)),
|
||||
|
@ -1311,8 +1294,7 @@ the current buffer), START and END are buffer positions (integers or
|
|||
markers). If OBJECT is a string, START and END are 0-based indices into it.
|
||||
If PROPERTIES is nil, the effect is to remove all properties from
|
||||
the designated part of OBJECT. */)
|
||||
(start, end, properties, object)
|
||||
Lisp_Object start, end, properties, object;
|
||||
(Lisp_Object start, Lisp_Object end, Lisp_Object properties, Lisp_Object object)
|
||||
{
|
||||
return set_text_properties (start, end, properties, object, Qt);
|
||||
}
|
||||
|
@ -1481,8 +1463,7 @@ markers). If OBJECT is a string, START and END are 0-based indices into it.
|
|||
Return t if any property was actually removed, nil otherwise.
|
||||
|
||||
Use `set-text-properties' if you want to remove all text properties. */)
|
||||
(start, end, properties, object)
|
||||
Lisp_Object start, end, properties, object;
|
||||
(Lisp_Object start, Lisp_Object end, Lisp_Object properties, Lisp_Object object)
|
||||
{
|
||||
register INTERVAL i, unchanged;
|
||||
register int s, len, modified = 0;
|
||||
|
@ -1567,8 +1548,7 @@ If the optional fourth argument OBJECT is a buffer (or nil, which means
|
|||
the current buffer), START and END are buffer positions (integers or
|
||||
markers). If OBJECT is a string, START and END are 0-based indices into it.
|
||||
Return t if any property was actually removed, nil otherwise. */)
|
||||
(start, end, list_of_properties, object)
|
||||
Lisp_Object start, end, list_of_properties, object;
|
||||
(Lisp_Object start, Lisp_Object end, Lisp_Object list_of_properties, Lisp_Object object)
|
||||
{
|
||||
register INTERVAL i, unchanged;
|
||||
register int s, len, modified = 0;
|
||||
|
@ -1675,8 +1655,7 @@ is `eq' to VALUE. Otherwise return nil.
|
|||
If the optional fifth argument OBJECT is a buffer (or nil, which means
|
||||
the current buffer), START and END are buffer positions (integers or
|
||||
markers). If OBJECT is a string, START and END are 0-based indices into it. */)
|
||||
(start, end, property, value, object)
|
||||
Lisp_Object start, end, property, value, object;
|
||||
(Lisp_Object start, Lisp_Object end, Lisp_Object property, Lisp_Object value, Lisp_Object object)
|
||||
{
|
||||
register INTERVAL i;
|
||||
register int e, pos;
|
||||
|
@ -1712,8 +1691,7 @@ is not `eq' to VALUE. Otherwise, return nil.
|
|||
If the optional fifth argument OBJECT is a buffer (or nil, which means
|
||||
the current buffer), START and END are buffer positions (integers or
|
||||
markers). If OBJECT is a string, START and END are 0-based indices into it. */)
|
||||
(start, end, property, value, object)
|
||||
Lisp_Object start, end, property, value, object;
|
||||
(Lisp_Object start, Lisp_Object end, Lisp_Object property, Lisp_Object value, Lisp_Object object)
|
||||
{
|
||||
register INTERVAL i;
|
||||
register int s, e;
|
||||
|
|
|
@ -288,7 +288,7 @@ DEFUN ("undo-boundary", Fundo_boundary, Sundo_boundary, 0, 0, 0,
|
|||
doc: /* Mark a boundary between units of undo.
|
||||
An undo command will stop at this point,
|
||||
but another undo command will undo to the previous boundary. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object tem;
|
||||
if (EQ (current_buffer->undo_list, Qt))
|
||||
|
@ -455,8 +455,7 @@ truncate_undo_list (struct buffer *b)
|
|||
DEFUN ("primitive-undo", Fprimitive_undo, Sprimitive_undo, 2, 2, 0,
|
||||
doc: /* Undo N records from the front of the list LIST.
|
||||
Return what remains of the list. */)
|
||||
(n, list)
|
||||
Lisp_Object n, list;
|
||||
(Lisp_Object n, Lisp_Object list)
|
||||
{
|
||||
struct gcpro gcpro1, gcpro2;
|
||||
Lisp_Object next;
|
||||
|
|
|
@ -453,8 +453,7 @@ static char system_error_msg[] =
|
|||
|
||||
DEFUN ("w16-set-clipboard-data", Fw16_set_clipboard_data, Sw16_set_clipboard_data, 1, 2, 0,
|
||||
doc: /* This sets the clipboard data to the given text. */)
|
||||
(string, frame)
|
||||
Lisp_Object string, frame;
|
||||
(Lisp_Object string, Lisp_Object frame)
|
||||
{
|
||||
unsigned ok = 1, put_status = 0;
|
||||
int nbytes, charset_info, no_crlf_conversion;
|
||||
|
@ -563,8 +562,7 @@ DEFUN ("w16-set-clipboard-data", Fw16_set_clipboard_data, Sw16_set_clipboard_dat
|
|||
|
||||
DEFUN ("w16-get-clipboard-data", Fw16_get_clipboard_data, Sw16_get_clipboard_data, 0, 1, 0,
|
||||
doc: /* This gets the clipboard data in text format. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
unsigned data_size, truelen;
|
||||
unsigned char *htext = NULL;
|
||||
|
@ -658,8 +656,7 @@ the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.
|
|||
\(Those are literal upper-case symbol names, since that's what X expects.)
|
||||
For convenience, the symbol nil is the same as `PRIMARY',
|
||||
and t is the same as `SECONDARY'. */)
|
||||
(selection)
|
||||
Lisp_Object selection;
|
||||
(Lisp_Object selection)
|
||||
{
|
||||
CHECK_SYMBOL (selection);
|
||||
|
||||
|
|
|
@ -393,8 +393,7 @@ SOUND is 'asterisk, 'exclamation, 'hand, 'question, 'ok, or 'silent
|
|||
to use the corresponding system sound for the bell. The 'silent sound
|
||||
prevents Emacs from making any sound at all.
|
||||
SOUND is nil to use the normal beep. */)
|
||||
(sound)
|
||||
Lisp_Object sound;
|
||||
(Lisp_Object sound)
|
||||
{
|
||||
CHECK_SYMBOL (sound);
|
||||
|
||||
|
@ -748,9 +747,7 @@ initialize_w32_display (struct terminal *term)
|
|||
|
||||
DEFUN ("set-screen-color", Fset_screen_color, Sset_screen_color, 2, 2, 0,
|
||||
doc: /* Set screen colors. */)
|
||||
(foreground, background)
|
||||
Lisp_Object foreground;
|
||||
Lisp_Object background;
|
||||
(Lisp_Object foreground, Lisp_Object background)
|
||||
{
|
||||
char_attr_normal = XFASTINT (foreground) + (XFASTINT (background) << 4);
|
||||
|
||||
|
@ -760,8 +757,7 @@ DEFUN ("set-screen-color", Fset_screen_color, Sset_screen_color, 2, 2, 0,
|
|||
|
||||
DEFUN ("set-cursor-size", Fset_cursor_size, Sset_cursor_size, 1, 1, 0,
|
||||
doc: /* Set cursor size. */)
|
||||
(size)
|
||||
Lisp_Object size;
|
||||
(Lisp_Object size)
|
||||
{
|
||||
CONSOLE_CURSOR_INFO cci;
|
||||
cci.dwSize = XFASTINT (size);
|
||||
|
|
123
src/w32fns.c
123
src/w32fns.c
|
@ -475,8 +475,7 @@ DEFUN ("w32-define-rgb-color", Fw32_define_rgb_color,
|
|||
This adds or updates a named color to `w32-color-map', making it
|
||||
available for use. The original entry's RGB ref is returned, or nil
|
||||
if the entry is new. */)
|
||||
(red, green, blue, name)
|
||||
Lisp_Object red, green, blue, name;
|
||||
(Lisp_Object red, Lisp_Object green, Lisp_Object blue, Lisp_Object name)
|
||||
{
|
||||
Lisp_Object rgb;
|
||||
Lisp_Object oldrgb = Qnil;
|
||||
|
@ -762,7 +761,7 @@ colormap_t w32_color_map[] =
|
|||
|
||||
DEFUN ("w32-default-color-map", Fw32_default_color_map, Sw32_default_color_map,
|
||||
0, 0, 0, doc: /* Return the default color map. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
int i;
|
||||
colormap_t *pc = w32_color_map;
|
||||
|
@ -4191,8 +4190,7 @@ then `default-minibuffer-frame' must be a frame whose minibuffer can
|
|||
be shared by the new frame.
|
||||
|
||||
This function is an internal primitive--use `make-frame' instead. */)
|
||||
(parameters)
|
||||
Lisp_Object parameters;
|
||||
(Lisp_Object parameters)
|
||||
{
|
||||
struct frame *f;
|
||||
Lisp_Object frame, tem;
|
||||
|
@ -4520,8 +4518,7 @@ x_get_focus_frame (struct frame *frame)
|
|||
|
||||
DEFUN ("x-focus-frame", Fx_focus_frame, Sx_focus_frame, 1, 1, 0,
|
||||
doc: /* Give FRAME input focus, raising to foreground if necessary. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
x_focus_on_frame (check_x_frame (frame));
|
||||
return Qnil;
|
||||
|
@ -4530,8 +4527,7 @@ DEFUN ("x-focus-frame", Fx_focus_frame, Sx_focus_frame, 1, 1, 0,
|
|||
|
||||
DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0,
|
||||
doc: /* Internal function called by `color-defined-p', which see. */)
|
||||
(color, frame)
|
||||
Lisp_Object color, frame;
|
||||
(Lisp_Object color, Lisp_Object frame)
|
||||
{
|
||||
XColor foo;
|
||||
FRAME_PTR f = check_x_frame (frame);
|
||||
|
@ -4546,8 +4542,7 @@ DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0,
|
|||
|
||||
DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0,
|
||||
doc: /* Internal function called by `color-values', which see. */)
|
||||
(color, frame)
|
||||
Lisp_Object color, frame;
|
||||
(Lisp_Object color, Lisp_Object frame)
|
||||
{
|
||||
XColor foo;
|
||||
FRAME_PTR f = check_x_frame (frame);
|
||||
|
@ -4567,8 +4562,7 @@ DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0,
|
|||
|
||||
DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0,
|
||||
doc: /* Internal function called by `display-color-p', which see. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
struct w32_display_info *dpyinfo = check_x_display_info (display);
|
||||
|
||||
|
@ -4585,8 +4579,7 @@ Note that color displays do support shades of gray.
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
struct w32_display_info *dpyinfo = check_x_display_info (display);
|
||||
|
||||
|
@ -4602,8 +4595,7 @@ DEFUN ("x-display-pixel-width", Fx_display_pixel_width,
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
struct w32_display_info *dpyinfo = check_x_display_info (display);
|
||||
|
||||
|
@ -4616,8 +4608,7 @@ DEFUN ("x-display-pixel-height", Fx_display_pixel_height,
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
struct w32_display_info *dpyinfo = check_x_display_info (display);
|
||||
|
||||
|
@ -4630,8 +4621,7 @@ DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes,
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
struct w32_display_info *dpyinfo = check_x_display_info (display);
|
||||
|
||||
|
@ -4644,8 +4634,7 @@ DEFUN ("x-display-color-cells", Fx_display_color_cells, Sx_display_color_cells,
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
struct w32_display_info *dpyinfo = check_x_display_info (display);
|
||||
HDC hdc;
|
||||
|
@ -4674,8 +4663,7 @@ DEFUN ("x-server-max-request-size", Fx_server_max_request_size,
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
struct w32_display_info *dpyinfo = check_x_display_info (display);
|
||||
|
||||
|
@ -4687,8 +4675,7 @@ DEFUN ("x-server-vendor", Fx_server_vendor, Sx_server_vendor, 0, 1, 0,
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
return build_string ("Microsoft Corp.");
|
||||
}
|
||||
|
@ -4702,8 +4689,7 @@ release number. See also the function `x-server-vendor'.
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
return Fcons (make_number (w32_major_version),
|
||||
Fcons (make_number (w32_minor_version),
|
||||
|
@ -4715,8 +4701,7 @@ DEFUN ("x-display-screens", Fx_display_screens, Sx_display_screens, 0, 1, 0,
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
return make_number (1);
|
||||
}
|
||||
|
@ -4727,8 +4712,7 @@ DEFUN ("x-display-mm-height", Fx_display_mm_height,
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
struct w32_display_info *dpyinfo = check_x_display_info (display);
|
||||
HDC hdc;
|
||||
|
@ -4748,8 +4732,7 @@ DEFUN ("x-display-mm-width", Fx_display_mm_width, Sx_display_mm_width, 0, 1, 0,
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
struct w32_display_info *dpyinfo = check_x_display_info (display);
|
||||
|
||||
|
@ -4772,8 +4755,7 @@ The value may be `always', `when-mapped', or `not-useful'.
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
return intern ("not-useful");
|
||||
}
|
||||
|
@ -4787,8 +4769,7 @@ The value is one of the symbols `static-gray', `gray-scale',
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
struct w32_display_info *dpyinfo = check_x_display_info (display);
|
||||
Lisp_Object result = Qnil;
|
||||
|
@ -4811,8 +4792,7 @@ DEFUN ("x-display-save-under", Fx_display_save_under,
|
|||
The optional argument DISPLAY specifies which display to ask about.
|
||||
DISPLAY should be either a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
return Qnil;
|
||||
}
|
||||
|
@ -4891,8 +4871,7 @@ DISPLAY is the name of the display to connect to.
|
|||
Optional second arg XRM-STRING is a string of resources in xrdb format.
|
||||
If the optional third arg MUST-SUCCEED is non-nil,
|
||||
terminate Emacs if we can't open the connection. */)
|
||||
(display, xrm_string, must_succeed)
|
||||
Lisp_Object display, xrm_string, must_succeed;
|
||||
(Lisp_Object display, Lisp_Object xrm_string, Lisp_Object must_succeed)
|
||||
{
|
||||
unsigned char *xrm_option;
|
||||
struct w32_display_info *dpyinfo;
|
||||
|
@ -4980,8 +4959,7 @@ DEFUN ("x-close-connection", Fx_close_connection,
|
|||
doc: /* Close the connection to DISPLAY's server.
|
||||
For DISPLAY, specify either a frame or a display name (a string).
|
||||
If DISPLAY is nil, that stands for the selected frame's display. */)
|
||||
(display)
|
||||
Lisp_Object display;
|
||||
(Lisp_Object display)
|
||||
{
|
||||
struct w32_display_info *dpyinfo = check_x_display_info (display);
|
||||
int i;
|
||||
|
@ -5000,7 +4978,7 @@ If DISPLAY is nil, that stands for the selected frame's display. */)
|
|||
|
||||
DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0,
|
||||
doc: /* Return the list of display names that Emacs has connections to. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object tail, result;
|
||||
|
||||
|
@ -5013,8 +4991,7 @@ DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0,
|
|||
|
||||
DEFUN ("x-synchronize", Fx_synchronize, Sx_synchronize, 1, 2, 0,
|
||||
doc: /* This is a noop on W32 systems. */)
|
||||
(on, display)
|
||||
Lisp_Object display, on;
|
||||
(Lisp_Object on, Lisp_Object display)
|
||||
{
|
||||
return Qnil;
|
||||
}
|
||||
|
@ -5043,8 +5020,7 @@ If OUTER_P is non-nil, the property is changed for the outer X window of
|
|||
FRAME. Default is to change on the edit X window.
|
||||
|
||||
Value is VALUE. */)
|
||||
(prop, value, frame, type, format, outer_p)
|
||||
Lisp_Object prop, value, frame, type, format, outer_p;
|
||||
(Lisp_Object prop, Lisp_Object value, Lisp_Object frame, Lisp_Object type, Lisp_Object format, Lisp_Object outer_p)
|
||||
{
|
||||
#if 0 /* TODO : port window properties to W32 */
|
||||
struct frame *f = check_x_frame (frame);
|
||||
|
@ -5073,8 +5049,7 @@ DEFUN ("x-delete-window-property", Fx_delete_window_property,
|
|||
Sx_delete_window_property, 1, 2, 0,
|
||||
doc: /* Remove window property PROP from X window of FRAME.
|
||||
FRAME nil or omitted means use the selected frame. Value is PROP. */)
|
||||
(prop, frame)
|
||||
Lisp_Object prop, frame;
|
||||
(Lisp_Object prop, Lisp_Object frame)
|
||||
{
|
||||
#if 0 /* TODO : port window properties to W32 */
|
||||
|
||||
|
@ -5101,8 +5076,7 @@ DEFUN ("x-window-property", Fx_window_property, Sx_window_property,
|
|||
If FRAME is nil or omitted, use the selected frame. Value is nil
|
||||
if FRAME hasn't a property with name PROP or if PROP has no string
|
||||
value. */)
|
||||
(prop, frame)
|
||||
Lisp_Object prop, frame;
|
||||
(Lisp_Object prop, Lisp_Object frame)
|
||||
{
|
||||
#if 0 /* TODO : port window properties to W32 */
|
||||
|
||||
|
@ -5670,8 +5644,7 @@ DY added (default is -10).
|
|||
|
||||
A tooltip's maximum size is specified by `x-max-tooltip-size'.
|
||||
Text larger than the specified size is clipped. */)
|
||||
(string, frame, parms, timeout, dx, dy)
|
||||
Lisp_Object string, frame, parms, timeout, dx, dy;
|
||||
(Lisp_Object string, Lisp_Object frame, Lisp_Object parms, Lisp_Object timeout, Lisp_Object dx, Lisp_Object dy)
|
||||
{
|
||||
struct frame *f;
|
||||
struct window *w;
|
||||
|
@ -5900,7 +5873,7 @@ Text larger than the specified size is clipped. */)
|
|||
DEFUN ("x-hide-tip", Fx_hide_tip, Sx_hide_tip, 0, 0, 0,
|
||||
doc: /* Hide the current tooltip window, if there is any.
|
||||
Value is t if tooltip was open, nil otherwise. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
int count;
|
||||
Lisp_Object deleted, frame, timer;
|
||||
|
@ -5996,8 +5969,7 @@ Use a file selection dialog.
|
|||
Select DEFAULT-FILENAME in the dialog's file selection box, if
|
||||
specified. Ensure that file exists if MUSTMATCH is non-nil.
|
||||
If ONLY-DIR-P is non-nil, the user can only select directories. */)
|
||||
(prompt, dir, default_filename, mustmatch, only_dir_p)
|
||||
Lisp_Object prompt, dir, default_filename, mustmatch, only_dir_p;
|
||||
(Lisp_Object prompt, Lisp_Object dir, Lisp_Object default_filename, Lisp_Object mustmatch, Lisp_Object only_dir_p)
|
||||
{
|
||||
struct frame *f = SELECTED_FRAME ();
|
||||
Lisp_Object file = Qnil;
|
||||
|
@ -6125,8 +6097,7 @@ If ONLY-DIR-P is non-nil, the user can only select directories. */)
|
|||
DEFUN ("system-move-file-to-trash", Fsystem_move_file_to_trash,
|
||||
Ssystem_move_file_to_trash, 1, 1, 0,
|
||||
doc: /* Move file or directory named FILENAME to the recycle bin. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
Lisp_Object handler;
|
||||
Lisp_Object encoded_file;
|
||||
|
@ -6188,8 +6159,7 @@ to activate the menubar for keyboard access. #xf140 activates the
|
|||
screen saver if defined.
|
||||
|
||||
If optional parameter FRAME is not specified, use selected frame. */)
|
||||
(command, frame)
|
||||
Lisp_Object command, frame;
|
||||
(Lisp_Object command, Lisp_Object frame)
|
||||
{
|
||||
FRAME_PTR f = check_x_frame (frame);
|
||||
|
||||
|
@ -6242,8 +6212,7 @@ an integer representing a ShowWindow flag:
|
|||
1 - start normally
|
||||
3 - start maximized
|
||||
6 - start minimized */)
|
||||
(operation, document, parameters, show_flag)
|
||||
Lisp_Object operation, document, parameters, show_flag;
|
||||
(Lisp_Object operation, Lisp_Object document, Lisp_Object parameters, Lisp_Object show_flag)
|
||||
{
|
||||
Lisp_Object current_dir;
|
||||
char *errstr;
|
||||
|
@ -6380,8 +6349,7 @@ modifier is interpreted as Alt if `w32-alt-is-meta' is t, and hyper
|
|||
is always interpreted as the Windows modifier keys.
|
||||
|
||||
The return value is the hotkey-id if registered, otherwise nil. */)
|
||||
(key)
|
||||
Lisp_Object key;
|
||||
(Lisp_Object key)
|
||||
{
|
||||
key = w32_parse_hot_key (key);
|
||||
|
||||
|
@ -6413,8 +6381,7 @@ The return value is the hotkey-id if registered, otherwise nil. */)
|
|||
DEFUN ("w32-unregister-hot-key", Fw32_unregister_hot_key,
|
||||
Sw32_unregister_hot_key, 1, 1, 0,
|
||||
doc: /* Unregister KEY as a hot-key combination. */)
|
||||
(key)
|
||||
Lisp_Object key;
|
||||
(Lisp_Object key)
|
||||
{
|
||||
Lisp_Object item;
|
||||
|
||||
|
@ -6446,7 +6413,7 @@ DEFUN ("w32-unregister-hot-key", Fw32_unregister_hot_key,
|
|||
DEFUN ("w32-registered-hot-keys", Fw32_registered_hot_keys,
|
||||
Sw32_registered_hot_keys, 0, 0, 0,
|
||||
doc: /* Return list of registered hot-key IDs. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return Fdelq (Qnil, Fcopy_sequence (w32_grabbed_keys));
|
||||
}
|
||||
|
@ -6455,8 +6422,7 @@ DEFUN ("w32-reconstruct-hot-key", Fw32_reconstruct_hot_key,
|
|||
Sw32_reconstruct_hot_key, 1, 1, 0,
|
||||
doc: /* Convert hot-key ID to a lisp key combination.
|
||||
usage: (w32-reconstruct-hot-key ID) */)
|
||||
(hotkeyid)
|
||||
Lisp_Object hotkeyid;
|
||||
(Lisp_Object hotkeyid)
|
||||
{
|
||||
int vk_code, w32_modifiers;
|
||||
Lisp_Object key;
|
||||
|
@ -6490,8 +6456,7 @@ DEFUN ("w32-toggle-lock-key", Fw32_toggle_lock_key,
|
|||
KEY can be `capslock', `kp-numlock', or `scroll'.
|
||||
If the optional parameter NEW-STATE is a number, then the state of KEY
|
||||
is set to off if the low bit of NEW-STATE is zero, otherwise on. */)
|
||||
(key, new_state)
|
||||
Lisp_Object key, new_state;
|
||||
(Lisp_Object key, Lisp_Object new_state)
|
||||
{
|
||||
int vk_code;
|
||||
|
||||
|
@ -6527,8 +6492,7 @@ DEFUN ("w32-window-exists-p", Fw32_window_exists_p, Sw32_window_exists_p,
|
|||
doc: /* Return non-nil if a window exists with the specified CLASS and NAME.
|
||||
|
||||
This is a direct interface to the Windows API FindWindow function. */)
|
||||
(class, name)
|
||||
Lisp_Object class, name;
|
||||
(Lisp_Object class, Lisp_Object name)
|
||||
{
|
||||
HWND hnd;
|
||||
|
||||
|
@ -6557,7 +6521,7 @@ The following %-sequences are provided:
|
|||
%m Remaining time (to charge or discharge) in minutes
|
||||
%h Remaining time (to charge or discharge) in hours
|
||||
%t Remaining time (to charge or discharge) in the form `h:min' */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object status = Qnil;
|
||||
|
||||
|
@ -6661,8 +6625,7 @@ Value is a list of floats (TOTAL FREE AVAIL), where TOTAL is the total
|
|||
storage of the file system, FREE is the free storage, and AVAIL is the
|
||||
storage available to a non-superuser. All 3 numbers are in bytes.
|
||||
If the underlying system call fails, value is nil. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
Lisp_Object encoded, value;
|
||||
|
||||
|
@ -6754,7 +6717,7 @@ If the underlying system call fails, value is nil. */)
|
|||
|
||||
DEFUN ("default-printer-name", Fdefault_printer_name, Sdefault_printer_name,
|
||||
0, 0, 0, doc: /* Return the name of Windows default printer device. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
static char pname_buf[256];
|
||||
int err;
|
||||
|
|
|
@ -2329,8 +2329,7 @@ Return fontconfig style font string corresponding to the selection.
|
|||
If FRAME is omitted or nil, it defaults to the selected frame.
|
||||
If EXCLUDE-PROPORTIONAL is non-nil, exclude proportional fonts
|
||||
in the font selection dialog. */)
|
||||
(frame, exclude_proportional)
|
||||
Lisp_Object frame, exclude_proportional;
|
||||
(Lisp_Object frame, Lisp_Object exclude_proportional)
|
||||
{
|
||||
FRAME_PTR f = check_x_frame (frame);
|
||||
CHOOSEFONT cf;
|
||||
|
|
|
@ -156,8 +156,7 @@ on the left of the dialog box and all following items on the right.
|
|||
|
||||
If HEADER is non-nil, the frame title for the box is "Information",
|
||||
otherwise it is "Question". */)
|
||||
(position, contents, header)
|
||||
Lisp_Object position, contents, header;
|
||||
(Lisp_Object position, Lisp_Object contents, Lisp_Object header)
|
||||
{
|
||||
FRAME_PTR f = NULL;
|
||||
Lisp_Object window;
|
||||
|
@ -1688,7 +1687,7 @@ w32_free_menu_strings (HWND hwnd)
|
|||
|
||||
DEFUN ("menu-or-popup-active-p", Fmenu_or_popup_active_p, Smenu_or_popup_active_p, 0, 0, 0,
|
||||
doc: /* Return t if a menu or popup dialog is active on selected frame. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
#ifdef HAVE_MENUS
|
||||
FRAME_PTR f;
|
||||
|
|
|
@ -1723,8 +1723,7 @@ also loaded immediately if not already loaded. If winsock is loaded,
|
|||
the winsock local hostname is returned (since this may be different from
|
||||
the value of `system-name' and should supplant it), otherwise t is
|
||||
returned to indicate winsock support is present. */)
|
||||
(load_now)
|
||||
Lisp_Object load_now;
|
||||
(Lisp_Object load_now)
|
||||
{
|
||||
int have_winsock;
|
||||
|
||||
|
@ -1755,7 +1754,7 @@ DEFUN ("w32-unload-winsock", Fw32_unload_winsock, Sw32_unload_winsock,
|
|||
This is provided to allow dial-up socket connections to be disconnected
|
||||
when no longer needed. Returns nil without unloading winsock if any
|
||||
socket connections still exist. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return term_winsock () ? Qt : Qnil;
|
||||
}
|
||||
|
@ -1770,8 +1769,7 @@ DEFUN ("w32-short-file-name", Fw32_short_file_name, Sw32_short_file_name, 1, 1,
|
|||
doc: /* Return the short file name version (8.3) of the full path of FILENAME.
|
||||
If FILENAME does not exist, return nil.
|
||||
All path elements in FILENAME are converted to their short names. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
char shortname[MAX_PATH];
|
||||
|
||||
|
@ -1795,8 +1793,7 @@ DEFUN ("w32-long-file-name", Fw32_long_file_name, Sw32_long_file_name,
|
|||
doc: /* Return the long file name version of the full path of FILENAME.
|
||||
If FILENAME does not exist, return nil.
|
||||
All path elements in FILENAME are converted to their long names. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
char longname[ MAX_PATH ];
|
||||
int drive_only = 0;
|
||||
|
@ -1833,8 +1830,7 @@ PRIORITY should be one of the symbols high, normal, or low;
|
|||
any other symbol will be interpreted as normal.
|
||||
|
||||
If successful, the return value is t, otherwise nil. */)
|
||||
(process, priority)
|
||||
Lisp_Object process, priority;
|
||||
(Lisp_Object process, Lisp_Object priority)
|
||||
{
|
||||
HANDLE proc_handle = GetCurrentProcess ();
|
||||
DWORD priority_class = NORMAL_PRIORITY_CLASS;
|
||||
|
@ -1956,8 +1952,7 @@ is a number, it is interpreted as an LCTYPE constant and the corresponding
|
|||
locale information is returned.
|
||||
|
||||
If LCID (a 16-bit number) is not a valid locale, the result is nil. */)
|
||||
(lcid, longform)
|
||||
Lisp_Object lcid, longform;
|
||||
(Lisp_Object lcid, Lisp_Object longform)
|
||||
{
|
||||
int got_abbrev;
|
||||
int got_full;
|
||||
|
@ -2003,7 +1998,7 @@ DEFUN ("w32-get-current-locale-id", Fw32_get_current_locale_id,
|
|||
doc: /* Return Windows locale id for current locale setting.
|
||||
This is a numerical value; use `w32-get-locale-info' to convert to a
|
||||
human-readable form. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return make_number (GetThreadLocale ());
|
||||
}
|
||||
|
@ -2043,7 +2038,7 @@ DEFUN ("w32-get-valid-locale-ids", Fw32_get_valid_locale_ids,
|
|||
doc: /* Return list of all valid Windows locale ids.
|
||||
Each id is a numerical value; use `w32-get-locale-info' to convert to a
|
||||
human-readable form. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Vw32_valid_locale_ids = Qnil;
|
||||
|
||||
|
@ -2060,8 +2055,7 @@ By default, the system default locale setting is returned; if the optional
|
|||
parameter USERP is non-nil, the user default locale setting is returned.
|
||||
This is a numerical value; use `w32-get-locale-info' to convert to a
|
||||
human-readable form. */)
|
||||
(userp)
|
||||
Lisp_Object userp;
|
||||
(Lisp_Object userp)
|
||||
{
|
||||
if (NILP (userp))
|
||||
return make_number (GetSystemDefaultLCID ());
|
||||
|
@ -2072,8 +2066,7 @@ human-readable form. */)
|
|||
DEFUN ("w32-set-current-locale", Fw32_set_current_locale, Sw32_set_current_locale, 1, 1, 0,
|
||||
doc: /* Make Windows locale LCID be the current locale setting for Emacs.
|
||||
If successful, the new locale id is returned, otherwise nil. */)
|
||||
(lcid)
|
||||
Lisp_Object lcid;
|
||||
(Lisp_Object lcid)
|
||||
{
|
||||
CHECK_NUMBER (lcid);
|
||||
|
||||
|
@ -2107,7 +2100,7 @@ enum_codepage_fn (LPTSTR codepageNum)
|
|||
DEFUN ("w32-get-valid-codepages", Fw32_get_valid_codepages,
|
||||
Sw32_get_valid_codepages, 0, 0, 0,
|
||||
doc: /* Return list of all valid Windows codepages. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Vw32_valid_codepages = Qnil;
|
||||
|
||||
|
@ -2121,7 +2114,7 @@ DEFUN ("w32-get-valid-codepages", Fw32_get_valid_codepages,
|
|||
DEFUN ("w32-get-console-codepage", Fw32_get_console_codepage,
|
||||
Sw32_get_console_codepage, 0, 0, 0,
|
||||
doc: /* Return current Windows codepage for console input. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return make_number (GetConsoleCP ());
|
||||
}
|
||||
|
@ -2132,8 +2125,7 @@ DEFUN ("w32-set-console-codepage", Fw32_set_console_codepage,
|
|||
doc: /* Make Windows codepage CP be the current codepage setting for Emacs.
|
||||
The codepage setting affects keyboard input and display in tty mode.
|
||||
If successful, the new CP is returned, otherwise nil. */)
|
||||
(cp)
|
||||
Lisp_Object cp;
|
||||
(Lisp_Object cp)
|
||||
{
|
||||
CHECK_NUMBER (cp);
|
||||
|
||||
|
@ -2150,7 +2142,7 @@ If successful, the new CP is returned, otherwise nil. */)
|
|||
DEFUN ("w32-get-console-output-codepage", Fw32_get_console_output_codepage,
|
||||
Sw32_get_console_output_codepage, 0, 0, 0,
|
||||
doc: /* Return current Windows codepage for console output. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return make_number (GetConsoleOutputCP ());
|
||||
}
|
||||
|
@ -2161,8 +2153,7 @@ DEFUN ("w32-set-console-output-codepage", Fw32_set_console_output_codepage,
|
|||
doc: /* Make Windows codepage CP be the current codepage setting for Emacs.
|
||||
The codepage setting affects keyboard input and display in tty mode.
|
||||
If successful, the new CP is returned, otherwise nil. */)
|
||||
(cp)
|
||||
Lisp_Object cp;
|
||||
(Lisp_Object cp)
|
||||
{
|
||||
CHECK_NUMBER (cp);
|
||||
|
||||
|
@ -2180,8 +2171,7 @@ DEFUN ("w32-get-codepage-charset", Fw32_get_codepage_charset,
|
|||
Sw32_get_codepage_charset, 1, 1, 0,
|
||||
doc: /* Return charset of codepage CP.
|
||||
Returns nil if the codepage is not valid. */)
|
||||
(cp)
|
||||
Lisp_Object cp;
|
||||
(Lisp_Object cp)
|
||||
{
|
||||
CHARSETINFO info;
|
||||
|
||||
|
@ -2201,7 +2191,7 @@ DEFUN ("w32-get-valid-keyboard-layouts", Fw32_get_valid_keyboard_layouts,
|
|||
Sw32_get_valid_keyboard_layouts, 0, 0, 0,
|
||||
doc: /* Return list of Windows keyboard languages and layouts.
|
||||
The return value is a list of pairs of language id and layout id. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
int num_layouts = GetKeyboardLayoutList (0, NULL);
|
||||
HKL * layouts = (HKL *) alloca (num_layouts * sizeof (HKL));
|
||||
|
@ -2227,7 +2217,7 @@ DEFUN ("w32-get-keyboard-layout", Fw32_get_keyboard_layout,
|
|||
Sw32_get_keyboard_layout, 0, 0, 0,
|
||||
doc: /* Return current Windows keyboard language and layout.
|
||||
The return value is the cons of the language id and the layout id. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
DWORD kl = (DWORD) GetKeyboardLayout (dwWindowsThreadId);
|
||||
|
||||
|
@ -2241,8 +2231,7 @@ DEFUN ("w32-set-keyboard-layout", Fw32_set_keyboard_layout,
|
|||
doc: /* Make LAYOUT be the current keyboard layout for Emacs.
|
||||
The keyboard layout setting affects interpretation of keyboard input.
|
||||
If successful, the new layout id is returned, otherwise nil. */)
|
||||
(layout)
|
||||
Lisp_Object layout;
|
||||
(Lisp_Object layout)
|
||||
{
|
||||
DWORD kl;
|
||||
|
||||
|
|
|
@ -681,8 +681,7 @@ setup_windows_coding_system (Lisp_Object coding_system,
|
|||
DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data,
|
||||
Sw32_set_clipboard_data, 1, 2, 0,
|
||||
doc: /* This sets the clipboard data to the given text. */)
|
||||
(string, ignored)
|
||||
Lisp_Object string, ignored;
|
||||
(Lisp_Object string, Lisp_Object ignored)
|
||||
{
|
||||
BOOL ok = TRUE;
|
||||
int nbytes;
|
||||
|
@ -802,8 +801,7 @@ DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data,
|
|||
DEFUN ("w32-get-clipboard-data", Fw32_get_clipboard_data,
|
||||
Sw32_get_clipboard_data, 0, 1, 0,
|
||||
doc: /* This gets the clipboard data in text format. */)
|
||||
(ignored)
|
||||
Lisp_Object ignored;
|
||||
(Lisp_Object ignored)
|
||||
{
|
||||
HGLOBAL htext;
|
||||
Lisp_Object ret = Qnil;
|
||||
|
@ -1027,8 +1025,7 @@ the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.
|
|||
\(Those are literal upper-case symbol names, since that's what X expects.)
|
||||
For convenience, the symbol nil is the same as `PRIMARY',
|
||||
and t is the same as `SECONDARY'. */)
|
||||
(selection)
|
||||
Lisp_Object selection;
|
||||
(Lisp_Object selection)
|
||||
{
|
||||
CHECK_SYMBOL (selection);
|
||||
|
||||
|
|
231
src/window.c
231
src/window.c
|
@ -205,16 +205,14 @@ extern Lisp_Object Qtty;
|
|||
|
||||
DEFUN ("windowp", Fwindowp, Swindowp, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a window. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
return WINDOWP (object) ? Qt : Qnil;
|
||||
}
|
||||
|
||||
DEFUN ("window-live-p", Fwindow_live_p, Swindow_live_p, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a window which is currently visible. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
return WINDOW_LIVE_P (object) ? Qt : Qnil;
|
||||
}
|
||||
|
@ -274,7 +272,7 @@ make_window (void)
|
|||
|
||||
DEFUN ("selected-window", Fselected_window, Sselected_window, 0, 0, 0,
|
||||
doc: /* Return the window that the cursor now appears in and commands apply to. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return selected_window;
|
||||
}
|
||||
|
@ -283,8 +281,7 @@ DEFUN ("minibuffer-window", Fminibuffer_window, Sminibuffer_window, 0, 1, 0,
|
|||
doc: /* Return the window used now for minibuffers.
|
||||
If the optional argument FRAME is specified, return the minibuffer window
|
||||
used by that frame. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
if (NILP (frame))
|
||||
frame = selected_frame;
|
||||
|
@ -295,8 +292,7 @@ used by that frame. */)
|
|||
DEFUN ("window-minibuffer-p", Fwindow_minibuffer_p, Swindow_minibuffer_p, 0, 1, 0,
|
||||
doc: /* Return non-nil if WINDOW is a minibuffer window.
|
||||
WINDOW defaults to the selected window. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
struct window *w = decode_window (window);
|
||||
return MINI_WINDOW_P (w) ? Qt : Qnil;
|
||||
|
@ -320,8 +316,7 @@ of the window. The remaining elements are omitted if the character after
|
|||
POS is fully visible; otherwise, RTOP and RBOT are the number of pixels
|
||||
off-window at the top and bottom of the row, ROWH is the height of the
|
||||
display row, and VPOS is the row number (0-based) containing POS. */)
|
||||
(pos, window, partially)
|
||||
Lisp_Object pos, window, partially;
|
||||
(Lisp_Object pos, Lisp_Object window, Lisp_Object partially)
|
||||
{
|
||||
register struct window *w;
|
||||
register int posint;
|
||||
|
@ -389,8 +384,7 @@ of the (first) text line, YPOS is negative.
|
|||
|
||||
Return nil if window display is not up-to-date. In that case, use
|
||||
`pos-visible-in-window-p' to obtain the information. */)
|
||||
(line, window)
|
||||
Lisp_Object line, window;
|
||||
(Lisp_Object line, Lisp_Object window)
|
||||
{
|
||||
register struct window *w;
|
||||
register struct buffer *b;
|
||||
|
@ -505,8 +499,7 @@ decode_any_window (register Lisp_Object window)
|
|||
DEFUN ("window-buffer", Fwindow_buffer, Swindow_buffer, 0, 1, 0,
|
||||
doc: /* Return the buffer that WINDOW is displaying.
|
||||
WINDOW defaults to the selected window. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
return decode_window (window)->buffer;
|
||||
}
|
||||
|
@ -516,8 +509,7 @@ DEFUN ("window-height", Fwindow_height, Swindow_height, 0, 1, 0,
|
|||
WINDOW defaults to the selected window.
|
||||
|
||||
The return value includes WINDOW's mode line and header line, if any. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
return decode_any_window (window)->total_lines;
|
||||
}
|
||||
|
@ -529,8 +521,7 @@ WINDOW defaults to the selected window.
|
|||
Note: The return value is the number of columns available for text in
|
||||
WINDOW. If you want to find out how many columns WINDOW takes up, use
|
||||
(let ((edges (window-edges))) (- (nth 2 edges) (nth 0 edges))). */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
return make_number (window_box_text_cols (decode_any_window (window)));
|
||||
}
|
||||
|
@ -538,8 +529,7 @@ WINDOW. If you want to find out how many columns WINDOW takes up, use
|
|||
DEFUN ("window-full-width-p", Fwindow_full_width_p, Swindow_full_width_p, 0, 1, 0,
|
||||
doc: /* Return t if WINDOW is as wide as its frame.
|
||||
WINDOW defaults to the selected window. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
return WINDOW_FULL_WIDTH_P (decode_any_window (window)) ? Qt : Qnil;
|
||||
}
|
||||
|
@ -547,8 +537,7 @@ WINDOW defaults to the selected window. */)
|
|||
DEFUN ("window-hscroll", Fwindow_hscroll, Swindow_hscroll, 0, 1, 0,
|
||||
doc: /* Return the number of columns by which WINDOW is scrolled from left margin.
|
||||
WINDOW defaults to the selected window. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
return decode_window (window)->hscroll;
|
||||
}
|
||||
|
@ -559,8 +548,7 @@ Return NCOL. NCOL should be zero or positive.
|
|||
|
||||
Note that if `automatic-hscrolling' is non-nil, you cannot scroll the
|
||||
window so that the location of point moves off-window. */)
|
||||
(window, ncol)
|
||||
Lisp_Object window, ncol;
|
||||
(Lisp_Object window, Lisp_Object ncol)
|
||||
{
|
||||
struct window *w = decode_window (window);
|
||||
int hscroll;
|
||||
|
@ -581,8 +569,7 @@ DEFUN ("window-redisplay-end-trigger", Fwindow_redisplay_end_trigger,
|
|||
doc: /* Return WINDOW's redisplay end trigger value.
|
||||
WINDOW defaults to the selected window.
|
||||
See `set-window-redisplay-end-trigger' for more information. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
return decode_window (window)->redisplay_end_trigger;
|
||||
}
|
||||
|
@ -595,8 +582,7 @@ If it is a buffer position, then if redisplay in WINDOW reaches a position
|
|||
beyond VALUE, the functions in `redisplay-end-trigger-functions' are called
|
||||
with two arguments: WINDOW, and the end trigger value.
|
||||
Afterwards the end-trigger value is reset to nil. */)
|
||||
(window, value)
|
||||
register Lisp_Object window, value;
|
||||
(register Lisp_Object window, Lisp_Object value)
|
||||
{
|
||||
register struct window *w;
|
||||
|
||||
|
@ -616,8 +602,7 @@ BOTTOM is one more than the bottommost row occupied by WINDOW.
|
|||
The edges include the space used by WINDOW's scroll bar, display
|
||||
margins, fringes, header line, and/or mode line. For the edges of
|
||||
just the text area, use `window-inside-edges'. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
register struct window *w = decode_any_window (window);
|
||||
|
||||
|
@ -638,8 +623,7 @@ BOTTOM is one more than the bottommost y position occupied by WINDOW.
|
|||
The pixel edges include the space used by WINDOW's scroll bar, display
|
||||
margins, fringes, header line, and/or mode line. For the pixel edges
|
||||
of just the text area, use `window-inside-pixel-edges'. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
register struct window *w = decode_any_window (window);
|
||||
|
||||
|
@ -678,8 +662,7 @@ BOTTOM is one more than the bottommost y position occupied by WINDOW.
|
|||
The pixel edges include the space used by WINDOW's scroll bar, display
|
||||
margins, fringes, header line, and/or mode line. For the pixel edges
|
||||
of just the text area, use `window-inside-absolute-pixel-edges'. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
register struct window *w = decode_any_window (window);
|
||||
int add_x, add_y;
|
||||
|
@ -702,8 +685,7 @@ RIGHT is one more than the rightmost column of WINDOW's text area.
|
|||
BOTTOM is one more than the bottommost row of WINDOW's text area.
|
||||
The inside edges do not include the space used by the WINDOW's scroll
|
||||
bar, display margins, fringes, header line, and/or mode line. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
register struct window *w = decode_any_window (window);
|
||||
|
||||
|
@ -728,8 +710,7 @@ RIGHT is one more than the rightmost x position of WINDOW's text area.
|
|||
BOTTOM is one more than the bottommost y position of WINDOW's text area.
|
||||
The inside edges do not include the space used by WINDOW's scroll bar,
|
||||
display margins, fringes, header line, and/or mode line. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
register struct window *w = decode_any_window (window);
|
||||
|
||||
|
@ -756,8 +737,7 @@ RIGHT is one more than the rightmost x position of WINDOW's text area.
|
|||
BOTTOM is one more than the bottommost y position of WINDOW's text area.
|
||||
The inside edges do not include the space used by WINDOW's scroll bar,
|
||||
display margins, fringes, header line, and/or mode line. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
register struct window *w = decode_any_window (window);
|
||||
int add_x, add_y;
|
||||
|
@ -1002,8 +982,7 @@ If they are on the border between WINDOW and its right sibling,
|
|||
`vertical-line' is returned.
|
||||
If they are in the windows's left or right marginal areas, `left-margin'\n\
|
||||
or `right-margin' is returned. */)
|
||||
(coordinates, window)
|
||||
register Lisp_Object coordinates, window;
|
||||
(register Lisp_Object coordinates, Lisp_Object window)
|
||||
{
|
||||
struct window *w;
|
||||
struct frame *f;
|
||||
|
@ -1155,8 +1134,7 @@ DEFUN ("window-at", Fwindow_at, Swindow_at, 2, 3, 0,
|
|||
If omitted, FRAME defaults to the currently selected frame.
|
||||
The top left corner of the frame is considered to be row 0,
|
||||
column 0. */)
|
||||
(x, y, frame)
|
||||
Lisp_Object x, y, frame;
|
||||
(Lisp_Object x, Lisp_Object y, Lisp_Object frame)
|
||||
{
|
||||
struct frame *f;
|
||||
|
||||
|
@ -1189,8 +1167,7 @@ is also currently selected, the value returned is the same as (point).
|
|||
It would be more strictly correct to return the `top-level' value
|
||||
of point, outside of any save-excursion forms.
|
||||
But that is hard to define. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
register struct window *w = decode_window (window);
|
||||
|
||||
|
@ -1204,8 +1181,7 @@ DEFUN ("window-start", Fwindow_start, Swindow_start, 0, 1, 0,
|
|||
doc: /* Return position at which display currently starts in WINDOW.
|
||||
WINDOW defaults to the selected window.
|
||||
This is updated by redisplay or by calling `set-window-start'. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
return Fmarker_position (decode_window (window)->start);
|
||||
}
|
||||
|
@ -1231,8 +1207,7 @@ Return nil if there is no recorded value. \(This can happen if the
|
|||
last redisplay of WINDOW was preempted, and did not finish.)
|
||||
If UPDATE is non-nil, compute the up-to-date position
|
||||
if it isn't already recorded. */)
|
||||
(window, update)
|
||||
Lisp_Object window, update;
|
||||
(Lisp_Object window, Lisp_Object update)
|
||||
{
|
||||
Lisp_Object value;
|
||||
struct window *w = decode_window (window);
|
||||
|
@ -1300,8 +1275,7 @@ if it isn't already recorded. */)
|
|||
DEFUN ("set-window-point", Fset_window_point, Sset_window_point, 2, 2, 0,
|
||||
doc: /* Make point value in WINDOW be at position POS in WINDOW's buffer.
|
||||
Return POS. */)
|
||||
(window, pos)
|
||||
Lisp_Object window, pos;
|
||||
(Lisp_Object window, Lisp_Object pos)
|
||||
{
|
||||
register struct window *w = decode_window (window);
|
||||
|
||||
|
@ -1325,8 +1299,7 @@ DEFUN ("set-window-start", Fset_window_start, Sset_window_start, 2, 3, 0,
|
|||
WINDOW defaults to the selected window. Return POS.
|
||||
Optional third arg NOFORCE non-nil inhibits next redisplay from
|
||||
overriding motion of point in order to display at this exact start. */)
|
||||
(window, pos, noforce)
|
||||
Lisp_Object window, pos, noforce;
|
||||
(Lisp_Object window, Lisp_Object pos, Lisp_Object noforce)
|
||||
{
|
||||
register struct window *w = decode_window (window);
|
||||
|
||||
|
@ -1364,8 +1337,7 @@ from displaying another buffer in it. `get-lru-window' and
|
|||
Functions like `set-window-buffer' may change the buffer displayed by a
|
||||
window, unless that window is "strongly" dedicated to its buffer, that
|
||||
is the value returned by `window-dedicated-p' is t. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
return decode_window (window)->dedicated;
|
||||
}
|
||||
|
@ -1389,8 +1361,7 @@ its buffer. Functions like `set-window-buffer' may change the buffer
|
|||
displayed by a window, unless that window is strongly dedicated to its
|
||||
buffer. If and when `set-window-buffer' displays another buffer in a
|
||||
window, it also makes sure that the window is not marked as dedicated. */)
|
||||
(window, flag)
|
||||
Lisp_Object window, flag;
|
||||
(Lisp_Object window, Lisp_Object flag)
|
||||
{
|
||||
register struct window *w = decode_window (window);
|
||||
|
||||
|
@ -1404,8 +1375,7 @@ DEFUN ("window-parameters", Fwindow_parameters, Swindow_parameters,
|
|||
doc: /* Return the parameters of WINDOW and their values.
|
||||
WINDOW defaults to the selected window. The return value is a list of
|
||||
elements of the form (PARAMETER . VALUE). */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
return Fcopy_alist (decode_window (window)->window_parameters);
|
||||
}
|
||||
|
@ -1414,8 +1384,7 @@ DEFUN ("window-parameter", Fwindow_parameter, Swindow_parameter,
|
|||
2, 2, 0,
|
||||
doc: /* Return WINDOW's value for PARAMETER.
|
||||
WINDOW defaults to the selected window. */)
|
||||
(window, parameter)
|
||||
Lisp_Object window, parameter;
|
||||
(Lisp_Object window, Lisp_Object parameter)
|
||||
{
|
||||
Lisp_Object result;
|
||||
|
||||
|
@ -1427,8 +1396,7 @@ DEFUN ("set-window-parameter", Fset_window_parameter,
|
|||
Sset_window_parameter, 3, 3, 0,
|
||||
doc: /* Set WINDOW's value of PARAMETER to VALUE.
|
||||
WINDOW defaults to the selected window. Return VALUE. */)
|
||||
(window, parameter, value)
|
||||
Lisp_Object window, parameter, value;
|
||||
(Lisp_Object window, Lisp_Object parameter, Lisp_Object value)
|
||||
{
|
||||
register struct window *w = decode_window (window);
|
||||
Lisp_Object old_alist_elt;
|
||||
|
@ -1446,8 +1414,7 @@ DEFUN ("window-display-table", Fwindow_display_table, Swindow_display_table,
|
|||
0, 1, 0,
|
||||
doc: /* Return the display-table that WINDOW is using.
|
||||
WINDOW defaults to the selected window. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
return decode_window (window)->display_table;
|
||||
}
|
||||
|
@ -1479,8 +1446,7 @@ window_display_table (struct window *w)
|
|||
|
||||
DEFUN ("set-window-display-table", Fset_window_display_table, Sset_window_display_table, 2, 2, 0,
|
||||
doc: /* Set WINDOW's display-table to TABLE. */)
|
||||
(window, table)
|
||||
register Lisp_Object window, table;
|
||||
(register Lisp_Object window, Lisp_Object table)
|
||||
{
|
||||
register struct window *w;
|
||||
|
||||
|
@ -1596,8 +1562,7 @@ DEFUN ("delete-window", Fdelete_window, Sdelete_window, 0, 1, "",
|
|||
doc: /* Remove WINDOW from its frame.
|
||||
WINDOW defaults to the selected window. Return nil.
|
||||
Signal an error when WINDOW is the only window on its frame. */)
|
||||
(window)
|
||||
register Lisp_Object window;
|
||||
(register Lisp_Object window)
|
||||
{
|
||||
struct frame *f;
|
||||
if (NILP (window))
|
||||
|
@ -2094,8 +2059,7 @@ If you use consistent values for MINIBUF and ALL-FRAMES, you can use
|
|||
`next-window' to iterate through the entire cycle of acceptable
|
||||
windows, eventually ending up back at the window you started with.
|
||||
`previous-window' traverses the same cycle, in the reverse order. */)
|
||||
(window, minibuf, all_frames)
|
||||
Lisp_Object window, minibuf, all_frames;
|
||||
(Lisp_Object window, Lisp_Object minibuf, Lisp_Object all_frames)
|
||||
{
|
||||
return next_window (window, minibuf, all_frames, 1);
|
||||
}
|
||||
|
@ -2112,8 +2076,7 @@ use `previous-window' to iterate through the entire cycle of
|
|||
acceptable windows, eventually ending up back at the window you
|
||||
started with. `next-window' traverses the same cycle, in the
|
||||
reverse order. */)
|
||||
(window, minibuf, all_frames)
|
||||
Lisp_Object window, minibuf, all_frames;
|
||||
(Lisp_Object window, Lisp_Object minibuf, Lisp_Object all_frames)
|
||||
{
|
||||
return next_window (window, minibuf, all_frames, 0);
|
||||
}
|
||||
|
@ -2132,8 +2095,7 @@ This function uses `next-window' for finding the window to select.
|
|||
The argument ALL-FRAMES has the same meaning as in `next-window',
|
||||
but the MINIBUF argument of `next-window' is always effectively
|
||||
nil. */)
|
||||
(count, all_frames)
|
||||
Lisp_Object count, all_frames;
|
||||
(Lisp_Object count, Lisp_Object all_frames)
|
||||
{
|
||||
Lisp_Object window;
|
||||
int i;
|
||||
|
@ -2159,8 +2121,7 @@ MINIBUF t means include the minibuffer window, even if it isn't active.
|
|||
MINIBUF nil or omitted means include the minibuffer window only
|
||||
if it's active.
|
||||
MINIBUF neither nil nor t means never include the minibuffer window. */)
|
||||
(frame, minibuf, window)
|
||||
Lisp_Object frame, minibuf, window;
|
||||
(Lisp_Object frame, Lisp_Object minibuf, Lisp_Object window)
|
||||
{
|
||||
if (NILP (window))
|
||||
window = FRAMEP (frame) ? XFRAME (frame)->selected_window : selected_window;
|
||||
|
@ -2472,8 +2433,7 @@ If FRAME is 0, search all visible and iconified frames.
|
|||
If FRAME is t, search all frames.
|
||||
If FRAME is nil, search only the selected frame.
|
||||
If FRAME is a frame, search only that frame. */)
|
||||
(frame, dedicated)
|
||||
Lisp_Object frame, dedicated;
|
||||
(Lisp_Object frame, Lisp_Object dedicated)
|
||||
{
|
||||
register Lisp_Object w;
|
||||
/* First try for a window that is full-width */
|
||||
|
@ -2498,8 +2458,7 @@ If FRAME is 0, search all visible and iconified frames.
|
|||
If FRAME is t, search all frames.
|
||||
If FRAME is nil, search only the selected frame.
|
||||
If FRAME is a frame, search only that frame. */)
|
||||
(frame, dedicated)
|
||||
Lisp_Object frame, dedicated;
|
||||
(Lisp_Object frame, Lisp_Object dedicated)
|
||||
{
|
||||
return window_loop (GET_LARGEST_WINDOW, dedicated, 0,
|
||||
frame);
|
||||
|
@ -2514,8 +2473,7 @@ If optional argument FRAME is 0, search all visible and iconified frames.
|
|||
If FRAME is t, search all frames.
|
||||
If FRAME is nil, search only the selected frame.
|
||||
If FRAME is a frame, search only that frame. */)
|
||||
(buffer_or_name, frame)
|
||||
Lisp_Object buffer_or_name, frame;
|
||||
(Lisp_Object buffer_or_name, Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object buffer;
|
||||
|
||||
|
@ -2539,8 +2497,7 @@ previously visible in WINDOW in the same place on the frame. Doing this
|
|||
depends on the value of (window-start WINDOW), so if calling this
|
||||
function in a program gives strange scrolling, make sure the
|
||||
window-start value is reasonable when this function is called. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
struct window *w;
|
||||
int startpos;
|
||||
|
@ -2607,8 +2564,7 @@ If FRAME is t, search only the selected frame.
|
|||
If FRAME is a frame, search only that frame.
|
||||
When a window showing BUFFER-OR-NAME is dedicated and the only window of
|
||||
its frame, that frame is deleted when there are other frames left. */)
|
||||
(buffer_or_name, frame)
|
||||
Lisp_Object buffer_or_name, frame;
|
||||
(Lisp_Object buffer_or_name, Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object buffer;
|
||||
|
||||
|
@ -2643,8 +2599,7 @@ When a window showing BUFFER-OR-NAME is dedicated that window is
|
|||
deleted. If that window is the only window on its frame, that frame is
|
||||
deleted too when there are other frames left. If there are no other
|
||||
frames left, some other buffer is displayed in that window. */)
|
||||
(buffer_or_name)
|
||||
Lisp_Object buffer_or_name;
|
||||
(Lisp_Object buffer_or_name)
|
||||
{
|
||||
Lisp_Object buffer;
|
||||
|
||||
|
@ -3570,8 +3525,7 @@ already display BUFFER-OR-NAME.
|
|||
|
||||
This function runs `window-scroll-functions' before running
|
||||
`window-configuration-change-hook'. */)
|
||||
(window, buffer_or_name, keep_margins)
|
||||
register Lisp_Object window, buffer_or_name, keep_margins;
|
||||
(register Lisp_Object window, Lisp_Object buffer_or_name, Lisp_Object keep_margins)
|
||||
{
|
||||
register Lisp_Object tem, buffer;
|
||||
register struct window *w = decode_window (window);
|
||||
|
@ -3614,8 +3568,7 @@ make this window the most recently selected one.
|
|||
|
||||
Note that the main editor command loop selects the buffer of the
|
||||
selected window before each command. */)
|
||||
(window, norecord)
|
||||
register Lisp_Object window, norecord;
|
||||
(register Lisp_Object window, Lisp_Object norecord)
|
||||
{
|
||||
register struct window *w;
|
||||
register struct window *ow;
|
||||
|
@ -3715,8 +3668,7 @@ DEFUN ("force-window-update", Fforce_window_update, Sforce_window_update,
|
|||
If optional arg OBJECT is a window, force redisplay of that window only.
|
||||
If OBJECT is a buffer or buffer name, force redisplay of all windows
|
||||
displaying that buffer. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
if (NILP (object))
|
||||
{
|
||||
|
@ -3857,8 +3809,7 @@ The upper or leftmost window is the original one, and remains selected
|
|||
if it was selected before.
|
||||
|
||||
See Info node `(elisp)Splitting Windows' for more details and examples. */)
|
||||
(window, size, horizontal)
|
||||
Lisp_Object window, size, horizontal;
|
||||
(Lisp_Object window, Lisp_Object size, Lisp_Object horizontal)
|
||||
{
|
||||
register Lisp_Object new;
|
||||
register struct window *o, *p;
|
||||
|
@ -3997,8 +3948,7 @@ window wider by SIZE columns. If SIZE is negative, shrink the window by
|
|||
|
||||
This function can delete windows if they get too small. The size of
|
||||
fixed size windows is not altered by this function. */)
|
||||
(size, horizontal)
|
||||
Lisp_Object size, horizontal;
|
||||
(Lisp_Object size, Lisp_Object horizontal)
|
||||
{
|
||||
CHECK_NUMBER (size);
|
||||
enlarge_window (selected_window, XINT (size), !NILP (horizontal));
|
||||
|
@ -4017,8 +3967,7 @@ window by -SIZE lines or columns. Return nil.
|
|||
|
||||
This function can delete windows if they get too small. The size of
|
||||
fixed size windows is not altered by this function. */)
|
||||
(size, horizontal)
|
||||
Lisp_Object size, horizontal;
|
||||
(Lisp_Object size, Lisp_Object horizontal)
|
||||
{
|
||||
CHECK_NUMBER (size);
|
||||
enlarge_window (selected_window, -XINT (size), !NILP (horizontal));
|
||||
|
@ -4470,8 +4419,7 @@ Otherwise, adjust the height, moving the bottom edge.
|
|||
Following siblings of the selected window are resized to fulfill
|
||||
the size request. If they become too small in the process, they
|
||||
are not deleted; instead, we signal an error. */)
|
||||
(window, delta, horizontal)
|
||||
Lisp_Object window, delta, horizontal;
|
||||
(Lisp_Object window, Lisp_Object delta, Lisp_Object horizontal)
|
||||
{
|
||||
CHECK_NUMBER (delta);
|
||||
if (NILP (window))
|
||||
|
@ -5366,8 +5314,7 @@ A near full screen is `next-screen-context-lines' less than a full screen.
|
|||
Negative ARG means scroll downward.
|
||||
If ARG is the atom `-', scroll downward by nearly full screen.
|
||||
When calling from a program, supply as argument a number, nil, or `-'. */)
|
||||
(arg)
|
||||
Lisp_Object arg;
|
||||
(Lisp_Object arg)
|
||||
{
|
||||
scroll_command (arg, 1);
|
||||
return Qnil;
|
||||
|
@ -5380,8 +5327,7 @@ A near full screen is `next-screen-context-lines' less than a full screen.
|
|||
Negative ARG means scroll upward.
|
||||
If ARG is the atom `-', scroll upward by nearly full screen.
|
||||
When calling from a program, supply as argument a number, nil, or `-'. */)
|
||||
(arg)
|
||||
Lisp_Object arg;
|
||||
(Lisp_Object arg)
|
||||
{
|
||||
scroll_command (arg, -1);
|
||||
return Qnil;
|
||||
|
@ -5394,7 +5340,7 @@ showing that buffer is used.
|
|||
If in the minibuffer, `minibuffer-scroll-window' if non-nil
|
||||
specifies the window. This takes precedence over
|
||||
`other-window-scroll-buffer'. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object window;
|
||||
|
||||
|
@ -5444,8 +5390,7 @@ showing that buffer, popping the buffer up if necessary.
|
|||
If in the minibuffer, `minibuffer-scroll-window' if non-nil
|
||||
specifies the window to scroll. This takes precedence over
|
||||
`other-window-scroll-buffer'. */)
|
||||
(arg)
|
||||
Lisp_Object arg;
|
||||
(Lisp_Object arg)
|
||||
{
|
||||
Lisp_Object window;
|
||||
struct window *w;
|
||||
|
@ -5488,8 +5433,7 @@ If SET-MINIMUM is non-nil, the new scroll amount becomes the
|
|||
lower bound for automatic scrolling, i.e. automatic scrolling
|
||||
will not scroll a window to a column less than the value returned
|
||||
by this function. This happens in an interactive call. */)
|
||||
(arg, set_minimum)
|
||||
register Lisp_Object arg, set_minimum;
|
||||
(register Lisp_Object arg, Lisp_Object set_minimum)
|
||||
{
|
||||
Lisp_Object result;
|
||||
int hscroll;
|
||||
|
@ -5518,8 +5462,7 @@ If SET-MINIMUM is non-nil, the new scroll amount becomes the
|
|||
lower bound for automatic scrolling, i.e. automatic scrolling
|
||||
will not scroll a window to a column less than the value returned
|
||||
by this function. This happens in an interactive call. */)
|
||||
(arg, set_minimum)
|
||||
register Lisp_Object arg, set_minimum;
|
||||
(register Lisp_Object arg, Lisp_Object set_minimum)
|
||||
{
|
||||
Lisp_Object result;
|
||||
int hscroll;
|
||||
|
@ -5542,7 +5485,7 @@ by this function. This happens in an interactive call. */)
|
|||
DEFUN ("minibuffer-selected-window", Fminibuffer_selected_window, Sminibuffer_selected_window, 0, 0, 0,
|
||||
doc: /* Return the window which was selected when entering the minibuffer.
|
||||
Returns nil, if selected window is not a minibuffer window. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (minibuf_level > 0
|
||||
&& MINI_WINDOW_P (XWINDOW (selected_window))
|
||||
|
@ -5624,8 +5567,7 @@ then only tty frame are redrawn.
|
|||
|
||||
Just C-u as prefix means put point in the center of the window
|
||||
and redisplay normally--don't erase and redraw the frame. */)
|
||||
(arg)
|
||||
register Lisp_Object arg;
|
||||
(register Lisp_Object arg)
|
||||
{
|
||||
struct window *w = XWINDOW (selected_window);
|
||||
struct buffer *buf = XBUFFER (w->buffer);
|
||||
|
@ -5809,8 +5751,7 @@ WINDOW defaults to the selected window.
|
|||
|
||||
The return value does not include the mode line, any header line, nor
|
||||
any partial-height lines in the text display area. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
struct window *w = decode_window (window);
|
||||
int pixel_height = window_box_height (w);
|
||||
|
@ -5826,8 +5767,7 @@ DEFUN ("move-to-window-line", Fmove_to_window_line, Smove_to_window_line,
|
|||
With no argument, position point at center of window.
|
||||
An argument specifies vertical position within the window;
|
||||
zero means top of window, negative means relative to bottom of window. */)
|
||||
(arg)
|
||||
Lisp_Object arg;
|
||||
(Lisp_Object arg)
|
||||
{
|
||||
struct window *w = XWINDOW (selected_window);
|
||||
int lines, start;
|
||||
|
@ -5940,16 +5880,14 @@ struct saved_window
|
|||
|
||||
DEFUN ("window-configuration-p", Fwindow_configuration_p, Swindow_configuration_p, 1, 1, 0,
|
||||
doc: /* Return t if OBJECT is a window-configuration object. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
return WINDOW_CONFIGURATIONP (object) ? Qt : Qnil;
|
||||
}
|
||||
|
||||
DEFUN ("window-configuration-frame", Fwindow_configuration_frame, Swindow_configuration_frame, 1, 1, 0,
|
||||
doc: /* Return the frame that CONFIG, a window-configuration object, is about. */)
|
||||
(config)
|
||||
Lisp_Object config;
|
||||
(Lisp_Object config)
|
||||
{
|
||||
register struct save_window_data *data;
|
||||
struct Lisp_Vector *saved_windows;
|
||||
|
@ -5969,8 +5907,7 @@ by `current-window-configuration' (which see).
|
|||
If CONFIGURATION was made from a frame that is now deleted,
|
||||
only frame-independent values can be restored. In this case,
|
||||
the return value is nil. Otherwise the value is t. */)
|
||||
(configuration)
|
||||
Lisp_Object configuration;
|
||||
(Lisp_Object configuration)
|
||||
{
|
||||
register struct save_window_data *data;
|
||||
struct Lisp_Vector *saved_windows;
|
||||
|
@ -6476,8 +6413,7 @@ point and mark. An exception is made for point in the current buffer:
|
|||
its value is -not- saved.
|
||||
This also records the currently selected frame, and FRAME's focus
|
||||
redirection (see `redirect-frame-focus'). */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
register Lisp_Object tem;
|
||||
register int n_windows;
|
||||
|
@ -6525,8 +6461,7 @@ Also restore the choice of selected window.
|
|||
Also restore which buffer is current.
|
||||
Does not restore the value of point in current buffer.
|
||||
usage: (save-window-excursion BODY...) */)
|
||||
(args)
|
||||
Lisp_Object args;
|
||||
(Lisp_Object args)
|
||||
{
|
||||
register Lisp_Object val;
|
||||
register int count = SPECPDL_INDEX ();
|
||||
|
@ -6597,8 +6532,7 @@ EDGES is a list \(LEFT TOP RIGHT BOTTOM) as returned by `window-edges'.
|
|||
|
||||
If FRAME is nil or omitted, return information on the currently
|
||||
selected frame. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
FRAME_PTR f;
|
||||
|
||||
|
@ -6627,8 +6561,7 @@ Second arg LEFT-WIDTH specifies the number of character cells to
|
|||
reserve for the left marginal area. Optional third arg RIGHT-WIDTH
|
||||
does the same for the right marginal area. A nil width parameter
|
||||
means no margin. */)
|
||||
(window, left_width, right_width)
|
||||
Lisp_Object window, left_width, right_width;
|
||||
(Lisp_Object window, Lisp_Object left_width, Lisp_Object right_width)
|
||||
{
|
||||
struct window *w = decode_window (window);
|
||||
|
||||
|
@ -6672,8 +6605,7 @@ If WINDOW is omitted or nil, use the currently selected window.
|
|||
Value is a cons of the form (LEFT-WIDTH . RIGHT-WIDTH).
|
||||
If a marginal area does not exist, its width will be returned
|
||||
as nil. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
struct window *w = decode_window (window);
|
||||
return Fcons (w->left_margin_cols, w->right_margin_cols);
|
||||
|
@ -6698,8 +6630,7 @@ the command `set-fringe-style'.
|
|||
If optional fourth arg OUTSIDE-MARGINS is non-nil, draw the fringes
|
||||
outside of the display margins. By default, fringes are drawn between
|
||||
display marginal areas and the text area. */)
|
||||
(window, left_width, right_width, outside_margins)
|
||||
Lisp_Object window, left_width, right_width, outside_margins;
|
||||
(Lisp_Object window, Lisp_Object left_width, Lisp_Object right_width, Lisp_Object outside_margins)
|
||||
{
|
||||
struct window *w = decode_window (window);
|
||||
|
||||
|
@ -6736,8 +6667,7 @@ DEFUN ("window-fringes", Fwindow_fringes, Swindow_fringes,
|
|||
doc: /* Get width of fringes of window WINDOW.
|
||||
If WINDOW is omitted or nil, use the currently selected window.
|
||||
Value is a list of the form (LEFT-WIDTH RIGHT-WIDTH OUTSIDE-MARGINS). */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
struct window *w = decode_window (window);
|
||||
|
||||
|
@ -6764,8 +6694,7 @@ bar: left, right, or nil.
|
|||
If WIDTH is nil, use the frame's scroll-bar width.
|
||||
If VERTICAL-TYPE is t, use the frame's scroll-bar type.
|
||||
Fourth parameter HORIZONTAL-TYPE is currently unused. */)
|
||||
(window, width, vertical_type, horizontal_type)
|
||||
Lisp_Object window, width, vertical_type, horizontal_type;
|
||||
(Lisp_Object window, Lisp_Object width, Lisp_Object vertical_type, Lisp_Object horizontal_type)
|
||||
{
|
||||
struct window *w = decode_window (window);
|
||||
|
||||
|
@ -6809,8 +6738,7 @@ If WINDOW is omitted or nil, use the currently selected window.
|
|||
Value is a list of the form (WIDTH COLS VERTICAL-TYPE HORIZONTAL-TYPE).
|
||||
If WIDTH is nil or TYPE is t, the window is using the frame's corresponding
|
||||
value. */)
|
||||
(window)
|
||||
Lisp_Object window;
|
||||
(Lisp_Object window)
|
||||
{
|
||||
struct window *w = decode_window (window);
|
||||
return Fcons (make_number ((WINDOW_CONFIG_SCROLL_BAR_WIDTH (w)
|
||||
|
@ -6832,8 +6760,7 @@ DEFUN ("window-vscroll", Fwindow_vscroll, Swindow_vscroll, 0, 2, 0,
|
|||
Use the selected window if WINDOW is nil or omitted.
|
||||
Normally, value is a multiple of the canonical character height of WINDOW;
|
||||
optional second arg PIXELS-P means value is measured in pixels. */)
|
||||
(window, pixels_p)
|
||||
Lisp_Object window, pixels_p;
|
||||
(Lisp_Object window, Lisp_Object pixels_p)
|
||||
{
|
||||
Lisp_Object result;
|
||||
struct frame *f;
|
||||
|
@ -6866,8 +6793,7 @@ If PIXELS-P is nil, VSCROLL may have to be rounded so that it
|
|||
corresponds to an integral number of pixels. The return value is the
|
||||
result of this rounding.
|
||||
If PIXELS-P is non-nil, the return value is VSCROLL. */)
|
||||
(window, vscroll, pixels_p)
|
||||
Lisp_Object window, vscroll, pixels_p;
|
||||
(Lisp_Object window, Lisp_Object vscroll, Lisp_Object pixels_p)
|
||||
{
|
||||
struct window *w;
|
||||
struct frame *f;
|
||||
|
@ -7101,8 +7027,7 @@ DEFUN ("compare-window-configurations", Fcompare_window_configurations,
|
|||
doc: /* Compare two window configurations as regards the structure of windows.
|
||||
This function ignores details such as the values of point and mark
|
||||
and scrolling positions. */)
|
||||
(x, y)
|
||||
Lisp_Object x, y;
|
||||
(Lisp_Object x, Lisp_Object y)
|
||||
{
|
||||
if (compare_window_configurations (x, y, 1))
|
||||
return Qt;
|
||||
|
|
34
src/xdisp.c
34
src/xdisp.c
|
@ -10524,8 +10524,7 @@ tool_bar_lines_needed (struct frame *f, int *n_rows)
|
|||
DEFUN ("tool-bar-lines-needed", Ftool_bar_lines_needed, Stool_bar_lines_needed,
|
||||
0, 1, 0,
|
||||
doc: /* Return the number of lines occupied by the tool bar of FRAME. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
struct frame *f;
|
||||
struct window *w;
|
||||
|
@ -16370,8 +16369,7 @@ DEFUN ("dump-glyph-matrix", Fdump_glyph_matrix,
|
|||
Shows contents of glyph row structures. With non-nil
|
||||
parameter GLYPHS, dump glyphs as well. If GLYPHS is 1 show
|
||||
glyphs in short form, otherwise show glyphs in long form. */)
|
||||
(glyphs)
|
||||
Lisp_Object glyphs;
|
||||
(Lisp_Object glyphs)
|
||||
{
|
||||
struct window *w = XWINDOW (selected_window);
|
||||
struct buffer *buffer = XBUFFER (w->buffer);
|
||||
|
@ -16389,7 +16387,7 @@ glyphs in short form, otherwise show glyphs in long form. */)
|
|||
|
||||
DEFUN ("dump-frame-glyph-matrix", Fdump_frame_glyph_matrix,
|
||||
Sdump_frame_glyph_matrix, 0, 0, "", doc: /* */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
struct frame *f = XFRAME (selected_frame);
|
||||
dump_glyph_matrix (f->current_matrix, 1);
|
||||
|
@ -16402,8 +16400,7 @@ DEFUN ("dump-glyph-row", Fdump_glyph_row, Sdump_glyph_row, 1, 2, "",
|
|||
GLYPH 0 means don't dump glyphs.
|
||||
GLYPH 1 means dump glyphs in short form.
|
||||
GLYPH > 1 or omitted means dump glyphs in long form. */)
|
||||
(row, glyphs)
|
||||
Lisp_Object row, glyphs;
|
||||
(Lisp_Object row, Lisp_Object glyphs)
|
||||
{
|
||||
struct glyph_matrix *matrix;
|
||||
int vpos;
|
||||
|
@ -16424,8 +16421,7 @@ DEFUN ("dump-tool-bar-row", Fdump_tool_bar_row, Sdump_tool_bar_row, 1, 2, "",
|
|||
GLYPH 0 means don't dump glyphs.
|
||||
GLYPH 1 means dump glyphs in short form.
|
||||
GLYPH > 1 or omitted means dump glyphs in long form. */)
|
||||
(row, glyphs)
|
||||
Lisp_Object row, glyphs;
|
||||
(Lisp_Object row, Lisp_Object glyphs)
|
||||
{
|
||||
struct frame *sf = SELECTED_FRAME ();
|
||||
struct glyph_matrix *m = XWINDOW (sf->tool_bar_window)->current_matrix;
|
||||
|
@ -16443,8 +16439,7 @@ GLYPH > 1 or omitted means dump glyphs in long form. */)
|
|||
DEFUN ("trace-redisplay", Ftrace_redisplay, Strace_redisplay, 0, 1, "P",
|
||||
doc: /* Toggle tracing of redisplay.
|
||||
With ARG, turn tracing on if and only if ARG is positive. */)
|
||||
(arg)
|
||||
Lisp_Object arg;
|
||||
(Lisp_Object arg)
|
||||
{
|
||||
if (NILP (arg))
|
||||
trace_redisplay_p = !trace_redisplay_p;
|
||||
|
@ -16461,9 +16456,7 @@ With ARG, turn tracing on if and only if ARG is positive. */)
|
|||
DEFUN ("trace-to-stderr", Ftrace_to_stderr, Strace_to_stderr, 1, MANY, "",
|
||||
doc: /* Like `format', but print result to stderr.
|
||||
usage: (trace-to-stderr STRING &rest OBJECTS) */)
|
||||
(nargs, args)
|
||||
int nargs;
|
||||
Lisp_Object *args;
|
||||
(int nargs, Lisp_Object *args)
|
||||
{
|
||||
Lisp_Object s = Fformat (nargs, args);
|
||||
fprintf (stderr, "%s", SDATA (s));
|
||||
|
@ -17982,8 +17975,7 @@ and the reading direction is generally left to right. In right-to-left
|
|||
paragraphs, text begins at the right margin and is read from right to left.
|
||||
|
||||
See also `bidi-paragraph-direction'. */)
|
||||
(buffer)
|
||||
Lisp_Object buffer;
|
||||
(Lisp_Object buffer)
|
||||
{
|
||||
struct buffer *buf;
|
||||
struct buffer *old;
|
||||
|
@ -18947,8 +18939,7 @@ If FACE is an integer, the value string has no text properties.
|
|||
Optional third and fourth args WINDOW and BUFFER specify the window
|
||||
and buffer to use as the context for the formatting (defaults
|
||||
are the selected window and the window's buffer). */)
|
||||
(format, face, window, buffer)
|
||||
Lisp_Object format, face, window, buffer;
|
||||
(Lisp_Object format, Lisp_Object face, Lisp_Object window, Lisp_Object buffer)
|
||||
{
|
||||
struct it it;
|
||||
int len;
|
||||
|
@ -20068,8 +20059,7 @@ is checked; or it can be some other value, which is then presumed to be the
|
|||
value of the `invisible' property of the text of interest.
|
||||
The non-nil value returned can be t for truly invisible text or something
|
||||
else if the text is replaced by an ellipsis. */)
|
||||
(pos_or_prop)
|
||||
Lisp_Object pos_or_prop;
|
||||
(Lisp_Object pos_or_prop)
|
||||
{
|
||||
Lisp_Object prop
|
||||
= (NATNUMP (pos_or_prop) || MARKERP (pos_or_prop)
|
||||
|
@ -24230,9 +24220,7 @@ and the radius of the circle; r may be a float or integer.
|
|||
A polygon is a cons (poly . [x0 y0 x1 y1 ...]) where each pair in the
|
||||
vector describes one corner in the polygon.
|
||||
Returns the alist element for the first matching AREA in MAP. */)
|
||||
(map, x, y)
|
||||
Lisp_Object map;
|
||||
Lisp_Object x, y;
|
||||
(Lisp_Object map, Lisp_Object x, Lisp_Object y)
|
||||
{
|
||||
if (NILP (map))
|
||||
return Qnil;
|
||||
|
|
94
src/xfaces.c
94
src/xfaces.c
|
@ -626,7 +626,7 @@ unregister_colors (pixels, n)
|
|||
|
||||
DEFUN ("dump-colors", Fdump_colors, Sdump_colors, 0, 0, 0,
|
||||
doc: /* Dump currently allocated colors to stderr. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
int i, n;
|
||||
|
||||
|
@ -951,8 +951,7 @@ clear_face_cache (int clear_fonts_p)
|
|||
DEFUN ("clear-face-cache", Fclear_face_cache, Sclear_face_cache, 0, 1, 0,
|
||||
doc: /* Clear face caches on all frames.
|
||||
Optional THOROUGHLY non-nil means try to free unused fonts, too. */)
|
||||
(thoroughly)
|
||||
Lisp_Object thoroughly;
|
||||
(Lisp_Object thoroughly)
|
||||
{
|
||||
clear_face_cache (!NILP (thoroughly));
|
||||
++face_change_count;
|
||||
|
@ -974,8 +973,7 @@ A bitmap specification is either a string, a file name, or a list
|
|||
HEIGHT is its height, and DATA is a string containing the bits of
|
||||
the pixmap. Bits are stored row by row, each row occupies
|
||||
\(WIDTH + 7)/8 bytes. */)
|
||||
(object)
|
||||
Lisp_Object object;
|
||||
(Lisp_Object object)
|
||||
{
|
||||
int pixmap_p = 0;
|
||||
|
||||
|
@ -1327,8 +1325,7 @@ DEFUN ("color-gray-p", Fcolor_gray_p, Scolor_gray_p, 1, 2, 0,
|
|||
doc: /* Return non-nil if COLOR is a shade of gray (or white or black).
|
||||
FRAME specifies the frame and thus the display for interpreting COLOR.
|
||||
If FRAME is nil or omitted, use the selected frame. */)
|
||||
(color, frame)
|
||||
Lisp_Object color, frame;
|
||||
(Lisp_Object color, Lisp_Object frame)
|
||||
{
|
||||
struct frame *f;
|
||||
|
||||
|
@ -1349,8 +1346,7 @@ BACKGROUND-P non-nil means COLOR is used as a background.
|
|||
Otherwise, this function tells whether it can be used as a foreground.
|
||||
If FRAME is nil or omitted, use the selected frame.
|
||||
COLOR must be a valid color name. */)
|
||||
(color, frame, background_p)
|
||||
Lisp_Object frame, color, background_p;
|
||||
(Lisp_Object color, Lisp_Object frame, Lisp_Object background_p)
|
||||
{
|
||||
struct frame *f;
|
||||
|
||||
|
@ -1687,8 +1683,7 @@ FULL is the full name of the font, and REGISTRY-AND-ENCODING is a string
|
|||
giving the registry and encoding of the font.
|
||||
The result list is sorted according to the current setting of
|
||||
the face font sort order. */)
|
||||
(family, frame)
|
||||
Lisp_Object family, frame;
|
||||
(Lisp_Object family, Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object font_spec, list, *drivers, vec;
|
||||
int i, nfonts, ndrivers;
|
||||
|
@ -1785,8 +1780,7 @@ fonts to match. The first MAXIMUM fonts are reported.
|
|||
The optional fifth argument WIDTH, if specified, is a number of columns
|
||||
occupied by a character of a font. In that case, return only fonts
|
||||
the WIDTH times as wide as FACE on FRAME. */)
|
||||
(pattern, face, frame, maximum, width)
|
||||
Lisp_Object pattern, face, frame, maximum, width;
|
||||
(Lisp_Object pattern, Lisp_Object face, Lisp_Object frame, Lisp_Object maximum, Lisp_Object width)
|
||||
{
|
||||
struct frame *f;
|
||||
int size, avgwidth;
|
||||
|
@ -2717,8 +2711,7 @@ If FACE was not known as a face before, create a new one.
|
|||
If optional argument FRAME is specified, make a frame-local face
|
||||
for that frame. Otherwise operate on the global face definition.
|
||||
Value is a vector of face attributes. */)
|
||||
(face, frame)
|
||||
Lisp_Object face, frame;
|
||||
(Lisp_Object face, Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object global_lface, lface;
|
||||
struct frame *f;
|
||||
|
@ -2806,8 +2799,7 @@ FACE should be a symbol or string.
|
|||
If optional second argument FRAME is non-nil, check for the
|
||||
existence of a frame-local face with name FACE on that frame.
|
||||
Otherwise check for the existence of a global face. */)
|
||||
(face, frame)
|
||||
Lisp_Object face, frame;
|
||||
(Lisp_Object face, Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object lface;
|
||||
|
||||
|
@ -2835,8 +2827,7 @@ definition of TO on NEW-FRAME. If NEW-FRAME is nil,
|
|||
FRAME controls where the data is copied to.
|
||||
|
||||
The value is TO. */)
|
||||
(from, to, frame, new_frame)
|
||||
Lisp_Object from, to, frame, new_frame;
|
||||
(Lisp_Object from, Lisp_Object to, Lisp_Object frame, Lisp_Object new_frame)
|
||||
{
|
||||
Lisp_Object lface, copy;
|
||||
|
||||
|
@ -2887,8 +2878,7 @@ FRAME nil means change the face of the selected frame.
|
|||
FRAME t means change the default for new frames.
|
||||
FRAME 0 means change the face on all frames, and change the default
|
||||
for new frames. */)
|
||||
(face, attr, value, frame)
|
||||
Lisp_Object face, attr, value, frame;
|
||||
(Lisp_Object face, Lisp_Object attr, Lisp_Object value, Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object lface;
|
||||
Lisp_Object old_value = Qnil;
|
||||
|
@ -3514,8 +3504,7 @@ set_font_frame_param (Lisp_Object frame, Lisp_Object lface)
|
|||
|
||||
DEFUN ("internal-face-x-get-resource", Finternal_face_x_get_resource,
|
||||
Sinternal_face_x_get_resource, 3, 3, 0, doc: /* */)
|
||||
(resource, class, frame)
|
||||
Lisp_Object resource, class, frame;
|
||||
(Lisp_Object resource, Lisp_Object class, Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object value = Qnil;
|
||||
CHECK_STRING (resource);
|
||||
|
@ -3560,8 +3549,7 @@ DEFUN ("internal-set-lisp-face-attribute-from-resource",
|
|||
Finternal_set_lisp_face_attribute_from_resource,
|
||||
Sinternal_set_lisp_face_attribute_from_resource,
|
||||
3, 4, 0, doc: /* */)
|
||||
(face, attr, value, frame)
|
||||
Lisp_Object face, attr, value, frame;
|
||||
(Lisp_Object face, Lisp_Object attr, Lisp_Object value, Lisp_Object frame)
|
||||
{
|
||||
CHECK_SYMBOL (face);
|
||||
CHECK_SYMBOL (attr);
|
||||
|
@ -3722,8 +3710,7 @@ A relative value is one that doesn't entirely override whatever is
|
|||
inherited from another face. For most possible attributes,
|
||||
the only relative value that users see is `unspecified'.
|
||||
However, for :height, floating point values are also relative. */)
|
||||
(attribute, value)
|
||||
Lisp_Object attribute, value;
|
||||
(Lisp_Object attribute, Lisp_Object value)
|
||||
{
|
||||
if (EQ (value, Qunspecified) || (EQ (value, Qignore_defface)))
|
||||
return Qt;
|
||||
|
@ -3738,8 +3725,7 @@ DEFUN ("merge-face-attribute", Fmerge_face_attribute, Smerge_face_attribute,
|
|||
doc: /* Return face ATTRIBUTE VALUE1 merged with VALUE2.
|
||||
If VALUE1 or VALUE2 are absolute (see `face-attribute-relative-p'), then
|
||||
the result will be absolute, otherwise it will be relative. */)
|
||||
(attribute, value1, value2)
|
||||
Lisp_Object attribute, value1, value2;
|
||||
(Lisp_Object attribute, Lisp_Object value1, Lisp_Object value2)
|
||||
{
|
||||
if (EQ (value1, Qunspecified) || EQ (value1, Qignore_defface))
|
||||
return value2;
|
||||
|
@ -3759,8 +3745,7 @@ face attribute name, signal an error.
|
|||
If the optional argument FRAME is given, report on face SYMBOL in that
|
||||
frame. If FRAME is t, report on the defaults for face SYMBOL (for new
|
||||
frames). If FRAME is omitted or nil, use the selected frame. */)
|
||||
(symbol, keyword, frame)
|
||||
Lisp_Object symbol, keyword, frame;
|
||||
(Lisp_Object symbol, Lisp_Object keyword, Lisp_Object frame)
|
||||
{
|
||||
Lisp_Object lface, value = Qnil;
|
||||
|
||||
|
@ -3827,8 +3812,7 @@ DEFUN ("internal-lisp-face-attribute-values",
|
|||
Sinternal_lisp_face_attribute_values, 1, 1, 0,
|
||||
doc: /* Return a list of valid discrete values for face attribute ATTR.
|
||||
Value is nil if ATTR doesn't have a discrete set of valid values. */)
|
||||
(attr)
|
||||
Lisp_Object attr;
|
||||
(Lisp_Object attr)
|
||||
{
|
||||
Lisp_Object result = Qnil;
|
||||
|
||||
|
@ -3851,8 +3835,7 @@ DEFUN ("internal-merge-in-global-face", Finternal_merge_in_global_face,
|
|||
Sinternal_merge_in_global_face, 2, 2, 0,
|
||||
doc: /* Add attributes from frame-default definition of FACE to FACE on FRAME.
|
||||
Default face attributes override any local face attributes. */)
|
||||
(face, frame)
|
||||
Lisp_Object face, frame;
|
||||
(Lisp_Object face, Lisp_Object frame)
|
||||
{
|
||||
int i;
|
||||
Lisp_Object global_lface, local_lface, *gvec, *lvec;
|
||||
|
@ -3930,8 +3913,7 @@ If FRAME is t, report on the defaults for face FACE (for new frames).
|
|||
If FRAME is omitted or nil, use the selected frame. And, in this case,
|
||||
if the optional third argument CHARACTER is given,
|
||||
return the font name used for CHARACTER. */)
|
||||
(face, frame, character)
|
||||
Lisp_Object face, frame, character;
|
||||
(Lisp_Object face, Lisp_Object frame, Lisp_Object character)
|
||||
{
|
||||
if (EQ (frame, Qt))
|
||||
{
|
||||
|
@ -4031,8 +4013,7 @@ DEFUN ("internal-lisp-face-equal-p", Finternal_lisp_face_equal_p,
|
|||
If the optional argument FRAME is given, report on FACE1 and FACE2 in that frame.
|
||||
If FRAME is t, report on the defaults for FACE1 and FACE2 (for new frames).
|
||||
If FRAME is omitted or nil, use the selected frame. */)
|
||||
(face1, face2, frame)
|
||||
Lisp_Object face1, face2, frame;
|
||||
(Lisp_Object face1, Lisp_Object face2, Lisp_Object frame)
|
||||
{
|
||||
int equal_p;
|
||||
struct frame *f;
|
||||
|
@ -4061,8 +4042,7 @@ DEFUN ("internal-lisp-face-empty-p", Finternal_lisp_face_empty_p,
|
|||
If the optional argument FRAME is given, report on face FACE in that frame.
|
||||
If FRAME is t, report on the defaults for face FACE (for new frames).
|
||||
If FRAME is omitted or nil, use the selected frame. */)
|
||||
(face, frame)
|
||||
Lisp_Object face, frame;
|
||||
(Lisp_Object face, Lisp_Object frame)
|
||||
{
|
||||
struct frame *f;
|
||||
Lisp_Object lface;
|
||||
|
@ -4090,8 +4070,7 @@ DEFUN ("frame-face-alist", Fframe_face_alist, Sframe_face_alist,
|
|||
0, 1, 0,
|
||||
doc: /* Return an alist of frame-local faces defined on FRAME.
|
||||
For internal use only. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
struct frame *f = frame_or_selected_frame (frame, 0);
|
||||
return f->face_alist;
|
||||
|
@ -4281,8 +4260,7 @@ DEFUN ("color-distance", Fcolor_distance, Scolor_distance, 2, 3, 0,
|
|||
COLOR1 and COLOR2 may be either strings containing the color name,
|
||||
or lists of the form (RED GREEN BLUE).
|
||||
If FRAME is unspecified or nil, the current frame is used. */)
|
||||
(color1, color2, frame)
|
||||
Lisp_Object color1, color2, frame;
|
||||
(Lisp_Object color1, Lisp_Object color2, Lisp_Object frame)
|
||||
{
|
||||
struct frame *f;
|
||||
XColor cdef1, cdef2;
|
||||
|
@ -4870,8 +4848,7 @@ lookup_derived_face (struct frame *f, Lisp_Object symbol, int face_id, int signa
|
|||
DEFUN ("face-attributes-as-vector", Fface_attributes_as_vector,
|
||||
Sface_attributes_as_vector, 1, 1, 0,
|
||||
doc: /* Return a vector of face attributes corresponding to PLIST. */)
|
||||
(plist)
|
||||
Lisp_Object plist;
|
||||
(Lisp_Object plist)
|
||||
{
|
||||
Lisp_Object lface;
|
||||
lface = Fmake_vector (make_number (LFACE_VECTOR_SIZE),
|
||||
|
@ -5188,8 +5165,7 @@ any display that can display bold, and a `:foreground \"yellow\"' as long
|
|||
as it can display a yellowish color, but `:slant italic' will _not_ be
|
||||
satisfied by the tty display code's automatic substitution of a `dim'
|
||||
face for italic. */)
|
||||
(attributes, display)
|
||||
Lisp_Object attributes, display;
|
||||
(Lisp_Object attributes, Lisp_Object display)
|
||||
{
|
||||
int supports = 0, i;
|
||||
Lisp_Object frame;
|
||||
|
@ -5266,8 +5242,7 @@ first in ORDER are matched first, e.g. if `:height' appears before
|
|||
`:weight' in ORDER, font selection first tries to find a font with
|
||||
a suitable height, and then tries to match the font weight.
|
||||
Value is ORDER. */)
|
||||
(order)
|
||||
Lisp_Object order;
|
||||
(Lisp_Object order)
|
||||
{
|
||||
Lisp_Object list;
|
||||
int i;
|
||||
|
@ -5325,8 +5300,7 @@ DEFUN ("internal-set-alternative-font-family-alist",
|
|||
ALIST is an alist of (FAMILY ALTERNATIVE1 ALTERNATIVE2 ...) entries.
|
||||
Each ALTERNATIVE is tried in order if no fonts of font family FAMILY can
|
||||
be found. Value is ALIST. */)
|
||||
(alist)
|
||||
Lisp_Object alist;
|
||||
(Lisp_Object alist)
|
||||
{
|
||||
Lisp_Object entry, tail, tail2;
|
||||
|
||||
|
@ -5355,8 +5329,7 @@ DEFUN ("internal-set-alternative-font-registry-alist",
|
|||
ALIST is an alist of (REGISTRY ALTERNATIVE1 ALTERNATIVE2 ...) entries.
|
||||
Each ALTERNATIVE is tried in order if no fonts of font registry REGISTRY can
|
||||
be found. Value is ALIST. */)
|
||||
(alist)
|
||||
Lisp_Object alist;
|
||||
(Lisp_Object alist)
|
||||
{
|
||||
Lisp_Object entry, tail, tail2;
|
||||
|
||||
|
@ -6040,8 +6013,7 @@ This affects bold faces on TTYs whose foreground is the default background
|
|||
color of the display and whose background is the default foreground color.
|
||||
For such faces, the bold face attribute is ignored if this variable
|
||||
is non-nil. */)
|
||||
(suppress)
|
||||
Lisp_Object suppress;
|
||||
(Lisp_Object suppress)
|
||||
{
|
||||
tty_suppress_bold_inverse_default_colors_p = !NILP (suppress);
|
||||
++face_change_count;
|
||||
|
@ -6446,8 +6418,7 @@ DEFUN ("x-load-color-file", Fx_load_color_file,
|
|||
The file should define one named RGB color per line like so:
|
||||
R G B name
|
||||
where R,G,B are numbers between 0 and 255 and name is an arbitrary string. */)
|
||||
(filename)
|
||||
Lisp_Object filename;
|
||||
(Lisp_Object filename)
|
||||
{
|
||||
FILE *fp;
|
||||
Lisp_Object cmap = Qnil;
|
||||
|
@ -6529,8 +6500,7 @@ dump_realized_face (face)
|
|||
|
||||
|
||||
DEFUN ("dump-face", Fdump_face, Sdump_face, 0, 1, 0, doc: /* */)
|
||||
(n)
|
||||
Lisp_Object n;
|
||||
(Lisp_Object n)
|
||||
{
|
||||
if (NILP (n))
|
||||
{
|
||||
|
@ -6564,7 +6534,7 @@ DEFUN ("dump-face", Fdump_face, Sdump_face, 0, 1, 0, doc: /* */)
|
|||
|
||||
DEFUN ("show-face-resources", Fshow_face_resources, Sshow_face_resources,
|
||||
0, 0, 0, doc: /* */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
fprintf (stderr, "number of colors = %d\n", ncolors_allocated);
|
||||
fprintf (stderr, "number of pixmaps = %d\n", npixmaps_allocated);
|
||||
|
|
99
src/xfns.c
99
src/xfns.c
|
@ -3060,8 +3060,7 @@ DEFUN ("x-wm-set-size-hint", Fx_wm_set_size_hint, Sx_wm_set_size_hint,
|
|||
0, 1, 0,
|
||||
doc: /* Send the size hints for frame FRAME to the window manager.
|
||||
If FRAME is nil, use the selected frame. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
struct frame *f;
|
||||
if (NILP (frame))
|
||||
|
@ -3116,8 +3115,7 @@ then `default-minibuffer-frame' must be a frame whose minibuffer can
|
|||
be shared by the new frame.
|
||||
|
||||
This function is an internal primitive--use `make-frame' instead. */)
|
||||
(parms)
|
||||
Lisp_Object parms;
|
||||
(Lisp_Object parms)
|
||||
{
|
||||
struct frame *f;
|
||||
Lisp_Object frame, tem;
|
||||
|
@ -3561,8 +3559,7 @@ x_get_focus_frame (struct frame *frame)
|
|||
DEFUN ("x-focus-frame", Fx_focus_frame, Sx_focus_frame, 1, 1, 0,
|
||||
doc: /* Set the input focus to FRAME.
|
||||
FRAME nil means use the selected frame. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
struct frame *f = check_x_frame (frame);
|
||||
Display *dpy = FRAME_X_DISPLAY (f);
|
||||
|
@ -3581,8 +3578,7 @@ FRAME nil means use the selected frame. */)
|
|||
|
||||
DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0,
|
||||
doc: /* Internal function called by `color-defined-p', which see. */)
|
||||
(color, frame)
|
||||
Lisp_Object color, frame;
|
||||
(Lisp_Object color, Lisp_Object frame)
|
||||
{
|
||||
XColor foo;
|
||||
FRAME_PTR f = check_x_frame (frame);
|
||||
|
@ -3597,8 +3593,7 @@ DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0,
|
|||
|
||||
DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0,
|
||||
doc: /* Internal function called by `color-values', which see. */)
|
||||
(color, frame)
|
||||
Lisp_Object color, frame;
|
||||
(Lisp_Object color, Lisp_Object frame)
|
||||
{
|
||||
XColor foo;
|
||||
FRAME_PTR f = check_x_frame (frame);
|
||||
|
@ -3615,8 +3610,7 @@ DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0,
|
|||
|
||||
DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0,
|
||||
doc: /* Internal function called by `display-color-p', which see. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct x_display_info *dpyinfo = check_x_display_info (terminal);
|
||||
|
||||
|
@ -3643,8 +3637,7 @@ Note that color displays do support shades of gray.
|
|||
The optional argument TERMINAL specifies which display to ask about.
|
||||
TERMINAL should be a terminal object, a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct x_display_info *dpyinfo = check_x_display_info (terminal);
|
||||
|
||||
|
@ -3672,8 +3665,7 @@ DEFUN ("x-display-pixel-width", Fx_display_pixel_width, Sx_display_pixel_width,
|
|||
The optional argument TERMINAL specifies which display to ask about.
|
||||
TERMINAL should be a terminal object, a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct x_display_info *dpyinfo = check_x_display_info (terminal);
|
||||
|
||||
|
@ -3686,8 +3678,7 @@ DEFUN ("x-display-pixel-height", Fx_display_pixel_height,
|
|||
The optional argument TERMINAL specifies which display to ask about.
|
||||
TERMINAL should be a terminal object, a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct x_display_info *dpyinfo = check_x_display_info (terminal);
|
||||
|
||||
|
@ -3700,8 +3691,7 @@ DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes,
|
|||
The optional argument TERMINAL specifies which display to ask about.
|
||||
TERMINAL should be a terminal object, a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct x_display_info *dpyinfo = check_x_display_info (terminal);
|
||||
|
||||
|
@ -3714,8 +3704,7 @@ DEFUN ("x-display-color-cells", Fx_display_color_cells, Sx_display_color_cells,
|
|||
The optional argument TERMINAL specifies which display to ask about.
|
||||
TERMINAL should be a terminal object, a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct x_display_info *dpyinfo = check_x_display_info (terminal);
|
||||
|
||||
|
@ -3739,8 +3728,7 @@ DEFUN ("x-server-max-request-size", Fx_server_max_request_size,
|
|||
The optional argument TERMINAL specifies which display to ask about.
|
||||
TERMINAL should be a terminal object, a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct x_display_info *dpyinfo = check_x_display_info (terminal);
|
||||
|
||||
|
@ -3754,8 +3742,7 @@ that operating systems cannot be developed and distributed noncommercially.)
|
|||
The optional argument TERMINAL specifies which display to ask about.
|
||||
TERMINAL should be a terminal object, a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct x_display_info *dpyinfo = check_x_display_info (terminal);
|
||||
char *vendor = ServerVendor (dpyinfo->display);
|
||||
|
@ -3773,8 +3760,7 @@ number. See also the function `x-server-vendor'.
|
|||
The optional argument TERMINAL specifies which display to ask about.
|
||||
TERMINAL should be a terminal object, a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct x_display_info *dpyinfo = check_x_display_info (terminal);
|
||||
Display *dpy = dpyinfo->display;
|
||||
|
@ -3789,8 +3775,7 @@ DEFUN ("x-display-screens", Fx_display_screens, Sx_display_screens, 0, 1, 0,
|
|||
The optional argument TERMINAL specifies which display to ask about.
|
||||
TERMINAL should be a terminal object, a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct x_display_info *dpyinfo = check_x_display_info (terminal);
|
||||
|
||||
|
@ -3802,8 +3787,7 @@ DEFUN ("x-display-mm-height", Fx_display_mm_height, Sx_display_mm_height, 0, 1,
|
|||
The optional argument TERMINAL specifies which display to ask about.
|
||||
TERMINAL should be a terminal object, a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct x_display_info *dpyinfo = check_x_display_info (terminal);
|
||||
|
||||
|
@ -3815,8 +3799,7 @@ DEFUN ("x-display-mm-width", Fx_display_mm_width, Sx_display_mm_width, 0, 1, 0,
|
|||
The optional argument TERMINAL specifies which display to ask about.
|
||||
TERMINAL should be a terminal object, a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct x_display_info *dpyinfo = check_x_display_info (terminal);
|
||||
|
||||
|
@ -3830,8 +3813,7 @@ The value may be `always', `when-mapped', or `not-useful'.
|
|||
The optional argument TERMINAL specifies which display to ask about.
|
||||
TERMINAL should be a terminal object, a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct x_display_info *dpyinfo = check_x_display_info (terminal);
|
||||
Lisp_Object result;
|
||||
|
@ -3867,8 +3849,7 @@ The value is one of the symbols `static-gray', `gray-scale',
|
|||
The optional argument TERMINAL specifies which display to ask about.
|
||||
TERMINAL should a terminal object, a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct x_display_info *dpyinfo = check_x_display_info (terminal);
|
||||
Lisp_Object result;
|
||||
|
@ -3907,8 +3888,7 @@ DEFUN ("x-display-save-under", Fx_display_save_under,
|
|||
The optional argument TERMINAL specifies which display to ask about.
|
||||
TERMINAL should be a terminal object, a frame or a display name (a string).
|
||||
If omitted or nil, that stands for the selected frame's display. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct x_display_info *dpyinfo = check_x_display_info (terminal);
|
||||
|
||||
|
@ -4120,8 +4100,7 @@ DISPLAY is the name of the display to connect to.
|
|||
Optional second arg XRM-STRING is a string of resources in xrdb format.
|
||||
If the optional third arg MUST-SUCCEED is non-nil,
|
||||
terminate Emacs if we can't open the connection. */)
|
||||
(display, xrm_string, must_succeed)
|
||||
Lisp_Object display, xrm_string, must_succeed;
|
||||
(Lisp_Object display, Lisp_Object xrm_string, Lisp_Object must_succeed)
|
||||
{
|
||||
unsigned char *xrm_option;
|
||||
struct x_display_info *dpyinfo;
|
||||
|
@ -4172,8 +4151,7 @@ DEFUN ("x-close-connection", Fx_close_connection,
|
|||
For TERMINAL, specify a terminal object, a frame or a display name (a
|
||||
string). If TERMINAL is nil, that stands for the selected frame's
|
||||
terminal. */)
|
||||
(terminal)
|
||||
Lisp_Object terminal;
|
||||
(Lisp_Object terminal)
|
||||
{
|
||||
struct x_display_info *dpyinfo = check_x_display_info (terminal);
|
||||
|
||||
|
@ -4187,7 +4165,7 @@ terminal. */)
|
|||
|
||||
DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0,
|
||||
doc: /* Return the list of display names that Emacs has connections to. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
Lisp_Object tail, result;
|
||||
|
||||
|
@ -4207,8 +4185,7 @@ easier.
|
|||
The optional second argument TERMINAL specifies which display to act on.
|
||||
TERMINAL should be a terminal object, a frame or a display name (a string).
|
||||
If TERMINAL is omitted or nil, that stands for the selected frame's display. */)
|
||||
(on, terminal)
|
||||
Lisp_Object terminal, on;
|
||||
(Lisp_Object on, Lisp_Object terminal)
|
||||
{
|
||||
struct x_display_info *dpyinfo = check_x_display_info (terminal);
|
||||
|
||||
|
@ -4251,8 +4228,7 @@ If OUTER_P is non-nil, the property is changed for the outer X window of
|
|||
FRAME. Default is to change on the edit X window.
|
||||
|
||||
Value is VALUE. */)
|
||||
(prop, value, frame, type, format, outer_p)
|
||||
Lisp_Object prop, value, frame, type, format, outer_p;
|
||||
(Lisp_Object prop, Lisp_Object value, Lisp_Object frame, Lisp_Object type, Lisp_Object format, Lisp_Object outer_p)
|
||||
{
|
||||
struct frame *f = check_x_frame (frame);
|
||||
Atom prop_atom;
|
||||
|
@ -4330,8 +4306,7 @@ DEFUN ("x-delete-window-property", Fx_delete_window_property,
|
|||
Sx_delete_window_property, 1, 2, 0,
|
||||
doc: /* Remove window property PROP from X window of FRAME.
|
||||
FRAME nil or omitted means use the selected frame. Value is PROP. */)
|
||||
(prop, frame)
|
||||
Lisp_Object prop, frame;
|
||||
(Lisp_Object prop, Lisp_Object frame)
|
||||
{
|
||||
struct frame *f = check_x_frame (frame);
|
||||
Atom prop_atom;
|
||||
|
@ -4362,8 +4337,7 @@ If VECTOR_RET_P is non-nil, don't return a string but a vector of values.
|
|||
|
||||
Value is nil if FRAME hasn't a property with name PROP or if PROP has
|
||||
no value of TYPE. */)
|
||||
(prop, frame, type, source, delete_p, vector_ret_p)
|
||||
Lisp_Object prop, frame, type, source, delete_p, vector_ret_p;
|
||||
(Lisp_Object prop, Lisp_Object frame, Lisp_Object type, Lisp_Object source, Lisp_Object delete_p, Lisp_Object vector_ret_p)
|
||||
{
|
||||
struct frame *f = check_x_frame (frame);
|
||||
Atom prop_atom;
|
||||
|
@ -5024,8 +4998,7 @@ DY added (default is -10).
|
|||
|
||||
A tooltip's maximum size is specified by `x-max-tooltip-size'.
|
||||
Text larger than the specified size is clipped. */)
|
||||
(string, frame, parms, timeout, dx, dy)
|
||||
Lisp_Object string, frame, parms, timeout, dx, dy;
|
||||
(Lisp_Object string, Lisp_Object frame, Lisp_Object parms, Lisp_Object timeout, Lisp_Object dx, Lisp_Object dy)
|
||||
{
|
||||
struct frame *f;
|
||||
struct window *w;
|
||||
|
@ -5216,7 +5189,7 @@ Text larger than the specified size is clipped. */)
|
|||
DEFUN ("x-hide-tip", Fx_hide_tip, Sx_hide_tip, 0, 0, 0,
|
||||
doc: /* Hide the current tooltip window, if there is any.
|
||||
Value is t if tooltip was open, nil otherwise. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
int count;
|
||||
Lisp_Object deleted, frame, timer;
|
||||
|
@ -5277,7 +5250,7 @@ DEFUN ("x-uses-old-gtk-dialog", Fx_uses_old_gtk_dialog,
|
|||
Sx_uses_old_gtk_dialog,
|
||||
0, 0, 0,
|
||||
doc: /* Return t if the old Gtk+ file selection dialog is used. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
#ifdef USE_GTK
|
||||
extern int use_dialog_box;
|
||||
|
@ -5344,8 +5317,7 @@ DEFUN ("x-file-dialog", Fx_file_dialog, Sx_file_dialog, 2, 5, 0,
|
|||
Use a file selection dialog. Select DEFAULT-FILENAME in the dialog's file
|
||||
selection box, if specified. If MUSTMATCH is non-nil, the returned file
|
||||
or directory must exist. ONLY-DIR-P is ignored." */)
|
||||
(prompt, dir, default_filename, mustmatch, only_dir_p)
|
||||
Lisp_Object prompt, dir, default_filename, mustmatch, only_dir_p;
|
||||
(Lisp_Object prompt, Lisp_Object dir, Lisp_Object default_filename, Lisp_Object mustmatch, Lisp_Object only_dir_p)
|
||||
{
|
||||
int result;
|
||||
struct frame *f = SELECTED_FRAME ();
|
||||
|
@ -5516,8 +5488,7 @@ Use a file selection dialog. Select DEFAULT-FILENAME in the dialog's file
|
|||
selection box, if specified. If MUSTMATCH is non-nil, the returned file
|
||||
or directory must exist. If ONLY-DIR-P is non-nil, the user can only select
|
||||
directories. */)
|
||||
(prompt, dir, default_filename, mustmatch, only_dir_p)
|
||||
Lisp_Object prompt, dir, default_filename, mustmatch, only_dir_p;
|
||||
(Lisp_Object prompt, Lisp_Object dir, Lisp_Object default_filename, Lisp_Object mustmatch, Lisp_Object only_dir_p)
|
||||
{
|
||||
FRAME_PTR f = SELECTED_FRAME ();
|
||||
char *fn;
|
||||
|
@ -5578,8 +5549,7 @@ DEFUN ("x-select-font", Fx_select_font, Sx_select_font, 0, 2, 0,
|
|||
Return a GTK-style font string corresponding to the selection.
|
||||
|
||||
If FRAME is omitted or nil, it defaults to the selected frame. */)
|
||||
(frame, ignored)
|
||||
Lisp_Object frame, ignored;
|
||||
(Lisp_Object frame, Lisp_Object ignored)
|
||||
{
|
||||
FRAME_PTR f = check_x_frame (frame);
|
||||
char *name;
|
||||
|
@ -5667,8 +5637,7 @@ FRAME nil means use the selected frame.
|
|||
Value is t if we know that both keys are present, and are mapped to the
|
||||
usual X keysyms. Value is `lambda' if we cannot determine if both keys are
|
||||
present and mapped to the usual X keysyms. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
#ifdef HAVE_XKBGETKEYBOARD
|
||||
XkbDescPtr kb;
|
||||
|
|
17
src/xmenu.c
17
src/xmenu.c
|
@ -260,8 +260,7 @@ otherwise it is "Question".
|
|||
If the user gets rid of the dialog box without making a valid choice,
|
||||
for instance using the window manager, then this produces a quit and
|
||||
`x-popup-dialog' does not return. */)
|
||||
(position, contents, header)
|
||||
Lisp_Object position, contents, header;
|
||||
(Lisp_Object position, Lisp_Object contents, Lisp_Object header)
|
||||
{
|
||||
FRAME_PTR f = NULL;
|
||||
Lisp_Object window;
|
||||
|
@ -518,8 +517,7 @@ arrow keys, select a menu entry with the return key or cancel with the
|
|||
escape key. If FRAME has no menu bar this function does nothing.
|
||||
|
||||
If FRAME is nil or not given, use the selected frame. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
XEvent ev;
|
||||
FRAME_PTR f = check_x_frame (frame);
|
||||
|
@ -597,8 +595,7 @@ arrow keys, select a menu entry with the return key or cancel with the
|
|||
escape key. If FRAME has no menu bar this function does nothing.
|
||||
|
||||
If FRAME is nil or not given, use the selected frame. */)
|
||||
(frame)
|
||||
Lisp_Object frame;
|
||||
(Lisp_Object frame)
|
||||
{
|
||||
GtkWidget *menubar;
|
||||
FRAME_PTR f;
|
||||
|
@ -1282,7 +1279,9 @@ set_frame_menubar (FRAME_PTR f, int first_time, int deep_p)
|
|||
|
||||
/* Make menu pop down on C-g. */
|
||||
XtOverrideTranslations (menubar_widget, override);
|
||||
#ifdef USE_LUCID
|
||||
apply_systemfont_to_menu (menubar_widget);
|
||||
#endif
|
||||
}
|
||||
|
||||
{
|
||||
|
@ -1614,7 +1613,9 @@ create_and_show_popup_menu (f, first_wv, x, y, for_click, timestamp)
|
|||
popup_deactivate_callback,
|
||||
menu_highlight_callback);
|
||||
|
||||
#ifdef USE_LUCID
|
||||
apply_systemfont_to_menu (menu);
|
||||
#endif
|
||||
|
||||
dummy.type = ButtonPress;
|
||||
dummy.serial = 0;
|
||||
|
@ -2016,7 +2017,7 @@ create_and_show_dialog (f, first_wv)
|
|||
abort();
|
||||
|
||||
dialog_id = widget_id_tick++;
|
||||
#ifdef HAVE_XFT
|
||||
#ifdef USE_LUCID
|
||||
apply_systemfont_to_dialog (f->output_data.x->widget);
|
||||
#endif
|
||||
lw_create_widget (first_wv->name, "dialog", dialog_id, first_wv,
|
||||
|
@ -2622,7 +2623,7 @@ popup_activated (void)
|
|||
|
||||
DEFUN ("menu-or-popup-active-p", Fmenu_or_popup_active_p, Smenu_or_popup_active_p, 0, 0, 0,
|
||||
doc: /* Return t if a menu or popup dialog is active. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
#ifdef HAVE_MENUS
|
||||
return (popup_activated ()) ? Qt : Qnil;
|
||||
|
|
|
@ -2094,8 +2094,7 @@ TYPE is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'.
|
|||
\(Those are literal upper-case symbol names, since that's what X expects.)
|
||||
VALUE is typically a string, or a cons of two markers, but may be
|
||||
anything that the functions on `selection-converter-alist' know about. */)
|
||||
(selection_name, selection_value)
|
||||
Lisp_Object selection_name, selection_value;
|
||||
(Lisp_Object selection_name, Lisp_Object selection_value)
|
||||
{
|
||||
check_x ();
|
||||
CHECK_SYMBOL (selection_name);
|
||||
|
@ -2117,8 +2116,7 @@ SELECTION is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'.
|
|||
TYPE is the type of data desired, typically `STRING'.
|
||||
TIME_STAMP is the time to use in the XConvertSelection call for foreign
|
||||
selections. If omitted, defaults to the time for the last event. */)
|
||||
(selection_symbol, target_type, time_stamp)
|
||||
Lisp_Object selection_symbol, target_type, time_stamp;
|
||||
(Lisp_Object selection_symbol, Lisp_Object target_type, Lisp_Object time_stamp)
|
||||
{
|
||||
Lisp_Object val = Qnil;
|
||||
struct gcpro gcpro1, gcpro2;
|
||||
|
@ -2163,9 +2161,7 @@ DEFUN ("x-disown-selection-internal", Fx_disown_selection_internal,
|
|||
Sx_disown_selection_internal, 1, 2, 0,
|
||||
doc: /* If we own the selection SELECTION, disown it.
|
||||
Disowning it means there is no such selection. */)
|
||||
(selection, time)
|
||||
Lisp_Object selection;
|
||||
Lisp_Object time;
|
||||
(Lisp_Object selection, Lisp_Object time)
|
||||
{
|
||||
Time timestamp;
|
||||
Atom selection_atom;
|
||||
|
@ -2239,8 +2235,7 @@ the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.
|
|||
\(Those are literal upper-case symbol names, since that's what X expects.)
|
||||
For convenience, the symbol nil is the same as `PRIMARY',
|
||||
and t is the same as `SECONDARY'. */)
|
||||
(selection)
|
||||
Lisp_Object selection;
|
||||
(Lisp_Object selection)
|
||||
{
|
||||
check_x ();
|
||||
CHECK_SYMBOL (selection);
|
||||
|
@ -2260,8 +2255,7 @@ the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.
|
|||
\(Those are literal upper-case symbol names, since that's what X expects.)
|
||||
For convenience, the symbol nil is the same as `PRIMARY',
|
||||
and t is the same as `SECONDARY'. */)
|
||||
(selection)
|
||||
Lisp_Object selection;
|
||||
(Lisp_Object selection)
|
||||
{
|
||||
Window owner;
|
||||
Atom atom;
|
||||
|
@ -2323,8 +2317,7 @@ initialize_cut_buffers (Display *display, Window window)
|
|||
DEFUN ("x-get-cut-buffer-internal", Fx_get_cut_buffer_internal,
|
||||
Sx_get_cut_buffer_internal, 1, 1, 0,
|
||||
doc: /* Returns the value of the named cut buffer (typically CUT_BUFFER0). */)
|
||||
(buffer)
|
||||
Lisp_Object buffer;
|
||||
(Lisp_Object buffer)
|
||||
{
|
||||
Window window;
|
||||
Atom buffer_atom;
|
||||
|
@ -2374,8 +2367,7 @@ DEFUN ("x-get-cut-buffer-internal", Fx_get_cut_buffer_internal,
|
|||
DEFUN ("x-store-cut-buffer-internal", Fx_store_cut_buffer_internal,
|
||||
Sx_store_cut_buffer_internal, 2, 2, 0,
|
||||
doc: /* Sets the value of the named cut buffer (typically CUT_BUFFER0). */)
|
||||
(buffer, string)
|
||||
Lisp_Object buffer, string;
|
||||
(Lisp_Object buffer, Lisp_Object string)
|
||||
{
|
||||
Window window;
|
||||
Atom buffer_atom;
|
||||
|
@ -2440,8 +2432,7 @@ DEFUN ("x-rotate-cut-buffers-internal", Fx_rotate_cut_buffers_internal,
|
|||
Sx_rotate_cut_buffers_internal, 1, 1, 0,
|
||||
doc: /* Rotate the values of the cut buffers by N steps.
|
||||
Positive N means shift the values forward, negative means backward. */)
|
||||
(n)
|
||||
Lisp_Object n;
|
||||
(Lisp_Object n)
|
||||
{
|
||||
Window window;
|
||||
Atom props[8];
|
||||
|
@ -2624,8 +2615,7 @@ the cdr is the lower 16 bits of a 32 bit value.
|
|||
Use the display for FRAME or the current frame if FRAME is not given or nil.
|
||||
|
||||
If the value is 0 or the atom is not known, return the empty string. */)
|
||||
(value, frame)
|
||||
Lisp_Object value, frame;
|
||||
(Lisp_Object value, Lisp_Object frame)
|
||||
{
|
||||
struct frame *f = check_x_frame (frame);
|
||||
char *name = 0;
|
||||
|
@ -2665,8 +2655,7 @@ DEFUN ("x-register-dnd-atom", Fx_register_dnd_atom,
|
|||
doc: /* Request that dnd events are made for ClientMessages with ATOM.
|
||||
ATOM can be a symbol or a string. The ATOM is interned on the display that
|
||||
FRAME is on. If FRAME is nil, the selected frame is used. */)
|
||||
(atom, frame)
|
||||
Lisp_Object atom, frame;
|
||||
(Lisp_Object atom, Lisp_Object frame)
|
||||
{
|
||||
Atom x_atom;
|
||||
struct frame *f = check_x_frame (frame);
|
||||
|
@ -2783,8 +2772,7 @@ the Atom is sent. If a value is a cons, it is converted to a 32 bit number
|
|||
with the high 16 bits from the car and the lower 16 bit from the cdr.
|
||||
If more values than fits into the event is given, the excessive values
|
||||
are ignored. */)
|
||||
(display, dest, from, message_type, format, values)
|
||||
Lisp_Object display, dest, from, message_type, format, values;
|
||||
(Lisp_Object display, Lisp_Object dest, Lisp_Object from, Lisp_Object message_type, Lisp_Object format, Lisp_Object values)
|
||||
{
|
||||
struct x_display_info *dpyinfo = check_x_display_info (display);
|
||||
Window wdest;
|
||||
|
|
|
@ -703,7 +703,7 @@ DEFUN ("font-get-system-normal-font", Ffont_get_system_normal_font,
|
|||
Sfont_get_system_normal_font,
|
||||
0, 0, 0,
|
||||
doc: /* Get the system default application font. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return current_font
|
||||
? make_string (current_font, strlen (current_font))
|
||||
|
@ -713,7 +713,7 @@ DEFUN ("font-get-system-normal-font", Ffont_get_system_normal_font,
|
|||
DEFUN ("font-get-system-font", Ffont_get_system_font, Sfont_get_system_font,
|
||||
0, 0, 0,
|
||||
doc: /* Get the system default fixed width font. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
return current_mono_font
|
||||
? make_string (current_mono_font, strlen (current_mono_font))
|
||||
|
@ -725,7 +725,7 @@ DEFUN ("tool-bar-get-system-style", Ftool_bar_get_system_style, Stool_bar_get_sy
|
|||
doc: /* Get the system tool bar style.
|
||||
If no system tool bar style is known, return `tool-bar-style' if set to a
|
||||
known style. Otherwise return image. */)
|
||||
()
|
||||
(void)
|
||||
{
|
||||
if (EQ (Vtool_bar_style, Qimage)
|
||||
|| EQ (Vtool_bar_style, Qtext)
|
||||
|
|
|
@ -519,8 +519,7 @@ from `emacs-session-save' If the return value is non-nil the session manager
|
|||
is told to abort the window system shutdown.
|
||||
|
||||
Do not call this function yourself. */)
|
||||
(event)
|
||||
Lisp_Object event;
|
||||
(Lisp_Object event)
|
||||
{
|
||||
/* Check doing_interact so that we don't do anything if someone called
|
||||
this at the wrong time. */
|
||||
|
|
Loading…
Add table
Reference in a new issue