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
Juanma Barranquero
52331d2c41 lib/makefile.w32-in: Rework dependencies.
(GNU_LIB, NT_INC, C_CTYPE_H, MS_W32_H, CONFIG_H, FILEMODE_H)
(FTOASTR_H, FTOASTR_C, GETOPT_INT_H, MD5_H, SHA1_H, SHA256_H)
(U64_H, SHA512_H): New macros.
(SRC): Redefine to point to src/, not current directory.
($(BLD)/c-ctype.$(O), $(BLD)/c-strcasecmp.$(O))
($(BLD)/c-strncasecmp.$(O), $(BLD)/dtoastr.$(O))
($(BLD)/dtotimespec.$(O), $(BLD)/getopt.$(O), $(BLD)/getopt1.$(O))
($(BLD)/gettime.$(O), $(BLD)/strftime.$(O), $(BLD)/time_r.$(O))
($(BLD)/timespec-add.$(O), $(BLD)/timespec-sub.$(O), $(BLD)/md5.$(O))
($(BLD)/sha1.$(O), $(BLD)/sha256.$(O), $(BLD)/sha512.$(O))
($(BLD)/filemode.$(O)): Update dependencies.
2012-07-09 17:37:43 +02:00
Juanma Barranquero
ad0a19b70e lib-src/emacsclient.c (w32_execvp): Declare execvp to silence the compiler. 2012-07-09 16:01:41 +02:00
Juanma Barranquero
794327722e lib-src/emacsclient.c: Adapt comments to GNU coding standards. 2012-07-09 16:00:31 +02:00
Stefan Monnier
aa7aaf8f0b * lisp/progmodes/sh-script.el (sh-syntax-propertize-function): Fix last
change.

