bpt/emacs.git
10 years agoMake some old emulation modes obsolete
Glenn Morris [Mon, 2 Jun 2014 01:02:21 +0000 (18:02 -0700)]
Make some old emulation modes obsolete

Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-05/msg00502.html

* lisp/emulation/crisp.el, lisp/emulation/tpu-edt.el:
* lisp/emulation/tpu-extras.el, lisp/emulation/tpu-mapper.el:
* lisp/emulation/vi.el, lisp/emulation/vip.el, lisp/emulation/ws-mode.el:
Move to obsolete/.

* doc/emacs/ack.texi (Acknowledgments): Remove some obsolete items.

* doc/emacs/misc.texi (Emulation): Remove section.

* doc/lispintro/emacs-lisp-intro.texi (Autoload): Update loaddefs.el details.

* doc/misc/efaq.texi (Finding a package with particular functionality):
Update example.

* doc/misc/vip.texi: Mention this is obsolete.

* etc/NEWS: Mention this.

10 years agoMerge from emacs-24; up to 2014-05-29T17:16:00Z!dmantipov@yandex.ru
Glenn Morris [Mon, 2 Jun 2014 00:18:22 +0000 (17:18 -0700)]
Merge from emacs-24; up to 2014-05-29T17:16:00Z!dmantipov@yandex.ru

10 years agoMerge from gnulib.
Paul Eggert [Sun, 1 Jun 2014 23:58:38 +0000 (16:58 -0700)]
Merge from gnulib.

This incorporates:
2014-06-02 acl: apply pure attribute to two functions
2014-06-01 gnulib-common.m4: add _GL_UNUSED_LABEL
2014-05-31 dup2, fcntl, fcntl-h: port to AIX 7.1
2014-05-30 ftoastr: work around compiler bug in IBM xlc 12.1
* lib/acl-internal.h, lib/fcntl.in.h, lib/ftoastr.h:
* m4/dup2.m4, m4/fcntl.m4, m4/gnulib-common.m4:
Update from gnulib.

10 years agoSpelling fix in ChangeLog entry.
Paul Eggert [Sun, 1 Jun 2014 23:37:59 +0000 (16:37 -0700)]
Spelling fix in ChangeLog entry.

10 years agoPort signal-handling to DragonFly BSD.
Paul Eggert [Sun, 1 Jun 2014 23:17:56 +0000 (16:17 -0700)]
Port signal-handling to DragonFly BSD.

* callproc.c, sysdep.c (block_child_signal, unblock_child_signal):
Move implementations from callproc.c to sysdep.c.
* process.h, syssignal.h (block_child_signal, unblock_child_signal):
Move declaratations from process.h to syssignal.h.

Fixes: debbugs:17646

10 years ago* configure.ac: Raise HEAPSIZE value for 32-bit builds on Windows.
Juanma Barranquero [Sun, 1 Jun 2014 21:27:53 +0000 (23:27 +0200)]
* configure.ac: Raise HEAPSIZE value for 32-bit builds on Windows.

10 years ago* frame.c (x_set_frame_parameters): Don't read uninitialized storage.
Paul Eggert [Sun, 1 Jun 2014 18:49:52 +0000 (11:49 -0700)]
* frame.c (x_set_frame_parameters): Don't read uninitialized storage.

10 years agoMake jump scroll work with Gtk+
Jan Djärv [Sun, 1 Jun 2014 18:00:56 +0000 (20:00 +0200)]
Make jump scroll work with Gtk+

* xterm.c (xg_scroll_callback): Remove position, for jump set portion
to min(value, whole).

10 years agosrc/callint.c (Ffuncall_interactively): Add usage.
Juanma Barranquero [Sun, 1 Jun 2014 16:25:19 +0000 (18:25 +0200)]
src/callint.c (Ffuncall_interactively): Add usage.

10 years ago* tramp-tests.el (tramp-test29-vc-registered):
Michael Albinus [Sun, 1 Jun 2014 16:16:26 +0000 (18:16 +0200)]
* tramp-tests.el (tramp-test29-vc-registered):
Add more instrumentation code.

10 years agosrc/w32heap.c (realloc_before_dump): Improve commentary.
Eli Zaretskii [Sun, 1 Jun 2014 15:54:56 +0000 (18:54 +0300)]
src/w32heap.c (realloc_before_dump): Improve commentary.

10 years agoFix bug #17615 with C-g during macro definition.
Eli Zaretskii [Sun, 1 Jun 2014 15:19:14 +0000 (18:19 +0300)]
Fix bug #17615 with C-g during macro definition.

 lisp/simple.el (keyboard-quit): Force update of mode lines, to remove
 the "Def" indicator, if we were defining a macro.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Sun, 1 Jun 2014 11:22:53 +0000 (07:22 -0400)]
Auto-commit of loaddefs files.

10 years ago* automated/tramp-tests.el (tramp-test29-vc-registered):
Michael Albinus [Sun, 1 Jun 2014 10:49:45 +0000 (12:49 +0200)]
* automated/tramp-tests.el (tramp-test29-vc-registered):
Instrument failed test case.

10 years agoRevert last patch. The problem happens in the trunk.
Michael Albinus [Sun, 1 Jun 2014 10:38:09 +0000 (12:38 +0200)]
Revert last patch.  The problem happens in the trunk.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Sun, 1 Jun 2014 10:22:49 +0000 (06:22 -0400)]
Auto-commit of loaddefs files.

