1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 04:30:45 -08:00
Commit graph

99190 commits

Author SHA1 Message Date
Paul Eggert
3ac946723d * keyboard.c (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN. 2011-03-14 08:25:21 -07:00
Paul Eggert
560a553af5 * keyboard.c (read_key_sequence): Mark locals as initialized. 2011-03-14 08:19:28 -07:00
Paul Eggert
69a058fab1 * keyboard.c: (read_char, kbd_buffer_get_event, make_lispy_position):
(make_lispy_event, make_lispy_movement, apply_modifiers):
(decode_keyboard_code, tty_read_avail_input, menu_bar_items):
(parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
(Fread_key_sequence_vector): Rename locals to avoid shadowing.
2011-03-14 08:15:30 -07:00
Paul Eggert
da2f2dd9c2 * keyboard.h (mark_kboards): Move decl here ...
* alloc.c (mark_kboards): ... from here.
2011-03-13 22:55:38 -07:00
Paul Eggert
2f2650daaa * keyboard.c: Declare functions static if they are not used elsewhere.
(echo_char, echo_dash, cmd_error, top_level_2):
(poll_for_input, handle_async_input): Now static.
2011-03-13 22:51:17 -07:00
Paul Eggert
a053e86cc5 * keyboard.h (make_ctrl_char): New decl. 2011-03-13 22:49:51 -07:00
Paul Eggert
4752793e22 * lisp.h (force_auto_save_soon): New decl. 2011-03-13 22:48:15 -07:00
Paul Eggert
c03cd23f45 * emacs.c (main): Add casts to avoid warnings
if GCC considers string literals to be constants.
2011-03-13 22:36:36 -07:00
Paul Eggert
244fc23d16 * emacs.c (DEFINE_DUMMY_FUNCTION): New macro.
(__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
Use it.
2011-03-13 20:49:40 -07:00
Paul Eggert
74f10ca71b * emacs.c (init_cmdargs): Rename local to avoid shadowing. 2011-03-13 20:43:36 -07:00
Paul Eggert
603935076c Rewrite to avoid "/*" in comment. 2011-03-13 20:35:14 -07:00
Paul Eggert
022e70d41f * lisp.h (fatal_error_signal): Add decl, since it's exported. 2011-03-13 20:31:16 -07:00
Paul Eggert
49cebccaa7 * dbusbind.c (Fdbus_register_service, Fdbus_register_method): Remove unused vars. 2011-03-13 20:25:51 -07:00
Paul Eggert
78320123c1 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
if GCC considers string literals to be constants.
2011-03-13 20:23:23 -07:00
Paul Eggert
59d6fe8344 * dbusbind.c: Pointer signedness fixes.
(xd_signature, xd_append_arg, xd_initialize):
(Fdbus_call_method, Fdbus_call_method_asynchronously):
(Fdbus_method_return_internal, Fdbus_method_error_internal):
(Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
(Fdbus_register_signal): Use SSDATA when the context wants char *.
2011-03-13 20:21:32 -07:00
Chong Yidong
cffc6f3bd9 Fix BUF_* macros to handle indirect buffers properly (Bug#8219).
* buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
(BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
These macros can no longer be used for assignment.

* buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
struct members directly, instead of using BUF_BEGV etc.
(record_buffer_markers, fetch_buffer_markers): New functions for
recording and fetching special buffer markers.
(set_buffer_internal_1, set_buffer_temp): Use them.

* lread.c (unreadchar): Use SET_BUF_PT_BOTH.

* insdel.c (adjust_point): Use SET_BUF_PT_BOTH.

* intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
(get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.

* xdisp.c (hscroll_window_tree):
(reconsider_clip_changes): Use PT instead of BUF_PT.
2011-03-13 18:25:16 -04:00
Ted Zlatanov
eebc475df5 Add `auth-source-search' integration for LDAP searches.
* net/ldap.el (ldap-search-internal): Add `auth-source-search'
integration for LDAP parameters.  The host, base, user or binddn,
and secret tokens can be specified in a netrc file, for instance.
This is optional because an `auth-source' parameter must be
specified in the search attributes.
2011-03-13 17:17:17 -05:00
Teodor Zlatanov
67613d3160 auth-source.el (auth-source-netrc-create): Show the default in the prompt when prompting for token creation. 2011-03-13 20:50:07 +00:00
Eli Zaretskii
d251f04bea MS-Windows followup for 2011-03-13T06:43:00Z!eggert@cs.ucla.edu.
src/makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
 $(EMACS_ROOT)/lib/intprops.h.
2011-03-13 19:49:38 +02:00
Paul Eggert
1ef6de0565 Update for gnulib, adding Solaris 9+10 fixes. 2011-03-13 10:39:04 -07:00
Paul Eggert
3eca462920 Merge from mainline. 2011-03-13 10:28:15 -07:00
Paul Eggert
01e0b5adf4 * gtkutil.c (gdk_window_get_screen): Make it clear that this macro is needed
only if USE_GTK_TOOLTIP.
2011-03-13 00:42:12 -08:00
Paul Eggert
65dc836c9e * gtkutil.c: (get_utf8_string, xg_get_file_with_chooser):
Rename locals to avoid shadowing.
(create_dialog): Move locals to avoid shadowing.
2011-03-13 00:39:13 -08:00
Paul Eggert
1e5524e7cf * gtkutil.c (int_gtk_range_get_value): New function, which avoids a diagnostic
from gcc -Wbad-function-cast.
(xg_set_toolkit_scroll_bar_thumb): Use it.
(xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
diagnostic from gcc -Wbad-function-cast.
2011-03-13 00:31:16 -08:00
Paul Eggert
b0afc268e8 * gtkutil.c (xg_free_frame_widgets): Make it clear that a local variable is
needed only if USE_GTK_TOOLTIP.
2011-03-13 00:15:55 -08:00
Paul Eggert
7c86ee9804 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
to unsigned char * to avoid compiler diagnostic.
2011-03-13 00:14:30 -08:00
Paul Eggert
41729b81ac * xgselect.c (xg_select): Remove unused var. 2011-03-13 00:05:40 -08:00
Paul Eggert
ec6cf4c6ff * image.c (my_png_error, my_error_exit): Mark with NO_RETURN. 2011-03-13 00:04:44 -08:00
Paul Eggert
f0c77cd1b2 * image.c (four_corners_best): Mark locals as initialized.
(gif_load): Initialize transparent_p to zero (Bug#8238).
Mark another local as initialized.
2011-03-12 23:50:17 -08:00
Paul Eggert
d32df629a2 Improve quality of tests for time stamp overflow. 2011-03-12 22:43:00 -08:00
Paul Eggert
313c1e544a * editfns.c (lisp_time_argument): Check for time stamp overflow. 2011-03-12 22:27:18 -08:00
Teodor Zlatanov
4248cca2de Merge changes made in Gnus trunk.
auth.texi (Help for developers): Update docs to explain that the :save-function will only run the first time.
auth-source.el (auth-source-format-prompt): Always convert the value to a string to avoid evaluating non-string arguments.
 (auth-source-netrc-create): Offer default properly, not as initial content in `read-string'.
 (auth-source-netrc-saver): Use a cache keyed by file name and MD5 hash of line to determine if we've been run before.  If so, don't run again, but print a trivial message to indicate the cache was hit instead.
2011-03-13 04:07:38 +00:00
Chong Yidong
8d9101d850 admin/admin.el: Add some code for deploying web manuals. 2011-03-12 22:50:33 -05:00
Juanma Barranquero
9d05d1ba20 lisp/help.el (describe-mode): Link to the mode's definition.
Fixes: debbugs:8185
2011-03-13 02:57:40 +01:00
Paul Eggert
803110b536 * editfns.c (hi_time): Do not overparenthesize. 2011-03-12 14:52:25 -08:00
Glenn Morris
09d9db2c49 Merge from emacs-23; up to 2010-06-03T22:16:02Z!dann@ics.uci.edu 2011-03-12 11:19:47 -08:00
Glenn Morris
54ce11a161 Some more html rules for doc/misc/Makefile.in.
* doc/misc/Makefile.in (emacs-faq.html): Fix some more cross-refs.
(emacs-faq.text): New target.
(clean): Add emacs-faq.
2011-03-12 10:40:08 -08:00
Juanma Barranquero
219bd53686 Fix typos. 2011-03-12 16:38:34 +01:00
Juanma Barranquero
70620cbe32 lisp/vc/vc-bzr.el (vc-bzr-state): Handle bzr 2.3.0 (follow-up to bug#8170). 2011-03-12 16:26:33 +01:00
Michael Albinus
0c3b25f89b Sync with Tramp 2.2.1.
* trampver.texi: Update release number.
2011-03-12 16:22:10 +01:00
Michael Albinus
f3afd36bad Sync with Tramp 2.2.1.
* net/tramp-sh.el (tramp-methods): Exchange "%k" marker with options.

* net/trampver.el: Update release number.
2011-03-12 16:19:29 +01:00
Michael Albinus
6efb972c00 * net/tramp.el (tramp-progress-reporter-update): Use
`tramp-compat-funcall'.
(tramp-handle-start-file-process): Use `tramp-compat-process-get'.
(tramp-handle-insert-file-contents): Make `file-remote-p' call
compatible.
(tramp-open-connection-setup-interactive-shell): Use
`tramp-compat-process-put'.

* net/tramp-compat.el (tramp-compat-process-get)
(tramp-compat-process-put): New defuns.

* net/trampver.el: Update release number.

Please do not merge with the trunk.
2011-03-12 14:26:19 +01:00
Michael Albinus
1e08a4a156 Remove arch-tag.
* trampver.texi: Update release number.
2011-03-12 14:17:54 +01:00
Eli Zaretskii
ecb0f94d18 src/ChangeLog: Fix last entry for deps.mk. 2011-03-12 14:05:05 +02:00
Eli Zaretskii
058e5dad0e Make termcap.c implementations consistent with tparam.h prototypes.
src/termcap.c [MSDOS]: Include "msdos.h.
 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
 Constify `char *' arguments and their references according to
 prototypes in tparam.h.
 src/deps.mk (termcap.o): Depend on tparam.h and msdos.h.
2011-03-12 14:03:24 +02:00
Eli Zaretskii
7ac80be95a Fix compilation warnings on MS-DOS due to constifying of pointers in xmenu.c.
src/msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
 Adapt all references accordingly.
 src/msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
2011-03-12 12:51:31 +02:00
Gnus developers
a276370e0a Merge changes made in Gnus trunk.
gnus-sync.el (gnus-sync-install-hooks, gnus-sync-unload-hook): Don't install `gnus-sync-read' to any hooks by default.  It's buggy.  The user will have to run `gnus-sync-read' manually and wait for Cloudy Gnus.
mm-uu.el (mm-uu-type-alist): Add support for diff starting with "=== modified file".
2011-03-12 08:53:34 +00:00
Paul Eggert
b8d9bd41b7 Improve quality of tests for time stamp overflow. For example,
without this patch (encode-time 0 0 0 1 1 1152921504606846976)
returns the obviously-bogus value (-948597 62170) on my RHEL 5.5
x86-64 host.  With it, it reports time overflow.
* deps.mk (editfns.o): Depend on ../lib/intprops.h.
* editfns.c: Include limits.h and intprops.h.
(TIME_T_MIN, TIME_T_MAX): New macros.
(time_overflow): Move earlier, to before first use.
(hi_time, lo_time): New functions, for an accurate test for
out-of-range times.
(Fcurrent_time, Fget_internal_run_time, make_time): Use them.
(Fget_internal_run_time): Don't assume time_t fits in int.
(make_time): Use list2 instead of Fcons twice.
(Fdecode_time): More accurate test for out-of-range times.
(check_tm_member): New function.
(Fencode_time): Use it, to test for out-of-range times.
2011-03-11 22:49:53 -08:00
Stefan Monnier
946425995f * lisp/progmodes/compile.el (compilation--previous-directory): Fix up
various nil/dead-marker mismatches.
(compilation-directory-properties, compilation-error-properties):
Don't call it at a position past the one we're about to change.

Fixes: debbugs:8014
2011-03-11 23:29:22 -05:00
Stefan Monnier
3aaaa6f1c9 * lisp/emacs-lisp/bytecomp.el (byte-compile-make-obsolete-variable):
Disable obsolescence warnings in the file that declares it.
2011-03-11 21:59:24 -05:00