1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-19 01:10:57 -08:00
Commit graph

108502 commits

Author SHA1 Message Date
Paul Eggert
f5c08e1767 * configure.in: Document --enable-gcc-warnings better. 2012-07-06 14:29:50 -07:00
Paul Eggert
fee5959dd8 Use c_strcasecmp for ASCII case-insensitive comparison.
Fixes: debbugs:11786
2012-07-06 14:07:46 -07:00
Paul Eggert
fd573f31dc * xfont.c (compare_font_names): Redo to omit the need for casts. 2012-07-06 13:49:23 -07:00
Andreas Schwab
fca8d6b687 * xfns.c (Fx_change_window_property): Doc fix.
* w32fns.c (Fx_change_window_property): Doc fix.
2012-07-06 22:00:42 +02:00
Andreas Schwab
9c32bf45f4 * make-docfile.c (write_globals): Warn about duplicate function
definitions with differing signatures.
2012-07-06 21:50:17 +02:00
Andreas Schwab
ddadbc0e71 Fixes: debbugs:11870
* w32fns.c (Fx_window_property): Accept the same arguments as the
X Windows version.  Doc fix.
* xfns.c (Fx_window_property): Doc fix.
2012-07-06 21:34:39 +02:00
Glenn Morris
133a11fc59 * lisp/files.el (toggle-read-only): Restrict message to interactive use. 2012-07-06 15:06:54 -04:00
Paul Eggert
a69ca79981 timespec-sub: avoid duplicate include 2012-07-06 10:53:26 -07:00
Juanma Barranquero
f247498ead * nt/config.nt: Complete rework to bring it in sync with autogen/config.in.
All Windows-specific code moved to src/s/ms-w32.h.

* src/s/ms-w32.h: Settings not specific to Windows moved to nt/config.nt.
Windows-specific code from nt/config.nt moved here.
Obsolete settings removed.
2012-07-06 19:19:33 +02:00
Paul Eggert
216ee680e5 * process.c: Avoid unnecessary calls to gettime.
(wait_reading_process_output): Don't get the time of day
when gobbling data immediately and not waiting, as there's no need
for it in that case.  This removes a FIXME.
2012-07-06 09:57:32 -07:00
Paul Eggert
5293d75864 Fix stray '<' from last change. 2012-07-06 08:46:51 -07:00
Jan Djärv
bdd091e45b * gtkutil.c (xg_event_is_for_scrollbar): Assign gwin when HAVE_GTK3 is defined.
Fixes: debbugs:11768
2012-07-06 17:02:29 +02:00
Dmitry Antipov
9d44f8ce16 Fix marker debugging code.
* marker.c (byte_char_debug_check): Do not perform the check
if buffer is not multibyte.
(buf_charpos_to_bytepos, buf_bytepos_to_charpos): Call
byte_char_debug_check with correct arguments.
2012-07-06 18:16:54 +04:00
Michael Albinus
ef091c9770 * tramp.texi (Multi-hops): Introduce `tramp-restricted-shell-hosts-alist'. 2012-07-06 15:19:33 +02:00
Michael Albinus
07b151f1bc * net/tramp.el (tramp-restricted-shell-hosts-alist): New defcustom.
* net/tramp-sh.el (tramp-maybe-open-connection): Handle it.
2012-07-06 15:16:13 +02:00
Glenn Morris
3181e27910 Auto-commit of generated files. 2012-07-06 06:17:34 -04:00
Dmitry Antipov
90fc478637 Compile marker debugging code only if ENABLE_CHECKING is defined.
* marker.c (byte_char_debug_check, count_markers): Use
only if ENABLE_CHECKING is defined.
(byte_debug_flag): Remove.
(CONSIDER, buf_charpos_to_bytepos, buf_bytepos_to_charpos):
Always call byte_char_debug_check if ENABLE_CHECKING is defined.
2012-07-06 13:20:41 +04:00
Dmitry Antipov
4e57b342c5 Avoid code repetition in marker-related functions.
* marker.c (attach_marker): New function.
(Fset_marker, set_marker_restricted, set_marker_both)
(set_marker_restricted_both): Use it.
(Fset_marker, set_marker_restricted, Fbuffer_has_markers_at):
Consistently rename charno to charpos.
(marker_position): Add eassert.
(marker_byte_position): Convert to eassert.
2012-07-06 12:53:15 +04:00
Glenn Morris
5acf95603c * intro.texi (A Sample Variable Description): The saga continues...
http://debbugs.gnu.org/11862#89
2012-07-06 00:48:10 -07:00
Glenn Morris
97671cbb3c Comment tweak 2012-07-06 00:45:23 -07:00
Glenn Morris
a02d99e754 Tweaks for make-dist --update.
* make-dist [update]: Let autoreconf figure out what needs updating.
Use `make info-real'.  leim/leim-list.el should always exist.
Check cd return value.
2012-07-06 00:40:43 -07:00
Dmitry Antipov
7b7ae96547 * buffer.c (unchain_overlay): Simplify. Add comment.
* marker.c (unchain_marker): Simplify.  Fix comments.
2012-07-06 11:34:37 +04:00
Glenn Morris
a358bac20f * lisp/Makefile.in: Comment 2012-07-06 00:29:43 -07:00
Glenn Morris
938d1f57c3 Move a comment from lisp/Makefile.in to lisp/loadup.el.
The comment in Makefile.in has been orphaned ever since
the bootstrap-prepare rule was removed in 2008.
2012-07-06 00:23:25 -07:00
Glenn Morris
50394322c5 * lisp/Makefile.in (compile-one-process): Rename from "recompile". 2012-07-06 00:08:10 -07:00
Glenn Morris
211b896bb0 * lisp/Makefile.in (bzr-update): Use "compile".
It is the same as "recompile autoloads", but parallelizable.
2012-07-06 00:06:13 -07:00
Dmitry Gutov
4737eec9d7 In quit-window always restore window height when it's saved in
quit-restore parameter.