10 years ago* tramp-tests.el (tramp-test29-vc-registered):
Michael Albinus [Sun, 1 Jun 2014 09:33:57 +0000 (11:33 +0200)]
* tramp-tests.el (tramp-test29-vc-registered):
Instrument failed test case.

10 years ago* automated/tramp-tests.el (tramp-test29-vc-registered):
Michael Albinus [Sun, 1 Jun 2014 09:33:24 +0000 (11:33 +0200)]
* automated/tramp-tests.el (tramp-test29-vc-registered):
Instrument failed test case.

10 years ago* nsfns.m (ns_appkit_version_str): Add os version for Cocoa.
Jan Djärv [Sun, 1 Jun 2014 08:23:18 +0000 (10:23 +0200)]
* nsfns.m (ns_appkit_version_str): Add os version for Cocoa.

10 years agoBring back the changes to GDB-visible symbols, but only on AIX.
Paul Eggert [Sun, 1 Jun 2014 07:06:28 +0000 (00:06 -0700)]
Bring back the changes to GDB-visible symbols, but only on AIX.

And only if it's not pre-4.2 GCC.
* lisp.h (ENUMABLE, DEFINE_GDB_SYMBOL_ENUM): New macros.
(ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK): Use them.
(ARRAY_MARK_FLAG_val, PSEUDOVECTOR_FLAG_val, VALMASK_val):
New macros.

10 years ago* loadup.el (load-prefer-newer): Set non-nil when dumping.
Glenn Morris [Sun, 1 Jun 2014 02:36:40 +0000 (19:36 -0700)]
* loadup.el (load-prefer-newer): Set non-nil when dumping.
--eval doesn't work (or not early enough) during dumping.
Making load-prefer-newer non-nil by default would be simpler...

Fixes: debbugs:17629

10 years ago* lisp/minibuffer.el (minibuffer-force-complete-and-exit):
Stefan Monnier [Sun, 1 Jun 2014 02:24:23 +0000 (22:24 -0400)]
* lisp/minibuffer.el (minibuffer-force-complete-and-exit):
Obey minibuffer-default.

Fixes: debbugs:17545

10 years ago* lisp/progmodes/js.el (js-indent-line): Don't mix columns and chars.
Stefan Monnier [Sun, 1 Jun 2014 01:53:04 +0000 (21:53 -0400)]
* lisp/progmodes/js.el (js-indent-line): Don't mix columns and chars.

Fixes: debbugs:17619

10 years ago* lisp/subr.el (set-transient-map): Don't wait for some "nested"
Stefan Monnier [Sat, 31 May 2014 20:02:47 +0000 (16:02 -0400)]
* lisp/subr.el (set-transient-map): Don't wait for some "nested"
transient-map to finish if we're only supposed to be active for
the next command.

Fixes: debbugs:17642

10 years agoHopefully fix bug #16433 with corruption of newline_cache in Rmail.
Eli Zaretskii [Sat, 31 May 2014 18:23:53 +0000 (21:23 +0300)]
Hopefully fix bug #16433 with corruption of newline_cache in Rmail.

 src/fileio.c (Finsert_file_contents): Call prepare_to_modify_buffer
 with PT, not GPT.

10 years ago* emacs-lisp/gv.el (window-buffer, window-display-table)
Leo Liu [Sat, 31 May 2014 15:43:43 +0000 (23:43 +0800)]
* emacs-lisp/gv.el (window-buffer, window-display-table)
(window-dedicated-p, window-hscroll, window-point, window-start):
Fix gv-expander.

Fixes: debbugs:17630

10 years agoRevert revision 2014-05-27T17:31:17Z!eliz@gnu.org, as it breaks debugging with GCC...
Eli Zaretskii [Sat, 31 May 2014 13:24:45 +0000 (16:24 +0300)]
Revert revision 2014-05-27T17:31:17Z!eliz@gnu.org, as it breaks debugging with GCC 3.x.

 Revert last changes to GDB-visible symbols.
 src/lisp.h (ENUMABLE, DEFINE_GDB_SYMBOL_ENUM): Delete macros.
 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK): Don't use them.
 (ARRAY_MARK_FLAG_val, PSEUDOVECTOR_FLAG_val, VALMASK_val):
 Delete macros.

10 years ago* lisp/mouse.el (mouse-posn-property): Ignore posn-point for mode-line
Stefan Monnier [Sat, 31 May 2014 12:32:36 +0000 (08:32 -0400)]
* lisp/mouse.el (mouse-posn-property): Ignore posn-point for mode-line
clicks.

Fixes: debbugs:17633

10 years ago* src/cmds.c (Fself_insert_command): Allow zero repeat count.
Glenn Morris [Sat, 31 May 2014 02:53:29 +0000 (19:53 -0700)]
* src/cmds.c (Fself_insert_command): Allow zero repeat count.

Fixes: debbugs:17649

10 years ago* lisp/files.el (locate-dominating-file): Expand file argument.
Glenn Morris [Sat, 31 May 2014 02:27:22 +0000 (19:27 -0700)]
* lisp/files.el (locate-dominating-file): Expand file argument.

Fixes: debbugs:17641

10 years ago* lisp/subr.el (sit-for): Add comment with a short history.
Stefan Monnier [Sat, 31 May 2014 02:13:13 +0000 (22:13 -0400)]
* lisp/subr.el (sit-for): Add comment with a short history.

10 years ago* lisp/leim/quail/latin-pre.el ("latin-2-prefix"): Use ",," rather than ", "
Stefan Monnier [Sat, 31 May 2014 01:01:19 +0000 (21:01 -0400)]
* lisp/leim/quail/latin-pre.el ("latin-2-prefix"): Use ",," rather than ", "
for the single comma, since ", " is *very* common in normal French text.

