1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-03 22:20:52 -08:00
Commit graph

106480 commits

Author SHA1 Message Date
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
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