* window.el (quit-window): Always restore window height when
it's saved in quit-restore parameter.
2012-07-06 08:22:56 +02:00
Dmitry Antipov
657924ff58 Introduce fast path for the widely used marker operation.
* alloc.c (build_marker): New function.
* lisp.h (build_marker): New prototype.
* buffer.c (clone_per_buffer_values, Fmake_indirect_buffer): Use it.
* composite.c (autocmp_chars): Likewise.
* editfns.c (buildmark): Remove.
(Fpoint_marker, Fpoint_min_marker, Fpoint_max_marker)
(save_restriction_save): Use build_marker.
* marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos): Likewise.
* window.c (save_window_save): Likewise.
2012-07-06 09:07:44 +04:00
Chong Yidong
6edc3d285d Tweak Emacs manual info menu ordering.
* doc/emacs/emacs.texi: Re-order top-level menu to correspond to logical
order, to avoid makeinfo warnings.

* doc/emacs/ack.texi (Acknowledgments): Note new python.el.
2012-07-06 12:48:35 +08:00
Dmitry Antipov
041a49a645 Do not use Fdelete_overlay in delete_all_overlays
to avoid redundant calls to unchain_overlay.
* buffer.c (drop_overlay): New function.
(delete_all_overlays, Fdelete_overlay): Use it.
* minibuf.c (get_minibuffer): Fix comment.
2012-07-06 08:42:30 +04:00
Chong Yidong
226c3633fd Merge from emacs-24; up to 2012-05-01T00:16:02Z!rgm@gnu.org 2012-07-06 12:31:46 +08:00
Chong Yidong
d4913798ad Misc fixes for Lisp manual.
* doc/lispref/intro.texi (A Sample Function Description): Fix incorrect
markup, undoing previous change.
(A Sample Variable Description): Minor clarifications and markup
improvements.