Fixes: debbugs:17643

10 years ago* lisp/loadup.el: Treat `command-line-args' more flexibly.
Glenn Morris [Fri, 30 May 2014 23:50:09 +0000 (19:50 -0400)]
* lisp/loadup.el: Treat `command-line-args' more flexibly.

This makes it easier to add --eval ... etc to the command-line without
messing things up due to changed argument numbers.

10 years agoFix port to 32-bit AIX with xlc.
Paul Eggert [Fri, 30 May 2014 20:19:29 +0000 (13:19 -0700)]
Fix port to 32-bit AIX with xlc.

This doesn't fix Bug#17598, but it does fix a regression since Emacs
built with xlc until recently, and perhaps it'll help us fix Bug#17598.
* configure.ac (GC_SETJMP_WORKS): Define for AIX, too.
Merge from gnulib, incorporating:
2014-05-30 ftoastr: work around compiler bug in IBM xlc 12.1
* lib/ftoastr.c: Update from gnulib.
* src/alloc.c (gdb_make_enums_visible): Remove FLOAT_TO_STRING_BUFSIZE.
* src/conf_post.h (FLEXIBLE_ARRAY_MEMBER) [__IBMC__]: Don't define to empty.
* src/lisp.h (FLOAT_TO_STRING_BUFSIZE): Make it a macro, instead of an enum,
to work around a compiler bug in IBM xlc 12.1.

10 years agoGuard (looking-at "\\s!") from XEmacs.
Alan Mackenzie [Fri, 30 May 2014 17:06:53 +0000 (17:06 +0000)]
Guard (looking-at "\\s!") from XEmacs.
progmodes/cc-engine.el (c-state-pp-to-literal): add guard form.

10 years agoUse common string allocation and freeing functions where applicable.
Dmitry Antipov [Fri, 30 May 2014 13:22:29 +0000 (17:22 +0400)]
Use common string allocation and freeing functions where applicable.
* lwlib.h (safe_strdup): Remove prototype.
* lwlib.c (safe_strdup, safe_free_str): Remove.
(copy_widget_value_tree, allocate_widget_info, free_widget_info):
(merge_widget_value): Prefer xstrdup, xfree and dupstring.
* lwlib-Xm.c (make_destroyed_instance, xm_update_one_value): Ditto.

10 years agoFix bug #17560 with backward-incompatible API change in rmail-delete-*.
Ken Olum [Fri, 30 May 2014 09:33:43 +0000 (12:33 +0300)]
Fix bug #17560 with backward-incompatible API change in rmail-delete-*.

 lisp/mail/rmail.el (rmail-delete-forward, rmail-delete-backward): The
 argument COUNT is now optional, to be more backward-compatible.
 Doc fix.

 etc/NEWS: Document the API change.

10 years agoEnhance error checking in heap allocation routines on MS-Windows.
Eli Zaretskii [Fri, 30 May 2014 09:02:55 +0000 (12:02 +0300)]
Enhance error checking in heap allocation routines on MS-Windows.

 src/w32heap.c (malloc_before_dump, malloc_after_dump)
 (malloc_before_dump, realloc_after_dump, realloc_before_dump)
 (mmap_alloc, mmap_realloc): Check for errors more thoroughly and
 set errno where appropriate to emulate CRT functions.

10 years agoDebugging facility to check whether 'const char *' points to
Dmitry Antipov [Fri, 30 May 2014 07:40:29 +0000 (11:40 +0400)]
Debugging facility to check whether 'const char *' points to
relocatable data of non-pure Lisp string.
* alloc.c (maybe_lisp_pointer): New function, refactored out of ...
(mark_maybe_pointer): ... adjusted user.
(relocatable_string_data_p): New function.
* lisp.h (relocatable_string_data_p): Add prototype.
* xdisp.c (message_with_string): If ENABLE_CHECKING, make sure
the pointer to relocatable Lisp data is not used.

10 years agoFix typo in previous
Glenn Morris [Fri, 30 May 2014 05:15:29 +0000 (22:15 -0700)]
Fix typo in previous

10 years agopackage.el: Fix some version tags
Glenn Morris [Fri, 30 May 2014 05:08:10 +0000 (22:08 -0700)]
package.el: Fix some version tags

* lisp/emacs-lisp/package.el (package-check-signature)
(package-unsigned-archives): Fix :version.

10 years agoDon't let SIGINT handling block SIGCHLD indefinitely.
Paul Eggert [Fri, 30 May 2014 04:12:08 +0000 (21:12 -0700)]
Don't let SIGINT handling block SIGCHLD indefinitely.

* atimer.c (block_atimers):
* callproc.c (block_child_signal): Block SIGINT too;
otherwise, its handler might now unblock signals that it shouldn't.
* keyboard.c (read_char): Clear signal mask, since we may
be in a SIGINT handler, and many signals may be masked.
* keyboard.c (handle_interrupt):
* sysdep.c (handle_arith_signal):
Clear signal mask instead of just unblocking the signal that
was received, since several signals may be blocked at this point.

Fixes: debbugs:17561

10 years ago* configure.ac (pthread_sigmask): Look in LIB_PTHREAD too.
Paul Eggert [Thu, 29 May 2014 23:13:32 +0000 (16:13 -0700)]
* configure.ac (pthread_sigmask): Look in LIB_PTHREAD too.

Fixes configuration glitch found in <http://bugs.gnu.org/17561#59>.

