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

94433 commits

Author SHA1 Message Date
Eli Zaretskii
197daef4ab Emulate POSIX_SIGNALS on MS-Windows.
s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
 (SIG_SETMASK, SIG_UNBLOCK): Define.
 sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
 w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask): New stubs.
2010-05-01 21:38:33 +03:00
Eli Zaretskii
d6dae14b94 Emulate POSIX_SIGNALS on MS-Windows.
w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask): New stubs.
 sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
 s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
 (SIG_SETMASK, SIG_UNBLOCK): Define.
2010-05-01 21:28:00 +03:00
Eli Zaretskii
af7c7572ce Fix display of R2L lines and cursor motion in bidi buffers.
xdisp.c (find_row_end): New function, refactored from display_line.
 (display_line): Use it.
 (extend_face_to_end_of_line): In almost-filled rows, extend only
 if the row is R2L and not continued.
 (display_line): Fix prepending of truncation glyphs to R2L rows.
 Preserve overlay and string info in row->end.
 (insert_left_trunc_glyphs): Support addition of left truncation
 glyphs to R2L rows.
 (set_cursor_from_row): Don't place cursor on the vertical border
 glyph between adjacent windows.  Fix a crash when a display string
 is continued to the next line.  Don't return zero if cursor was
 found by `cursor' property of a display string.
 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
 test for that explicitly.
2010-05-01 21:11:20 +03:00
Eli Zaretskii
b47e0dcf2d Fix cursor positioning in partial width windows on TTY.
xdisp.c (set_cursor_from_row): Don't place cursor on the vertical border
 glyph between adjacent windows.
 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
 test for that explicitly.
2010-05-01 18:53:35 +03:00
Eli Zaretskii
166e930d76 Fix display of truncated R2L lines on a TTY.
xdisp.c (display_line): Fix prepending of truncation glyphs to R2L rows.
 (insert_left_trunc_glyphs): Support addition of left truncation glyphs
 to R2L rows.
2010-05-01 16:39:44 +03:00
Eli Zaretskii
017ea81924 Fix display of R2L continued lines in partial-width windows on a TTY.
xdisp.c: (extend_face_to_end_of_line): In almost-filled rows, extend only
 if the row is R2L and not continued.
2010-05-01 13:49:09 +03:00
Michael Albinus
502269d6e7 * tramp.texi (Inline methods, Default Method): Mention
`tramp-inline-compress-start-size'.
2010-05-01 12:08:42 +02:00
Michael Albinus
6a29a838dd Implement compression for inline methods.
* net/tramp.el (tramp-inline-compress-start-size): New defcustom.
(tramp-copy-size-limit): Allow also nil.
(tramp-inline-compress-commands): New defconst.
(tramp-find-inline-compress, tramp-get-inline-compress)
(tramp-get-inline-coding): New defuns.
(tramp-get-remote-coding, tramp-get-local-coding): Removed,
replaced by `tramp-get-inline-coding'.
(tramp-handle-file-local-copy, tramp-handle-write-region)
(tramp-method-out-of-band-p): Use `tramp-get-inline-coding'.
2010-05-01 11:34:14 +02:00
Eli Zaretskii
59ca28de83 Refactor code that determines row->start and row->end.
xdisp.c (find_row_end): New function, refactored from display_line.
 (display_line): Use it.