* doc/lispref/elisp.texi (Top):
* doc/lispref/text.texi (Text): Fix menu order.
2012-07-06 12:25:04 +08:00
Paul Eggert
7dca65a4b4 Port to OpenBSD 5.1 amd64. 2012-07-06 03:08:57 +00:00
Richard M. Stallman
8c6c57ea62 * doc/lispref/intro.texi (A Sample Variable Description): Use @dfn more. 2012-07-05 21:54:35 -04:00
Richard M. Stallman
251736f471 Committer missed ChangeLog for previous change. 2012-07-05 21:48:45 -04:00
Richard M. Stallman
8bee192afd * doc/lispref/intro.texi: Improve/undo previous changes. 2012-07-05 21:47:46 -04:00
Glenn Morris
60198fc979 * lisp/Makefile.in (cvs-update): Remove old alias. 2012-07-05 21:31:54 -04:00
Glenn Morris
8eb876e22c * src/Makefile.in (emacs$(EXEEXT)): Don't check for load-path shadows.
It has nothing to do with building Emacs, and no-one is likely to be
paying attention to the result.  The CANNOT_DUMP branch was pointless,
since it sets EMACSLOADPATH=$(lispsource) it is impossible for there
to ever be any shadows.  The EMACSLOADPATH setting was probably necessary
for emacs to work at all when uninstalled, given the way init_lread
works for the CANNOT_DUMP case.  Since -batch implies -q, in the
non-CANNOT_DUMP branch, any shadows could only come from site-lisp
files.
2012-07-05 21:29:54 -04:00
Paul Eggert
38182d901d More xmalloc and related cleanup.
* alloc.c, bidi.c, buffer.c, buffer.h, bytecode.c, callint.c:
* callproc.c, charset.c, coding.c, composite.c, data.c, dispnew.c:
* doc.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fns.c:
* font.c, fontset.c, frame.c, fringe.c, ftfont.c, ftxfont.c, gmalloc.c:
* gtkutil.c, image.c, keyboard.c, keymap.c, lread.c, macros.c, menu.c:
* nsfns.m, nsfont.m, nsmenu.m, nsterm.m, print.c, process.c, ralloc.c:
* regex.c, region-cache.c, scroll.c, search.c, sound.c, syntax.c:
* sysdep.c, term.c, termcap.c, unexmacosx.c, window.c, xdisp.c:
* xfaces.c, xfns.c, xftfont.c, xgselect.c, xmenu.c, xrdb.c, xselect.c:
* xterm.c:
Omit needless casts involving void * pointers and allocation.
Prefer "P = xmalloc (sizeof *P)" to "P = xmalloc (sizeof (TYPE_OF_P))",
as the former is more robust if P's type is changed.
Prefer xzalloc to xmalloc + memset 0.
Simplify malloc-or-realloc to realloc.
Don't worry about xmalloc returning a null pointer.
Prefer xstrdup to xmalloc + strcpy.
* editfns.c (Fmessage_box): Grow message_text by at least 80 when
growing it.
* keyboard.c (apply_modifiers_uncached): Prefer local array to
alloca of a constant.
2012-07-05 11:35:48 -07:00
Eli Zaretskii
6dd5a677db Avoid long futile looping on a TTY under huge values of hscroll.
src/xdisp.c (display_line): Fix horizontal pixel coordinates when
 hscroll is larger than the line width.  Fixes long and futile
 looping inside extend_face_to_end_of_line (on a TTY) producing
 glyphs that are not needed and thrown away.