10 years agoImprove non-interactive use of whitespace reporting
Reuben Thomas [Thu, 29 May 2014 22:51:47 +0000 (23:51 +0100)]
Improve non-interactive use of whitespace reporting

  whitespace.el (whitespace-report-region): Allow report-if-bogus to take
  the value `never', for non-interactive use.

10 years agoImprove documentation for whitespace-report{,-region}
Reuben Thomas [Thu, 29 May 2014 22:43:26 +0000 (23:43 +0100)]
Improve documentation for whitespace-report{,-region}

        * whitespace.el (whitespace-report-region): Simplify
        documentation.
        (whitespace-report): Refer to whitespace-report-region's
        documentation.

This commit message also covers the previous commit, which was erroneously
committed with the log message "."; sorry.

10 years ago.
Reuben Thomas [Thu, 29 May 2014 22:38:02 +0000 (23:38 +0100)]
.

10 years agoDon't imply that `quoting' is required.
Paul Eggert [Thu, 29 May 2014 22:24:49 +0000 (15:24 -0700)]
Don't imply that `quoting' is required.

10 years ago* admin/notes/changelogs: Mention `quoting'.
Glenn Morris [Thu, 29 May 2014 19:49:45 +0000 (15:49 -0400)]
* admin/notes/changelogs: Mention `quoting'.

10 years agont/ChangeLog: Fix last entry.
Eli Zaretskii [Thu, 29 May 2014 19:19:18 +0000 (22:19 +0300)]
nt/ChangeLog: Fix last entry.

10 years agoRemove nt/addsection.c and don't build addsection.exe.
Eli Zaretskii [Thu, 29 May 2014 19:16:32 +0000 (22:16 +0300)]
Remove nt/addsection.c and don't build addsection.exe.

 configure.ac (ADDSECTION, TEMACS_POST_LINK): Don't compute,
 unused.

 nt/Makefile.in (DONT_INSTALL): Now empty.
 (addsection${EXEEXT}): Remove target.
 nt/addsection.c: File removed.

 src/Makefile.in (TEMACS_POST_LINK): Remove target.
 (emacs$(EXEEXT)): Remove $(ADDSECTION) from prerequisites.
 (temacs$(EXEEXT)): Remove $(TEMACS_POST_LINK) from the recipe.

10 years ago* xmenu.c (xdialog_show): Remove prototype, rename to
Dmitry Antipov [Thu, 29 May 2014 17:16:00 +0000 (21:16 +0400)]
* xmenu.c (xdialog_show): Remove prototype, rename to
x_dialog_show, remove 2nd arg because it's always zero
and simplify accordingly.
(xw_popup_dialog): Adjust user.
* w32menu.c (w32_dialog_show): Adjust prototype, remove
2nd arg because it's always zero and simplify accordingly.
(w32_popup_dialog): Adjust user.

10 years agosrc/ChangeLog: Fix a recent log entry.
Eli Zaretskii [Thu, 29 May 2014 17:15:02 +0000 (20:15 +0300)]
src/ChangeLog: Fix a recent log entry.

10 years agoFix bug #17588 with mouse highlight when an X frame is redisplayed frequently.
Eli Zaretskii [Thu, 29 May 2014 16:47:49 +0000 (19:47 +0300)]
Fix bug #17588 with mouse highlight when an X frame is redisplayed frequently.

 src/xterm.c (x_update_window_end): Don't invalidate the entire
 mouse-highlight info, just signal frame_up_to_date_hook that mouse
 highlight needs to be redisplayed.

10 years ago* lisp/subr.el (sit-for): Don't run input-methods.
Stefan Monnier [Thu, 29 May 2014 16:38:01 +0000 (12:38 -0400)]
* lisp/subr.el (sit-for): Don't run input-methods.

Fixes: debbugs:15614

10 years ago* lisp/subr.el (sit-for): Remove universal-arg dependency.
Stefan Monnier [Thu, 29 May 2014 15:36:09 +0000 (11:36 -0400)]
* lisp/subr.el (sit-for): Remove universal-arg dependency.

10 years agoAdd diagnostics for using private heap on MS-Windows during dumping.
Eli Zaretskii [Thu, 29 May 2014 15:21:08 +0000 (18:21 +0300)]
Add diagnostics for using private heap on MS-Windows during dumping.

 src/w32heap.c (report_temacs_memory_usage): New function.
 src/unexw32.c (unexec) [ENABLE_CHECKING]: Call report_temacs_memory_usage.
 src/w32heap.h (report_temacs_memory_usage): Add prototype.

10 years agoDon't substitute sigprocmask for pthread_sigmask.
Paul Eggert [Thu, 29 May 2014 15:05:06 +0000 (08:05 -0700)]
Don't substitute sigprocmask for pthread_sigmask.

sigprocmask isn't portable in a multithreaded process.
* configure.ac (gl_THREADLIB): Remove dummy.
Merge from gnulib, incorporating:
2014-05-28 pthread_sigmask, timer-time: use gl_THREADLIB only if needed
* m4/pthread_sigmask.m4, m4/timer_time.m4: Update from gnulib.
* src/Makefile.in (LIB_PTHREAD_SIGMASK): Remove; all uses removed.

Fixes: debbugs:17561