2010-05-01 11:50:01 +03:00
Glenn Morris
7acac9f4ce Rework previous autoconf changes, hopefully to make clearer.
* configure.in (OTHER_OBJ): Remove.
(PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New output variables.

* configure: Regenerate.

* src/Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
for clarity.
(OTHER_OBJ): Remove.
(PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
(otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2010-04-30 20:04:51 -07:00
Karel Klíc
45841e65c9 * src/fileio.c (Ffile_selinux_context): Context functions may return null. 2010-04-30 19:58:41 -07:00
Chong Yidong
84716442f0 Avoid using trash for certain temp files (Bug#6070).
* server.el (server-sentinel, server-start, server-force-delete):

* jka-compr.el (jka-compr-partial-uncompress)
(jka-compr-call-process, jka-compr-write-region, jka-compr-load):

* epg.el (epg--make-temp-file, epg-decrypt-string)
(epg-encrypt-string, epg-verify-string, epg-sign-string):

* diff.el (diff-sentinel): Bind delete-by-moving-to-trash to nil
before deleting (Bug#6070).
2010-04-30 22:19:40 -04:00
Stefan Monnier
07125a915e * bindings.el (mode-line-abbrev-mode, mode-line-auto-fill-mode): Remove. 2010-04-30 21:39:58 -04:00
Stefan Monnier
f3a4700281 * emacs-lisp/lisp-mode.el (lisp-mode): Use define-derived-mode.
Set find-tag-default-function as a variable rather than a property.
2010-04-30 21:29:12 -04:00
Stefan Monnier
45d6be0a8f Fix commenting convention 2010-04-30 21:27:16 -04:00
Stefan Monnier
8c0bf8b395 * minibuffer.el (tags-completion-at-point-function): Move to etags.el.
* progmodes/etags.el (tags-completion-at-point-function):
Remove left over interactive spec.  Add autoloading stub.
(complete-tag): Use tags-completion-at-point-function.
2010-04-30 21:08:43 -04:00
Chong Yidong
27601456d7 * minibuffer.el (tags-completion-at-point-function): Fix return value. 2010-04-30 19:13:22 -04:00
Dan Nicolaescu
afc619439b * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions. 2010-04-30 13:48:04 -07:00
Glenn Morris
5a1bb006a3 Hopefully fix bug#6065.
* configure.in (OTHER_OBJ): Always include vm-limit.o on Cygwin.
Elsewhere, maybe include it.
* src/Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable.
(OTHER_OBJ): Define as a separate variable, for clarity.

* configure: Regenerate.
2010-04-30 09:37:01 -07:00
Jan D
210af04332 xsettings.c: include limits.h and update file comment. 2010-04-30 15:50:34 +02:00
Eli Zaretskii
4f27f7d260 Fix typos in doc strings of composite.el. 2010-04-30 15:16:13 +03:00
Glenn Morris
718a19c869 Regenerate configure. 2010-04-29 18:54:08 -07:00
Glenn Morris
d5096f16c6 Replace some xmenu cpp with autoconf.
* configure.in (TOOLKIT_LIBW) [HAVE_GTK]: Set to $GTK_LIBS.
(OLDXMENU, LIBXMENU): New output variables.
* src/Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
Set with configure, not cpp.
(LIBW): Remove, replace with $TOOLKIT_LIBW.
2010-04-29 18:50:17 -07:00
Glenn Morris
7eb1ac33ed Replace some cpp with autoconf.
* configure.in (OTHER_OBJ): New output variable.
* src/Makefile.in (mallocobj): Remove.
(otherobj): Simplify using @OTHER_OBJ@.
2010-04-29 18:36:42 -07:00
Glenn Morris
517d086b62 Simplify some manual dependencies in src/Makefile.in.
* src/Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
(keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
Don't bother making nsgui.h dependency platform-specific.
2010-04-29 18:27:33 -07:00
Glenn Morris
0a7df39180 * src/Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency. 2010-04-29 18:18:09 -07:00
Chong Yidong
27d3cd56ca * ido.el (ido-minibuffer-setup): Don't set cua-inhibit-cua-keys (Bug#5765). 2010-04-29 11:41:23 -04:00
Chong Yidong
09d0284d72 * ido.el (ido-init-completion-maps): Remove C-v binding (Bug#5765). 2010-04-29 11:38:08 -04:00
Chong Yidong
3a07ffce2f * minibuffer.el (tags-completion-at-point-function): New function.
(completion-at-point-functions): Use it.

* cedet/semantic.el (semantic-completion-at-point-function): New function.
(semantic-mode): Use semantic-completion-at-point-function for
completion-at-point-functions instead.

* progmodes/etags.el (complete-tag): Revert last change.
2010-04-29 11:32:11 -04:00
Alan Mackenzie
3d14bb734b (progmodes/cc-mode.el) c-extend-region-for-CPP: Fix an off-by-one error
(in end of macro position).
2010-04-29 14:48:32 +00:00
Stefan Monnier
d2630aefd3 Don't burp if process sentinel/filter kills the current buffer.
* process.c (read_process_output, exec_sentinel): Don't burp if the
sentinel/filter kills the current buffer.

Fixes: debbugs:6060
2010-04-29 10:29:09 -04:00
Juanma Barranquero
f9dddf5291 Add bug reference. 2010-04-29 16:23:12 +02:00
Stefan Monnier
7d353d11ce * net/browse-url.el (browse-url-firefox-program): Use iceweasel if
firefox is absent.  Don't autoload.
(browse-url-galeon-program): Don't autoload.
2010-04-29 10:04:33 -04:00
Stefan Monnier
d6d2385247 Fix wrong-docstring problem introduced with hash-consing.
* eval.c (Fautoload): Set doc to a unique number rather than to 0.
Remove unused var `args'.
* lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
(LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
* doc.c (store_function_docstring): Use XSETCAR.
2010-04-29 08:42:01 -04:00
Chong Yidong
a982c7ec49 Document complete-symbol change. 2010-04-28 18:27:54 -04:00
Chong Yidong
48111a8571 Unify complete-symbol with completion-at-point.
* bindings.el (complete-symbol): Move into minibuffer.el.

* minibuffer.el (complete-tag): Move from etags.el.  If tags
completion cannot be performed, return nil instead of signalling
an error.
(completion-at-point): Make it an alias for complete-symbol.
(complete-symbol): Move from bindings.el, and replace with the
body of completion-at-point.

* progmodes/etags.el (complete-tag): Move to minibuffer.el.

* cedet/semantic.el (semantic-mode): When enabled, add
semantic-ia-complete-symbol to completion-at-point-functions.

* cedet/semantic/ia.el (semantic-ia-complete-symbol): Return nil
if Semantic is not active.
2010-04-28 15:04:16 -04:00
Michael Albinus
7ba9470160 * net/tramp.el (tramp-remote-selinux-p): New defun.
(tramp-handle-file-selinux-context)
(tramp-handle-set-file-selinux-context): Use it.
2010-04-28 20:42:20 +02:00
Sam Steingold
95c6cc3eff (bug-reference-url-format): Mark as `safe-local-variable' if the value
is a string or a symbol with the property `bug-reference-url-format'.
2010-04-28 12:14:41 -04:00
Glenn Morris
363a7f8f47 * configure.in (LIBXMU): Fix logic in previous change. 2010-04-28 08:58:29 -07:00
Chong Yidong
36045ff330 Revert last bug-reference-url-format change.
* progmodes/bug-reference.el (bug-reference-url-format): Revert
2010-04-27 change due to security risk.
2010-04-28 11:45:45 -04:00
Stefan Monnier
56924d996f Make it possible to locally disable a globally enabled mode.
* simple.el (fundamental-mode): Run fundamental-mode-hook.
* emacs-lisp/derived.el (define-derived-mode): Use fundamental-mode
rather than kill-all-local-variables so it runs fundamental-mode-hook.
* emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Use fundamental-mode-hook to run MODE-enable-in-buffers earlier, so
that subsequent hooks get a chance to disable it.
2010-04-28 11:18:37 -04:00
Glenn Morris
106c6f7432 Regenerate configure. 2010-04-28 00:33:48 -07:00
Glenn Morris
faf535f8e6 src/Makefile.in minor simplification,
* src/Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
(WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2010-04-28 00:25:47 -07:00
Glenn Morris
c40f944923 Define CYGWIN_OBJ with configure, not cpp.
* configure.in (CYGWIN_OBJ): New output variable.
* src/Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2010-04-28 00:20:39 -07:00
Glenn Morris
658f86ca32 Set GPM part of MOUSE_SUPPORT with configure, not cpp.
* configure.in (GPM_MOUSE_SUPPORT): New output variable.
* src/Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
(MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2010-04-28 00:15:10 -07:00
Glenn Morris
bc0b5f6185 Set FONT_DRIVERS with configure rather than cpp.
* configure.in (FONT_OBJ): New output variable.
* src/Makefile.in (FONT_OBJ): New, set by configure.
(FONT_DRIVERS): Use $FONT_OBJ.
2010-04-28 00:08:53 -07:00
Glenn Morris
294c50a065 Move LIBXMU from cpp to configure.
* configure.in (LIBXMU): New output variable.

* src/Makefile.in (LIBXMU): Set with configure, not cpp.
* src/s/aix4-2.h (LIBXMU):
* src/s/hpux10-20.h (LIBXMU):
Remove definition, now set in configure.
2010-04-28 00:01:43 -07:00
Glenn Morris
e6ec4e9921 Move NS_OBJ, NS_SUPPORT from cpp to configure.
* configure.in (NS_OBJ, NS_SUPPORT): New output variables.
* src/Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2010-04-27 23:54:25 -07:00
Glenn Morris
f1e3642ad5 Missing src/ChangeLog for previous commit. 2010-04-27 23:45:35 -07:00
Glenn Morris
44e3d510df Move test for 64-bit kernel with 32-bit userland to configure.
See discussion in bug#5655.

* configure.in (machine, canonical): On amdx86-64, check for a 32-bit
userland and maybe change values to i386 (move test from s/amdx86-64.h).

* src/m/amdx86-64.h [i386]: Move this test to configure.in.
2010-04-27 23:43:38 -07:00