2012-07-05 19:28:34 +03:00
Dmitry Antipov
6b312f0fec * marker.c (set_marker_restricted_both): Simplify by using
clip_to_bounds.
2012-07-05 20:14:39 +04:00
Paul Eggert
f520ef9bc1 * editfns.c (region_limit): Simplify by using clip_to_bounds. 2012-07-05 09:00:20 -07:00
Jan Djärv
383b7c95b8 Don't use deprecated functions when compiling with Gtk3.
* gtkutil.c (gtk_scrollbar_new, gtk_box_new): Define when HAVE_GTK3 is
not defined (Bug#11768).
(xg_create_frame_widgets): Use gtk_plug_new_for_display (Bug#11768).
(xg_create_frame_widgets, create_dialog, xg_get_file_with_chooser)
(make_widget_for_menu_item, xg_make_tool_item): Use gtk_box_new
followed by gtk_box_set_homogeneous (Bug#11768).
(xg_update_menu_item): Use GTK_IS_BOX (Bug#11768).
(update_theme_scrollbar_width, xg_create_scroll_bar): Use
gtk_scrollbar_new (Bug#11768).
(xg_event_is_for_scrollbar): Use Gdk Device functions for HAVE_GTK3.
(is_box_type): New function (Bug#11768).
(xg_tool_item_stale_p): Call is_box_type.
(xg_initialize): Get settings by calling gtk_settings_get_for_screen
with default display (Bug#11768).
2012-07-05 17:44:53 +02:00
Eli Zaretskii
ea2ac79792 Revert hscroll and min_hscroll to ptrdiff_t.
Fixes: debbugs:11857
2012-07-05 18:20:12 +03:00
Eli Zaretskii
d6e7bf450c Fix bug #11857 with messed up display for insanely large hscroll values.
src/xdisp.c (window_hscroll_limited): New function.
 (pos_visible_p, init_iterator): Use it to avoid overflow of pixel
 coordinates when window's hscroll is set to insanely large
 values.
 src/window.h (struct window) <hscroll, min_hscroll>: Change type to 'int'.
2012-07-05 18:04:57 +03:00
Juanma Barranquero
431391ec72 src/makefile.w32-in: Update dependencies.
($(BLD)/dired.$(O), $(BLD)/fileio.$(O)): Fix typo.
($(BLD)/terminal.$(O), $(BLD)/syntax.$(O)): Update dependencies.
2012-07-05 14:07:29 +02:00
Michael Albinus
957b3189e6 Sync with Tramp 2.2.6-pre.
* net/tramp.el (tramp-drop-volume-letter): Provide an XEmacs
compatible declaration.

* net/tramp-cmds.el (tramp-append-tramp-buffers): Protect
`list-load-path-shadows' call.

* net/tramp-compat.el (top): Require packages, which aren't
autoloaded anymore for XEmacs.  Protect call of
`tramp-file-name-handler' by `tramp-compat-funcall', pacifying the
compiler.  Do not require tramp-util.el and tramp-vc.el anymore,
it hurts at least for SXEmacs.
(tramp-compat-temporary-file-directory): In XEmacs, there is no
standard-value for `temporary-file-directory'.

* net/tramp-sh.el (tramp-do-directory-files-and-attributes-with-stat):
Redirect stderr to /dev/null.
(tramp-sh-handle-write-region): uid and gid can be floats.
Reported by Russell Sim <russell.sim@gmail.com>.
(tramp-sh-handle-vc-registered): Hide errors.
(tramp-vc-file-name-handler): Use dummy results for `process-file'
and `start-file-process'.
(tramp-maybe-open-connection): Check also whether `non-essential'
is bound.
2012-07-05 08:57:57 +02:00
Dmitry Antipov
23f86fce48 Cleanup xmalloc.
* admin/coccinelle/xzalloc.cocci: Semantic patch to convert
calls to xmalloc with following memset to xzalloc.
* src/lisp.h (xzalloc): New prototype.  Omit needless casts.
* src/alloc.c (xzalloc): New function.  Omit needless casts.
* src/charset.c: Omit needless casts.  Convert all calls to
malloc with following memset to xzalloc.
* src/dispnew.c: Likewise.
* src/fringe.c: Likewise.
* src/image.c: Likewise.
* src/sound.c: Likewise.
* src/term.c: Likewise.
* src/w32fns.c: Likewise.
* src/w32font.c: Likewise.
* src/w32term.c: Likewise.
* src/xfaces.c: Likewise.
* src/xfns.c: Likewise.
* src/xterm.c: Likewise.
* src/atimer.c: Omit needless casts.
* src/buffer.c: Likewise.
* src/callproc.c: Likewise.
* src/ccl.c: Likewise.
* src/coding.c: Likewise.
* src/composite.c: Likewise.
* src/doc.c: Likewise.
* src/doprnt.c: Likewise.
* src/editfns.c: Likewise.
* src/emacs.c: Likewise.
* src/eval.c: Likewise.
* src/filelock.c: Likewise.
* src/fns.c: Likewise.
* src/gtkutil.c: Likewise.
* src/keyboard.c: Likewise.
* src/lisp.h: Likewise.
* src/lread.c: Likewise.
* src/minibuf.c: Likewise.
* src/msdos.c: Likewise.
* src/print.c: Likewise.
* src/process.c: Likewise.
* src/region-cache.c: Likewise.
* src/search.c: Likewise.
* src/sysdep.c: Likewise.
* src/termcap.c: Likewise.
* src/terminal.c: Likewise.
* src/tparam.c: Likewise.
* src/w16select.c: Likewise.
* src/w32.c: Likewise.
* src/w32reg.c: Likewise.
* src/w32select.c: Likewise.
* src/w32uniscribe.c: Likewise.
* src/widget.c: Likewise.
* src/xdisp.c: Likewise.
* src/xmenu.c: Likewise.
* src/xrdb.c: Likewise.
* src/xselect.c: Likewise.
2012-07-05 10:32:41 +04:00
Paul Eggert
0497dc44b4 * fileio.c (time_error_value): Check the right error number.
Problem reported by Troels Nielsen in
<http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00095.html>.
2012-07-04 21:16:11 -07:00
Glenn Morris
e8d712837d * doc/lispref/intro.texi (A Sample Function Description): Fix cross-refs. 2012-07-04 20:06:50 -07:00