10 years agoFix bug #17622 with crashes in mmap routines.
Eli Zaretskii [Thu, 29 May 2014 14:52:47 +0000 (17:52 +0300)]
Fix bug #17622 with crashes in mmap routines.

 src/buffer.c (init_buffer): Accept an argument 'initialized'.
 [USE_MMAP_FOR_BUFFERS]: If 'initialized' is non-zero, reset
 mmap_regions and mmap_fd, to avoid referencing stale data from the
 dump phase.  Add an assertion for buffer text of buffers created
 in temacs before this function is called.
 (mmap_regions_1, mmap_fd_1): Remove unused variables.
 src/lisp.h (init_buffer): Update prototype.
 src/emacs.c (main): Pass 'initialized' as the argument to init_buffer.

10 years ago* alloc.c (Fgarbage_collect): Fix compilation with
Dmitry Antipov [Thu, 29 May 2014 08:02:58 +0000 (12:02 +0400)]
* alloc.c (Fgarbage_collect): Fix compilation with
GC_MARK_STACK == GC_USE_GCPROS_AS_BEFORE.

10 years agoDo not mention individual ns options in the manual
Glenn Morris [Thu, 29 May 2014 06:15:48 +0000 (23:15 -0700)]
Do not mention individual ns options in the manual

* doc/emacs/macos.texi (Mac / GNUstep Customization): Mention ns custom group.
(Customization options specific to Mac OS / GNUstep): Remove section.

* etc/NEWS: Related markup.

10 years ago* test/automated/ruby-mode-test.el (ruby-assert-face): Fix typo in previous
Glenn Morris [Thu, 29 May 2014 05:55:57 +0000 (22:55 -0700)]
* test/automated/ruby-mode-test.el (ruby-assert-face): Fix typo in previous

10 years agoPort the GDB-visible symbols to AIX.
Paul Eggert [Thu, 29 May 2014 05:31:43 +0000 (22:31 -0700)]
Port the GDB-visible symbols to AIX.

Without them, GDB doesn't work to debug Emacs, since the AIX linker
optimizes away the relevant external symbols.  Use enums instead;
this suffices for the AIX port, which is 32-bit-only anyway.
* lisp.h (ENUMABLE, DEFINE_GDB_SYMBOL_ENUM): New macros.
(ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK): Use them.
(ARRAY_MARK_FLAG_val, PSEUDOVECTOR_FLAG_val, VALMASK_val):
New macros.

10 years ago* frame.c, frame.h (frame_char_to_pixel_position)
Paul Eggert [Thu, 29 May 2014 04:47:01 +0000 (21:47 -0700)]
* frame.c, frame.h (frame_char_to_pixel_position)

(frame_set_mouse_position): Now static, and made private in
frame.c rather than public in frame.h.

10 years ago* lisp/whitespace.el: Use font-lock-flush. Minimize refontifications.
Stefan Monnier [Thu, 29 May 2014 03:54:37 +0000 (23:54 -0400)]
* lisp/whitespace.el: Use font-lock-flush.  Minimize refontifications.
Side benefit: it works without jit-lock.
(whitespace-point--used): New buffer-local var.
(whitespace-color-on): Initialize it and flush it.  Use font-lock-flush.
(whitespace-color-off): Use font-lock-flush.
(whitespace-point--used, whitespace-point--flush-used): New functions.
(whitespace-trailing-regexp, whitespace-empty-at-bob-regexp)
(whitespace-empty-at-eob-regexp): Use them.
(whitespace-post-command-hook): Rewrite.

10 years ago* lisp/font-lock.el (font-lock-flush, font-lock-ensure): New functions.
Stefan Monnier [Thu, 29 May 2014 03:45:29 +0000 (23:45 -0400)]
* lisp/font-lock.el (font-lock-flush, font-lock-ensure): New functions.
(font-lock-fontify-buffer): Mark interactive-only.
(font-lock-multiline, font-lock-fontified, font-lock-set-defaults):
Make buffer-local.
(font-lock-specified-p): Remove redundant boundp check.
(font-lock-flush-function, font-lock-ensure-function): New vars.
(font-lock-turn-on-thing-lock): Set them.
(font-lock-default-fontify-buffer): Obey font-lock-dont-widen.
(font-lock-after-change-function): Make `old-len' optional.
(font-lock-set-defaults): Remove redundant `set' of font-lock-defaults.
Call font-lock-flush, just in case.
* lisp/progmodes/verilog-mode.el (verilog-preprocess): Disable workaround in
recent Emacsen.
* lisp/progmodes/vera-mode.el (vera-fontify-buffer): Declare obsolete.
(vera-mode-map, vera-mode-menu): Remove bindings to it.
* lisp/progmodes/idlw-help.el (idlwave-help-fontify): Use font-lock-ensure
and with-syntax-table.
* lisp/textmodes/conf-mode.el (conf-quote-normal):
* lisp/progmodes/sh-script.el (sh-set-shell):
* lisp/progmodes/prog-mode.el (prettify-symbols-mode):
* lisp/progmodes/f90.el (f90-font-lock-n):
* lisp/progmodes/cwarn.el (cwarn-mode):
* lisp/nxml/nxml-mode.el (nxml-toggle-char-ref-extra-display):
* lisp/progmodes/compile.el (compilation-setup, compilation--unsetup):
* lisp/hi-lock.el (hi-lock-mode, hi-lock-unface-buffer)
(hi-lock-set-pattern, hi-lock-set-file-patterns): Use font-lock-flush.
* lisp/mail/rmail.el (rmail-variables): Set font-lock-dont-widen instead of
font-lock-fontify-buffer-function and
font-lock-unfontify-buffer-function.
(rmail-unfontify-buffer-function, rmail-fontify-message):
Use with-silent-modifications.
* lisp/htmlfontify.el (hfy-force-fontification): Use jit-lock-fontify-now
and font-lock-ensure.
* lisp/bs.el (bs-show-in-buffer): Use font-lock-ensure.
* lisp/gnus/mm-view.el (mm-display-inline-fontify): Use font-lock-ensure.
* lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Use font-lock-flush.
* lisp/org/org-compat.el (org-font-lock-ensure): New function.
* lisp/org/ox-odt.el (org-odt-do-format-code):
* lisp/org/ox-html.el (org-html-fontify-code):
* lisp/org/org.el (org-fontify-like-in-org-mode):
* lisp/org/org-src.el (org-src-font-lock-fontify-block):
* lisp/org/org-clock.el (org-clock-get-clocktable): Use it.
* lisp/org/ox-org.el (org-org-publish-to-org): Use it.  Avoid using find-file
from Elisp.
* test/automated/ruby-mode-tests.el (ruby-assert-face): Use font-lock-ensure.
(ruby-interpolation-keeps-non-quote-syntax): Use syntax-propertize.