Fixes: debbugs:11826
2012-07-09 09:54:50 -04:00
Juanma Barranquero
5eabd6f001 nt/config.nt: Sync with autogen/config.in. 2012-07-09 15:40:34 +02:00
Dmitry Antipov
a8290ec31c Use make_formatted_string to avoid double length calculation.
* lisp.h (make_formatted_string): New prototype.
* alloc.c (make_formatted_string): New function.
* buffer.c (Fgenerate_new_buffer_name): Use it.
* dbus.c (syms_of_dbusbind): Likewise.
* editfns.c (Fcurrent_time_zone): Likewise.
* filelock.c (get_boot_time): Likewise.
* frame.c (make_terminal_frame, set_term_frame_name)
(x_report_frame_params): Likewise.
* image.c (gs_load): Likewise.
* minibuf.c (get_minibuffer): Likewise.
* msdos.c (dos_set_window_size): Likewise.
* process.c (make_process): Likewise.
* xdisp.c (ensure_echo_area_buffers): Likewise.
* xsettings.c (apply_xft_settings): Likewise.
2012-07-09 16:02:27 +04:00
Glenn Morris
27505cf5e4 Auto-commit of generated files. 2012-07-09 06:17:37 -04:00
Paul Eggert
2f93ecceb9 Merge from gnulib. 2012-07-09 01:34:39 -07:00
Glenn Morris
d01ba2f149 Stop ns builds polluting the environment with EMACSDATA, EMACSDOC
It's bad form for one part of a program to communicate with another
part by making persistent changes to the environment of all subsequent
child processes.  For example, it can cause odd bugs when building
Emacs from within Emacs (eg bug#6401, maybe).

* nsterm.m (ns_etc_directory): New function, split from ns_init_paths.
(ns_init_paths): Do not set EMACSDATA, EMACSDOC.
* nsterm.h (ns_etc_directory): Add it.
* callproc.c [HAVE_NS]: Include nsterm.h.
(init_callproc_1, init_callproc) [HAVE_NS]: Use ns_etc_directory.
2012-07-09 00:07:24 -07:00
Paul Eggert
61a116066f Mention coordinates of recent Autoconf change, thanks to Stefano Lattarini. 2012-07-08 21:58:55 -07:00
Paul Eggert
8d16df0eec Merge from trunk. 2012-07-08 21:56:32 -07:00
Paul Eggert
c4444d16dc Rename configure.in to configure.ac.
Fixes: debbugs:11603
2012-07-08 21:52:49 -07:00
Juanma Barranquero
65e4651590 lib-src/makefile.w32-in: Rework dependencies.
($(BLD)/test-distrib.exe): Use LIB_SRC, not SRC.
(LIB_SRC, NT_INC, GNU_LIB, MS_W32_H, CONFIG_H, INTTYPES_H, NTLIB_H)
(SYSTIME_H): New macros.
(SRC): Redefine to point to src/, not current directory.
($(BLD)/ctags.$(O), $(BLD)/ebrowse.$(O), $(BLD)/emacsclient.$(O))
($(BLD)/etags.$(O), $(BLD)/hexl.$(O), $(BLD)/make-docfile.$(O))
($(BLD)/movemail.$(O), $(BLD)/ntlib.$(O), $(BLD)/pop.$(O))
($(BLD)/profile.$(O), $(BLD)/test-distrib.$(O)): Update dependencies.
($(BLD)/regex.$(O)): New dependency.
2012-07-09 06:21:55 +02:00
Dmitry Antipov
f1f924b619 Move marker debugging code under MARKER_DEBUG.
* marker.c (MARKER_DEBUG): Move marker debugging code under
#ifdef MARKER_DEBUG because byte_char_debug_check is too slow
for bootstrap with --enable-checking (~3x slowdown reported
by Juanma Barranquero <lekktu@gmail.com>).
(verify_bytepos): Move under #ifdef MARKER_DEBUG.
2012-07-09 07:15:10 +04:00
Katsumi Yamaoka
b50e511206 mm-decode.el (mm-shr): Allow overriding charset by mm-charset-override-alist 2012-07-09 02:13:07 +00:00
Juanma Barranquero
31542918c3 lib-src/makefile.w32-in (ALL): Add profile.exe.
(PROFILEOBJS): New macro.
($(BLD)/profile.exe): New target.
(install): Copy profile.exe.
($(BLD)/alloca.$(O), $(BLD)/tcp.$(O)): Remove, obsolete.
2012-07-09 02:59:38 +02:00
Paul Eggert
ab531b66f3 * systime.h (EMACS_SUB_TIME): Clarify behavior with unsigned time_t.
See <http://bugs.gnu.org/11825#29>.
2012-07-08 16:00:38 -07:00
Paul Eggert
0ccb0b0983 Restore deprecation warnings, except for older libpng.
* configure.in (WARN_CFLAGS): Remove -Wno-deprecated-declarations.
(HAVE_LIBPNG_PNG_H): Don't bother checking for this if we have png.h.
(PNG_DEPRECATED): Define when compiling with older PNG versions.
2012-07-08 13:03:56 -07:00
Eli Zaretskii
3434fe8a23 Cleanup changes following fix for bug #11832.
src/ xdisp.c (display_line): Add commentary about displaying 
 truncation glyphs on GUI frames.
 (produce_special_glyphs): Move here from term.c.
 src/term.c (produce_special_glyphs): Move to xdisp.c.
 src/dispextern.h (produce_special_glyphs): Move prototype to xdisp.c
 section.
2012-07-08 19:38:43 +03:00
Eli Zaretskii
c4b3bc8aaf Fix bug #11813 with invalid font for buffer name on the modeline.
src/xdisp.c (fill_glyphless_glyph_string): If the face of the glyph
 has no font, use the frame's font.
2012-07-08 18:49:39 +03:00
Juanma Barranquero
9d6fa7c706 nt/config.nt (BROKEN_SA_RESTART): Fix comment. 2012-07-08 16:58:24 +02:00
Glenn Morris
fd9d2a9d08 Auto-commit of generated files. 2012-07-08 06:18:44 -04:00
Chong Yidong
01ac65bd7c Fix interaction of line-dragging with mouse-1-click-follows-link.
* lisp/mouse.el (mouse-drag-line): Rewrite the track-mouse loop.
Implement the mouse-1-click-follows-link handling properly.

* lisp/info.el (Info-link-keymap): Use follow-link mechanism for
header-line links.

Fixes: debbugs:374
2012-07-08 16:26:21 +08:00
Chong Yidong
d75be97d54 Do not steal primary selection on mark deactivation.
* lisp/simple.el (deactivate-mark): Do not set the primary selection
if another program has acquired it.

Fixes: debbugs:11772
2012-07-08 14:09:21 +08:00
Juanma Barranquero
1ac8b55c0c etc/tutorials/TUTORIAL.es: Sync with changes in 2012-07-07T10:34:37Z!cyd@gnu.org. 2012-07-08 02:48:27 +02:00
Juanma Barranquero
090bd7cb34 Fix ChangeLog typos. 2012-07-08 01:16:19 +02:00
Andreas Schwab
f17c527307 * xdisp.c (display_line): Avoid warning about implicit declaration
of FRAME_FONT.
2012-07-07 23:39:45 +02:00
Andreas Schwab
298819b917 * frame.c (get_frame_param): Define only if HAVE_WINDOW_SYSTEM. 2012-07-07 23:39:23 +02:00
Andreas Schwab
b676b881b2 * lisp.h: Remove empty conditional. 2012-07-07 23:39:23 +02:00
Andreas Schwab
4da41f1c10 * configure.in (WARN_CFLAGS): Add -Wno-deprecated-declarations. 2012-07-07 22:32:41 +02:00
Juanma Barranquero
dffdc540e2 nt/config.nt (HAVE_STRCASECMP, HAVE_STRNCASECMP): Remove. 2012-07-07 22:26:48 +02:00
Paul Eggert
b3350bf9c0 * lread.c (load_path_check): Now static. 2012-07-07 12:33:28 -07:00
Paul Eggert
6045c4fdb8 Improve static checking when configured --with-ns.
See Samuel Bronson's remarks in
<http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00146.html>.
* configure.in (WARN_CFLAGS): Omit -Wunreachable-code, as it's
a no-op with recent GCC and harmful in earlier ones.
Omit -Wsync-nand, as it's irrelevant to Emacs and provokes a
warning when compiling with ObjC.  Always omit
-Wunsafe-loop-optimizations, as we don't mind when optimization is
being done correctly.

Fix some minor --with-ns problems found by static checking.
* src/frame.c (Ftool_bar_pixel_width) [!FRAME_TOOLBAR_WIDTH]:
(x_set_font) [!HAVE_X_WINDOWS]:
* src/image.c (xpm_load_image) [HAVE_NS]:
(x_to_xcolors) [!HAVE_X_WINDOWS && !HAVE_NTGUI]:
(x_disable_image) [!HAVE_NS && !HAVE_NTGUI]:
Remove unused local.
(Fx_parse_geometry) [HAVE_NS]: Don't return garbage.
(xpm_load_image) [HAVE_NS && !HAVE_XPM]: Remove unused label.
* src/image.c (x_create_bitmap_from_file) [HAVE_NS]:
(xpm_load_image, xpm_load) [HAVE_NS && !HAVE_XPM]:
* src/nsselect.m (symbol_to_nsstring, ns_string_to_pasteboard_internal):
* src/xfaces.c (Fx_load_color_file) [!HAVE_X_WINDOWS]:
Fix pointer signedness problem.
* src/xfaces.c (FRAME_X_FONT_TABLE):
* src/xterm.h (FRAME_X_FONT_TABLE): Remove unused, incompatible macros.
2012-07-07 12:23:41 -07:00
Glenn Morris
41f9404e0c * configure.in (BROKEN_SA_RESTART): Doc fix.
* src/sysdep.c, src/s/irix6-5.h: Related comments.
2012-07-07 11:16:15 -07:00
Glenn Morris
929e784574 Try to simplify the initialization of Vload_path
* src/lread.c (load_path_check): New function, split from init_lread.
(init_lread): Reorganize.  Motivation:
If EMACSLOADPATH is set, check/warn about that rather than the
defaults, which we are not going to use.  Hence we can remove
the turn_off_warning and WINDOWSNT || HAVE_NS tests.
Don't warn if site-lisp directories are missing.
If not installed, start from a blank load-path, since
PATH_LOADSEARCH refers to the eventual installation directories.
2012-07-07 11:06:32 -07:00
Eli Zaretskii
58dd0aa4c5 Fix bug #11832 with truncated lines when fringes are disabled on GUI frames.
src/xdisp.c (init_iterator): Get dimensions of truncation and
 continuation glyphs even if on GUI frames.  Adjust
 it->last_visible_x on GUI frames when the left or right fringes,
 or both, are absent.
 (start_display, move_it_in_display_line_to): Handle the case of a
 GUI frame without a fringe to display continuation or truncation
 glyphs.
 (insert_left_trunc_glyphs): Support GUI frames: make sure
 truncation glyphs overwrite enough glyphs from the current line to
 have sufficient space in pixels.
 (display_line): Support truncation and continuation glyphs on GUI
 frames.  If some spare pixels are left on the line after inserting
 the truncation glyphs, fill that space with a stretch glyph of a
 suitably computed width.
 src/term.c (produce_special_glyphs): Call PRODUCE_GLYPHS, not
 produce_glyphs, to support GUI sessions.
2012-07-07 19:36:02 +03:00
Bastien Guerry
8a70567414 Update etc/tutorials/TUTORIAL.fr to reflect changes from 2012-07-07T10:34:37Z!cyd@gnu.org. 2012-07-07 16:37:47 +02:00
Michael Witten
95486d4692 * tutorials/TUTORIAL: Copyedits.
Fixes: debbugs:11689
2012-07-07 18:34:37 +08:00
Glenn Morris
938a4ef926 Auto-commit of generated files. 2012-07-07 06:17:27 -04:00
Kevin Ryde
87a92845e7 * woman.el (woman2-process-escapes): Handle nofill regions.
Fixes: debbugs:11591
2012-07-07 18:10:47 +08:00
Kevin Ryde
f0ecdfeaae * woman.el (woman-strings): Fix double-quote handling.
(woman-decode-region): Replace escaped-escapes without destroying
bold or underline.

Fixes: debbugs:1151
2012-07-07 18:06:38 +08:00
Chong Yidong
ab4c47d382 Add "site-lisp" to manual indices.
* custom.texi (Init File): Index site-lisp.

* doc/lispref/loading.texi (Library Search): Index site-lisp directories.

Fixes: debbugs:11435
2012-07-07 17:51:59 +08:00
Chong Yidong
621b9d6c7e * lisp/simple.el (yank-pop-change-selection): Doc fix.
(interprogram-cut-function, interprogram-paste-function): Mention
that we typically mean the clipboard.

Fixes: debbugs:11361
2012-07-07 17:33:28 +08:00
Paul Eggert
5a16b9bc1d * sysdep.c (ULLONG_MAX): Define if not already defined.
Fixes: debbugs:11781
2012-07-06 20:06:00 -07:00
Paul Eggert
f3047c750d * sysdep.c (list_system_processes): Port to NetBSD-current.
Fixes: debbugs:11797
2012-07-06 19:25:28 -07:00
Paul Eggert
31571fd712 Do not require float-time's arg to fit in time_t (Bug#11825).
This works better on hosts where time_t is unsigned, and where
float-time is applied to the (negative) difference between two times.
* editfns.c (decode_time_components): Last arg is now double *,
not int *, and means to store all the result as a double, without
worrying about whether the seconds part fits in time_t.
All callers changed.
(lisp_time_argument): Remove last int * arg, as it's no longer needed.
All callers changed.
(Ffloat_time): Do not fail merely because the specified time falls
outside of time_t range.
2012-07-06 18:57:42 -07:00
Glenn Morris
4516fbef72 Replace some src/s undefs by never even checking on relevant platforms
* configure.in: (getwd): Don't check for it on unixware.
(random, rint): Don't check for these on hpux.
(res_init, libresolv): Don't check for these on darwin.

* src/s/darwin.h (HAVE_RES_INIT, HAVE_LIBRESOLV):
* src/s/hpux10-20.h (HAVE_RINT, HAVE_RANDOM):
* src/s/unixware.h (HAVE_GETWD): Move undefs to configure (effectively).
2012-07-06 21:03:46 -04:00
Juanma Barranquero
07adc2c63b Update Windows port to gnulib changes in 2012-07-06T21:07:46Z!eggert@cs.ucla.edu.
* lib-src/makefile.w32-in ($(BLD)/ctags.$(O), $(BLD)/etags.$(O)):
Update dependencies.

* lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/c-ctype.$(O),
$(BLD)/c-strcasecmp.$(O) and $(BLD)/c-strncasecmp.$(O).
($(BLD)/c-ctype.$(O), $(BLD)/c-strcasecmp.$(O))
($(BLD)/c-strncasecmp.$(O)): New dependencies.

* src/makefile.w32-in (DISPEXTERN_H, $(BLD)/regex.$(O)):
Update dependencies.

* src/s/ms-w32.h [_MSC_VER]: Remove strcasecmp, strncasecmp.
2012-07-07 02:20:56 +02:00
Paul Eggert
82fd0d8bed Add gnulib files for Bug#11786 fix. 2012-07-06 15:19:44 -07:00
Glenn Morris
0d27a45e58 * lisp/kmacro.el (kmacro-call-macro): Restore repeat message. (Bug#11817) 2012-07-06 17:34:49 -04:00