10 years ago* configure.ac: Explicitly drop some ancient Solaris versions.
Glenn Morris [Thu, 29 May 2014 01:36:44 +0000 (21:36 -0400)]
* configure.ac: Explicitly drop some ancient Solaris versions.

10 years agoRemove pointless FOR-RELEASE note
Glenn Morris [Wed, 28 May 2014 17:53:11 +0000 (10:53 -0700)]
Remove pointless FOR-RELEASE note

10 years ago* lisp/cus-start.el: Fix some :version numbers.
Glenn Morris [Wed, 28 May 2014 15:48:39 +0000 (08:48 -0700)]
* lisp/cus-start.el: Fix some :version numbers.

10 years ago* frame.h (frame_char_to_pixel_position, frame_set_mouse_position):
Dmitry Antipov [Wed, 28 May 2014 15:47:13 +0000 (19:47 +0400)]
* frame.h (frame_char_to_pixel_position, frame_set_mouse_position):
Fix last change by moving these functions under HAVE_WINDOW_SYSTEM.

10 years agoRefactor mouse positioning stuff to avoid code duplication.
Dmitry Antipov [Wed, 28 May 2014 13:53:22 +0000 (17:53 +0400)]
Refactor mouse positioning stuff to avoid code duplication.
* frame.h (frame_char_to_pixel_position): New function.
(x_set_mouse_position): Rename to...
(frame_set_mouse_position): ...new function.
(frame_set_mouse_pixel_position): Add prototype.
* nsterm.m, w32term.c, xterm.c (x_set_mouse_pixel_position):
Rename to frame_set_mouse_pixel_position.
* frame.c (Fset_mouse_pixel_position, Fset_mouse_position):
Adjust users.
* xterm.h, w32term.h ( x_set_mouse_position)
(x_set_mouse_pixel_position): Remove prototypes.

10 years agoetc/TODO: add note about using undo-tree for persistent undo
Reuben Thomas [Wed, 28 May 2014 12:54:58 +0000 (13:54 +0100)]
etc/TODO: add note about using undo-tree for persistent undo

10 years ago* xterm.c (x_free_frame_resources): Fix last change.
Dmitry Antipov [Wed, 28 May 2014 11:41:48 +0000 (15:41 +0400)]
* xterm.c (x_free_frame_resources): Fix last change.

10 years ago* lisp/emacs-lisp/package.el (package-generate-autoloads):
Thien-Thi Nguyen [Wed, 28 May 2014 09:58:47 +0000 (11:58 +0200)]
* lisp/emacs-lisp/package.el (package-generate-autoloads):
Inhibit backup files.

10 years agoOn X, always make pointer visible when deleting frame (Bug#17609).
Dmitry Antipov [Wed, 28 May 2014 08:00:10 +0000 (12:00 +0400)]
On X, always make pointer visible when deleting frame (Bug#17609).
* frame.c (frame_make_pointer_visible, frame_make_pointer_invisible):
Pass frame as arg.
* frame.h (frame_make_pointer_visible, frame_make_pointer_invisible):
Adjust prototypes.
* cmds.c (Fself_insert_command): Use SELECTED_FRAME.
* keyboard.c (gobble_input): If there is no terminal input error,
make sure the pointer is visible for all frames on this terminal.
* xterm.c (x_free_frame_resources): Always enable pointer visibility.

10 years agoTry to document some OS X changes
Glenn Morris [Wed, 28 May 2014 07:32:06 +0000 (00:32 -0700)]
Try to document some OS X changes

I can't test any of this, but no-one else seems to care, so this is
what you get.

* doc/emacs/macos.texi (Mac / GNUstep Customization): Mention some new features.

* etc/NEWS: Related edits.

10 years ago* lisp/subr.el (zerop): Move later so bootstrap works.
Glenn Morris [Wed, 28 May 2014 06:51:36 +0000 (23:51 -0700)]
* lisp/subr.el (zerop): Move later so bootstrap works.

10 years ago* html2text.el (html2text-get-attr): Fix typo when splitting value from
Andreas Schwab [Wed, 28 May 2014 06:35:53 +0000 (08:35 +0200)]
* html2text.el (html2text-get-attr): Fix typo when splitting value from
attribute. (Bug#17613)

10 years ago* lisp/progmodes/hideshow.el (hs-hide-all): Call syntax-propertize.
Stefan Monnier [Wed, 28 May 2014 01:12:04 +0000 (21:12 -0400)]
* lisp/progmodes/hideshow.el (hs-hide-all): Call syntax-propertize.

Fixes: debbugs:17608

10 years ago* test/automated/tildify-tests.el: New file.
Michal Nazarewicz [Wed, 28 May 2014 01:00:44 +0000 (21:00 -0400)]
* test/automated/tildify-tests.el: New file.
* lisp/textmodes/tildify.el (tildify-buffer, tildify-region):
Add dont-ask option.

Fixes: debbugs:17547

10 years ago* lisp/subr.el (zerop): Move from C. Add compiler-macro.
Stefan Monnier [Wed, 28 May 2014 00:50:44 +0000 (20:50 -0400)]
* lisp/subr.el (zerop): Move from C.  Add compiler-macro.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-zerop): Remove.
* src/data.c (Fzerop): Move to Elisp.
(syms_of_data): Don't defsubr it.
* src/keyboard.c (echo_keystrokes_p): New function.
(read_char, record_menu_key, read_key_sequence): Use it.

Fixes: debbugs:17475

10 years ago* src/callint.c (Ffuncall_interactively): New function.
Stefan Monnier [Wed, 28 May 2014 00:09:14 +0000 (20:09 -0400)]
* src/callint.c (Ffuncall_interactively): New function.
(Qfuncall_interactively): New var.
(Qcall_interactively): Remove.
(Fcall_interactively): Use it.
(syms_of_callint): Defsubr it.
* lisp/subr.el (internal--funcall-interactively): New.
(internal--call-interactively): Remove.
(called-interactively-p): Detect funcall-interactively instead of
call-interactively.
* lisp/simple.el (repeat-complex-command): Use funcall-interactively.
(repeat-complex-command--called-interactively-skip): Remove.

10 years ago* src/bytecode.c (FETCH) [BYTE_CODE_SAFE]: Check the bytecode wasn't
Stefan Monnier [Tue, 27 May 2014 23:48:35 +0000 (19:48 -0400)]
* src/bytecode.c (FETCH) [BYTE_CODE_SAFE]: Check the bytecode wasn't
relocated from under us.

10 years agoUse mmap(2) emulation for buffer text on MS-Windows.
Fabrice Popineau [Tue, 27 May 2014 17:31:17 +0000 (20:31 +0300)]
Use mmap(2) emulation for buffer text on MS-Windows.

 src/Makefile.in (C_HEAP_SWITCH): Get the predefined heap size from
 configure.
 (ADDSECTION, MINGW_TEMACS_POST_LINK): Remove, no longer used.
 src/lisp.h (NONPOINTER_BITS): Modify the condition to define to zero
 for MinGW, since it no longer uses gmalloc.
 src/buffer.c: Do not define mmap allocations functions for Windows.
 Remove mmap_find which is unused. Remove mmap_set_vars which does
 nothing useful.
 [WINDOWSNT]: Include w32heap.h.
 (init_buffer): Always allocate new memory for buffers.
 src/emacs.c: Remove mmap_set_vars calls.
 src/image.c (free_image): Undef free for Windows because it is
 redirected to our private version.
 src/unexw32.c (COPY_PROC_CHUNK): Use %p format for 64bits
 compatibility.
 (copy_executable_and_dump_data): Remove dumping the heap section.
 (unexec): Restore using_dynamic_heap after dumping.
 src/w32heap.c (dumped_data_commit, malloc_after_dump)
 (malloc_before_dump, realloc_after_dump, realloc_before_dump)
 (free_after_dump, free_before_dump, mmap_alloc, mmap_realloc)
 (mmap_free): New functions.
 src/w32heap.h: Declare dumped_data and mmap_* function prototypes.

 nt/inc/ms-w32.h: Switch to the system heap allocation scheme
 instead of GNU malloc and ralloc.
 nt/inc/sys/mman.h: New file.
 nt/INSTALL: Update for the new build requirements.

 etc/NEWS: Mention build changes on MS-Windows.

 configure.ac (C_HEAP_SWITCH) define for different values of
 dumped heap size depending on 32/64bits arch on Windows.
 Don't check for pthreads.h on MinGW32/64, it gets in the way.
 Use mmap(2) for buffers and system malloc for MinGW32/64.

10 years ago* lisp/simple.el (deactivate-mark): Set mark-active to nil even if deactivation
Stefan Monnier [Tue, 27 May 2014 14:59:08 +0000 (10:59 -0400)]
* lisp/simple.el (deactivate-mark): Set mark-active to nil even if deactivation
is done via setting transient-mark-mode to nil, since one is
buffer-local and the other is global.

10 years ago* lisp/emacs-lisp/byte-opt.el (byte-optimize-binary-predicate): Don't assume
Stefan Monnier [Tue, 27 May 2014 14:56:03 +0000 (10:56 -0400)]
* lisp/emacs-lisp/byte-opt.el (byte-optimize-binary-predicate): Don't assume
there can't be more than 2 arguments.

Fixes: debbugs:17584

10 years ago* lisp/register.el (register-read-with-preview): Don't burp on
Stefan Monnier [Tue, 27 May 2014 14:36:07 +0000 (10:36 -0400)]
* lisp/register.el (register-read-with-preview): Don't burp on
frame switches (e.g. due to the frame we just popped).

10 years ago* test/indent/ps-mode.ps: New file.
Stefan Monnier [Tue, 27 May 2014 14:28:07 +0000 (10:28 -0400)]
* test/indent/ps-mode.ps: New file.
* test/automated/core-elisp-tests.el
(core-elisp-test-window-configurations): New test.
* test/indent/octave.m: Add a few more tests.
* test/indent/ruby.rb: Add one more test.

10 years ago* image.c (imagemagick_load_image): Use MagickRealType for local
Paul Eggert [Tue, 27 May 2014 06:37:29 +0000 (23:37 -0700)]
* image.c (imagemagick_load_image): Use MagickRealType for local

'color_scale', instead of double, to avoid a GCC warning about
double promotion.

10 years ago* xfns.c (Fx_window_property): Remove unused local.
Paul Eggert [Tue, 27 May 2014 06:35:54 +0000 (23:35 -0700)]
* xfns.c (Fx_window_property): Remove unused local.

10 years agoMerge from gnulib.
Paul Eggert [Tue, 27 May 2014 05:55:18 +0000 (22:55 -0700)]
Merge from gnulib.

This incorporates:
2014-05-21 fchdir: port 'open' and 'close' redefinitions to AIX 7.1
* doc/misc/texinfo.tex, lib/openat-proc.c: Update from gnulib.

10 years agoSpelling fix.
Paul Eggert [Tue, 27 May 2014 05:38:29 +0000 (22:38 -0700)]
Spelling fix.

10 years ago* lisp/mouse.el (mouse-set-region): Handle spurious drag events.
Stefan Monnier [Tue, 27 May 2014 05:01:49 +0000 (01:01 -0400)]
* lisp/mouse.el (mouse-set-region): Handle spurious drag events.
(mouse-drag-track): Annotate `mouse-drag-start' so we know we moved.

Fixes: debbugs:17562

10 years agoDon't kill already-reaped process.
Paul Eggert [Tue, 27 May 2014 03:46:30 +0000 (20:46 -0700)]
Don't kill already-reaped process.

* process.c (process_send_signal): Fix race condition where a
subprocess was reaped by a signal handler between the check for
liveness and calling 'kill', which meant that Emacs could in
theory kill an innocent bystander process.  Do the fix by blocking
SIGCHLD in a critical section that checks liveness before killing.

Fixes: debbugs:17561

10 years agoDoc updates re filter-buffer-substring
Glenn Morris [Tue, 27 May 2014 01:53:45 +0000 (18:53 -0700)]
Doc updates re filter-buffer-substring

* lisp/simple.el (filter-buffer-substring-functions)
(filter-buffer-substring-function, buffer-substring-filters)
(filter-buffer-substring, buffer-substring--filter): Doc fixes.

* doc/lispref/text.texi (Buffer Contents):
Update for filter-buffer-substring changes.

* doc/lispref/hooks.texi: Remove old comment.

* etc/NEWS: Related markup.

10 years agoDoc updates re completion-in-region-function
Glenn Morris [Tue, 27 May 2014 01:25:57 +0000 (18:25 -0700)]
Doc updates re completion-in-region-function

* lisp/minibuffer.el (completion-in-region-functions, completion-in-region)
(completion--in-region): Doc fixes.

* doc/lispref/hooks.texi: Update comment.

10 years agoDoc updates re abbrev-expand-function
Glenn Morris [Tue, 27 May 2014 01:09:45 +0000 (18:09 -0700)]
Doc updates re abbrev-expand-function

* doc/emacs/abbrevs.texi (Expanding Abbrevs): Update re abbrev-expand-function.

* doc/lispref/abbrevs.texi (Abbrev Expansion): Update for expand-abbrev changes.

* doc/lispref/functions.texi (Advising Functions): Standardize menu case.

* lisp/abbrev.el (abbrev-expand-functions, abbrev-expand-function)
(expand-abbrev, abbrev--default-expand): Doc fixes.

10 years agoMinor fixes for MS-Windows MinGW64 build.
Eli Zaretskii [Mon, 26 May 2014 16:55:28 +0000 (19:55 +0300)]
Minor fixes for MS-Windows MinGW64 build.

 src/w32.c (_ANONYMOUS_UNION, _ANONYMOUS_STRUCT): Define only if undefined.

 lib-src/ntlib.h (lseek): Don't redirect to _lseek.

10 years ago* package-test.el (package-test-install-single): Update for changed output.
Glenn Morris [Mon, 26 May 2014 16:52:28 +0000 (09:52 -0700)]
* package-test.el (package-test-install-single): Update for changed output.

10 years agoInclude sources used to create macuvs.h.
Paul Eggert [Mon, 26 May 2014 15:48:28 +0000 (08:48 -0700)]
Include sources used to create macuvs.h.

* admin/unidata/IVD_Sequences.txt: New file.
* admin/unidata/Makefile.in (${top_srcdir}/src/macuvs.h): New rule.
(all): Build it.
(extraclean): Remove it.
* admin/unidata/README: Mention BidiMirroring.txt and IVD_Sequences.txt.
* admin/unidata/copyright.html: Update to current version from Unicode
Consortium.
* admin/unidata/uvs.el: Rename from admin/mac/uvs.el.
(uvs-print-table-ivd): Output a header in the form that
unidata-gen.el generates.
* lisp/international/README: Refer to the Unicode Terms of Use rather
than copying it bodily here, as that simplifies maintenance.
* src/Makefile.in ($(srcdir)/macuvs.h): New rule.
* src/macuvs.h: Use automatically-generated header.

10 years ago* src/w32term.c (x_delete_display): Don't free dpyinfo->w32_id_name (see bug#17510).
Ken Brown [Mon, 26 May 2014 12:31:46 +0000 (08:31 -0400)]
* src/w32term.c (x_delete_display): Don't free dpyinfo->w32_id_name (see bug#17510).