]> code.delx.au - gnu-emacs/log
gnu-emacs
10 years ago* INSTALL: Mention SVG image support.
Dmitry Antipov [Thu, 5 Jun 2014 17:31:41 +0000 (21:31 +0400)]
* INSTALL: Mention SVG image support.

10 years ago* emacs-lisp/cl-macs.el (cl-macrolet): Avoid excessive progn's.
Leo Liu [Thu, 5 Jun 2014 17:08:18 +0000 (01:08 +0800)]
* emacs-lisp/cl-macs.el (cl-macrolet): Avoid excessive progn's.

10 years ago* tests/automated/tildify-tests.el (tildify-test--test): Optimise the
Michal Nazarewicz [Thu, 5 Jun 2014 14:42:45 +0000 (16:42 +0200)]
* tests/automated/tildify-tests.el (tildify-test--test): Optimise the
test slightly by reusing the same temporary buffer across multiple
test cases.

10 years agotildify.el: Rewrite `tildify-region' and co., add foreach function.
Michal Nazarewicz [Thu, 5 Jun 2014 14:42:07 +0000 (16:42 +0200)]
tildify.el: Rewrite `tildify-region' and co., add foreach function.

* lisp/textmodes/tildify.el (tildify-foreach-region-outside-env): New
function which calls a callback on portions of the buffer that are
outside of ignored environments.
(tildify-build-regexp): Remove function since it is now
incorporated in `tildify-foreach-region-outside-env' where it is
optimised and simplified by the use of `mapconcat'.
(tildify-tildify): Return number of substitutions made so that…
(tildify-count): …can be removed.
(tildify-find-env): Accept a new PAIRS argument which was
previously looked up in `tildify-ignored-environments-alist' each
time the function was called.  With this change, the lookup is
performed only once in `tildify-foreach-region-outside-env'.
(tildify-region): Greatly simplify the function since now most of
the work is done by `tildify-foreach-region-outside-env'.
(tildify-mode-alist): Simplify slightly by avoiding if and setq
and instead using or.

* tests/automated/tildify-tests.el (tildify-test-find-env-end-re-bug)
(tildify-test-find-env-group-index-bug): Update to support new
signature of the `tildify-foreach-region-outside-env' function.
Namely, it now takes pairs as an argument instead of looking it up in
`tildify-ignored-environments-alist'.

10 years agotildify.el: Optimise environments regexes
Michal Nazarewicz [Thu, 5 Jun 2014 14:41:32 +0000 (16:41 +0200)]
tildify.el: Optimise environments regexes

* lisp/textmodes/tildify.el (tildify-ignored-environments-alist):
Each time beginning of an environment to ignore is found,
`tildify-find-env' needs to identify regexp for the ending
of the environment.  This is done by trying all the opening
regexes on matched text in a loop, so to speed that up, this
loop should have fewer things to match, which can be done by
using alternatives in the opening regexes.

Coincidentally, this should make matching of the opening
regexp faster as well thanks to the use of `regexp-opt' and
having common prefix pulled from many regexes.

10 years agotildify.el: Better support for XML
Michal Nazarewicz [Thu, 5 Jun 2014 14:41:01 +0000 (16:41 +0200)]
tildify.el: Better support for XML

* lisp/textmodes/tildify.el  (tildify-string-alist)
(tildify-ignored-environments-alist): Add `nxml-mode' to the list of
supported modes since `xml-mode' is no longer a thing but just an
alias to the former.  Also include comments and insides of tags in
`tildify-ignored-environments-alist' for XML modes.  Finally, since
XML does not define “ ”[1], use a numeric reference for
a no-break space (namely “ ”)

[1] XML specification defines only a handful of predefined entities.
    The list is at <http://www.w3.org/TR/REC-xml/#sec-predefined-ent>
    and includes only &lt;, &gt;, &amp;, &apos; and &quot; (meaning <,
    >, &, ' and " respectively).  This is in contrast to HTML and even
    XHTML which defined a whole bunch of entities including “&nbsp;”.

* automated/tildify-tests.el (tildify-test--example-html): Add support
for generating XML code, so that…
(tildify-test-xml) …test can be added to check handling of XML
documents.

10 years agotildify.el: Improve defcustom's types
Michal Nazarewicz [Thu, 5 Jun 2014 14:40:26 +0000 (16:40 +0200)]
tildify.el: Improve defcustom's types

* lisp/textmodes/tildify.el (tildify-pattern-alist)
(tildify-string-alist, tildify-ignored-environments-alist):
Add more tags explaining what each value means and replace
“sexp” used in `tildify-ignored-environments-alist' with
a full type declaration.

10 years agotildify.el: Fix matched group indexes in end-regex building
Michal Nazarewicz [Thu, 5 Jun 2014 14:39:18 +0000 (16:39 +0200)]
tildify.el: Fix matched group indexes in end-regex building

* lisp/textmodes/tildifi.el (tildify-find-env): When looking for
a start of an ignore-environment, the regex is built by
concatenating regexes of all the environments configured in
`tildify-ignored-environments-alist'.  So for example, the following
list could be used to match TeX's \verb and \verb* commands:

    (("\\\\verb\\(.\\)" . (1))
     ("\\\\verb\\*\\(.\\)" . (1)))

This would result in the following regex being used to find the start
of any of the variants of the \verb command:

    \\\\verb\\(.\\)\\|\\\\verb\\*\\(.\\)

But now, if “\\\\verb\\*\\(.\\)” matches, the first capture group
won't match anything, and thus (match-string 1) will be nil, which
will cause building of the end-matching regex to fail.

Fix this by using capture groups from the time when the opening
regexes are matched individually.

* tests/automated/tildify-tests.el (tildify-test-find-env-group-index-bug):
New test validating fix to the above bug.

10 years agotildify.el: Fix end-regex building in `tildify-find-env'
Michal Nazarewicz [Thu, 5 Jun 2014 14:37:45 +0000 (16:37 +0200)]
tildify.el: Fix end-regex building in `tildify-find-env'

* lisp/textmodes/tildify.el (tildify-find-env): The
`tildify-ignored-environments-alist' allows the end-regex
to be provided not as a static string but mix of strings and
indexes of groups matched the begin-regex.  For example, the
“\verb!…!” TeX-command (where “!” is an arbitrary character)
is handled using:

    ("\\\\verb\\*?\\(.\\)" . (1))

In the same way, the following should be supported as well:

    ("open-\\(.\\)" . ("end-" 1))

However the tildify-find-env function fails at

    (concat result
            (if (stringp (setq aux (car expression)))
                 expression  ; BUG: expression is a list
               (regexp-quote (match-string aux))))

where the string part is handled incorrectly.

The most trivial fix would be to replace `expression'
in the true-part of the if-statement with `aux', but
instead, this commit optimises `tildify-find-env' by
changing it to use `mapconcat' rather than open-coded
while-loop.

* tests/automated/tildify-tests.el (tildify-test-find-env-end-re-bug):
New test validating fix to the above bug.

10 years ago* woman.el (woman-mapcan): Remove.
Mario Lang [Thu, 5 Jun 2014 13:40:54 +0000 (15:40 +0200)]
* woman.el (woman-mapcan): Remove.
(woman-parse-colon-path): Use cl-mapcan instead.

10 years agoTry harder to find GNU Make when configuring.
Paul Eggert [Thu, 5 Jun 2014 08:03:22 +0000 (01:03 -0700)]
Try harder to find GNU Make when configuring.

* configure.ac (AC_PROG_MAKE_SET): Define a dummy.
(MAKE): Set it to GNU Make, if one can be found.
Search PATH for 'make', 'gmake', 'gnumake'.
This works better on platforms like AIX, where GNU Make
might be in /opt/freeware/bin/make, and reside
behind /usr/bin/make in the PATH.

10 years ago* configure.ac (POLL_FOR_INPUT): Define with HAVE_WINDOW_SYSTEM.
Dmitry Antipov [Thu, 5 Jun 2014 06:24:54 +0000 (10:24 +0400)]
* configure.ac (POLL_FOR_INPUT): Define with HAVE_WINDOW_SYSTEM.
* nt/inc/ms-w32.h (POLL_FOR_INPUT): Likewise.
* src/keyboard.c, src/process.c: Do not define POLL_FOR_INPUT here
because it will be defined in generated config.h if needed.

10 years agoGnus: fix last change
Katsumi Yamaoka [Thu, 5 Jun 2014 04:31:36 +0000 (04:31 +0000)]
Gnus: fix last change

* gnus-art.el (gnus-article-edit-part): Don't modifiy markers.
(gnus-article-read-summary-keys):
Don't bug out when there is no article in the summary buffer.

* gnus-art.el (gnus-mm-display-part):
* mm-decode.el (mm-shr):
* mm-view.el (mm-inline-text-html-render-with-w3m, mm-inline-text)
(mm-insert-inline): Revert last changes.

10 years agoGnus: bugfixes to make `gnus-mime-save-part-and-strip' work again
Katsumi Yamaoka [Thu, 5 Jun 2014 01:38:42 +0000 (01:38 +0000)]
Gnus: bugfixes to make `gnus-mime-save-part-and-strip' work again

* gnus-art.el (gnus-mm-display-part):
* mm-decode.el (mm-shr):
* mm-view.el (mm-inline-text-html-render-with-w3m, mm-inline-text)
(mm-insert-inline): Set insertion type of end-marker, not only
start-marker, of undisplayer so as to stay after inserted text.

10 years ago* configure.ac: --without-all now implies --without-xft, --disable-acl.
Paul Eggert [Thu, 5 Jun 2014 00:34:34 +0000 (17:34 -0700)]
* configure.ac: --without-all now implies --without-xft, --disable-acl.

* INSTALL: Remove apparently unmaintained documentation about what
--without-all exactly means.

10 years agosrc/menu.c (Fx_popup_dialog): Comment the use of Qunsupported__w32_dialog.
Eli Zaretskii [Wed, 4 Jun 2014 15:16:54 +0000 (18:16 +0300)]
src/menu.c (Fx_popup_dialog): Comment the use of Qunsupported__w32_dialog.

10 years agoUse terminal-specific hooks to display popup dialogs.
Dmitry Antipov [Wed, 4 Jun 2014 14:59:09 +0000 (18:59 +0400)]
Use terminal-specific hooks to display popup dialogs.
* termhooks.h (struct terminal): New field popup_dialog_hook.
* menu.c (emulate_dialog_with_menu): New function, refactored from ...
(Fx_popup_dialog): ... adjusted user.  Also remove old #if 0
code and use popup_dialog_hook.
* nsmenu.m (ns_popup_dialog): Make hook-compatible.
* nsterm.h (ns_popup_dialog): Adjust prototype.
* nsterm.m (ns_create_terminal):
* w32term.c (w32_create_terminal):
* xterm.c (x_create_terminal) [USE_X_TOOLKIT || USE_GTK]: Setup
popup_dialog_hook.

10 years agoFix last commit.
Eli Zaretskii [Wed, 4 Jun 2014 12:00:34 +0000 (15:00 +0300)]
Fix last commit.

10 years agoImprove dumped memory report on MS-Windows.
Eli Zaretskii [Wed, 4 Jun 2014 11:46:51 +0000 (14:46 +0300)]
Improve dumped memory report on MS-Windows.

 src/w32heap.c (report_temacs_memory_usage): Improve the report by
 reporting the large blocks that are actually occupied at dump time.

10 years agoFix TTY menus on MS-Windows broken by last commit.
Eli Zaretskii [Wed, 4 Jun 2014 07:54:16 +0000 (10:54 +0300)]
Fix TTY menus on MS-Windows broken by last commit.

 src/w32console.c (initialize_w32_display): Set the console
 menu_show_hook, otherwise TTY menus on w32 crash and burn.

10 years agoUse terminal-specific hooks to display menus.
Dmitry Antipov [Wed, 4 Jun 2014 04:58:31 +0000 (08:58 +0400)]
Use terminal-specific hooks to display menus.
* termhooks.h (struct terminal): New field menu_show_hook.
* menu.h (<anonymous enum>): Bit flags for menu hooks.
(x_menu_show, w32_menu_show, ns_menu_show, tty_menu_show):
Adjust prototypes.
* menu.c (Fx_popup_menu): Use bit flags and menu_show_hook.
* nsmenu.m (ns_menu_show):
* w32menu.c (w32_menu_show):
* xmenu.c (x_menu_show):
* term.c (tty_menu_show): Adjust to use bit flags.
(set_tty_hooks): Set menu_show_hook.
* xterm.c (x_create_terminal):
* nsterm.m (ns_create_terminal):
* msdos.c (initialize_msdos_display):
* w32term.c (w32_create_terminal): Likewise.

10 years ago* lwlib-widget.h (widget_value) [USE_X_TOOLKIT]: Use X toolkit
Dmitry Antipov [Wed, 4 Jun 2014 03:20:11 +0000 (07:20 +0400)]
* lwlib-widget.h (widget_value) [USE_X_TOOLKIT]: Use X toolkit
fields conditionally.

10 years agosrc/w32heap.c (DUMPED_HEAP_SIZE) [!_WIN64]: Reduce to 11 MB.
Juanma Barranquero [Tue, 3 Jun 2014 22:13:17 +0000 (00:13 +0200)]
src/w32heap.c (DUMPED_HEAP_SIZE) [!_WIN64]: Reduce to 11 MB.

10 years agoFix the MS-Windows build broken by few last commits.
Eli Zaretskii [Tue, 3 Jun 2014 21:00:40 +0000 (00:00 +0300)]
Fix the MS-Windows build broken by few last commits.

 src/sysselect.h (fd_CLR, fd_ISSET, fd_SET, FD_CLR, FD_ISSET)
 (FD_SET): Don't define on WINDOWSNT.

10 years ago* emacs.c: Include "sysselect.h", to define its inline functions.
Paul Eggert [Tue, 3 Jun 2014 20:08:08 +0000 (13:08 -0700)]
* emacs.c: Include "sysselect.h", to define its inline functions.

Problem reported by Glenn Morris in:
http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00077.html

10 years agoDo not require libXt-devel when building with gtk.
Paul Eggert [Tue, 3 Jun 2014 19:59:55 +0000 (12:59 -0700)]
Do not require libXt-devel when building with gtk.

* lwlib/lwlib-widget.h: New file, with contents taken from lwlib.h.
(widget_value) [HAVE_NTGUI]: New member 'title'.
* lwlib/lwlib.h: Include lwlib-widget.h.
(change_type, enum button_type, widget_value):
Move to lwlib-widget.h.
* src/gtkutil.h, src/menu.h: Include lwlib-widget.h, not lwlib-h, to avoid
dependency on libXt-devel.
* src/menu.h [HAVE_NTGUI]: Include lwlib-widget.h in this case too.
(enum button_type, widget_value) [HAVE_NTGUI]: Remove, as
lwlib-widget.h now does this.
* src/nsmenu.m (ns_menu_show): "enabled" -> "enable" to fix typo.

10 years agoIf ENABLE_CHECKING, range-check args of FD_CLR, FD_ISSET, FD_SET.
Paul Eggert [Tue, 3 Jun 2014 16:15:43 +0000 (09:15 -0700)]
If ENABLE_CHECKING, range-check args of FD_CLR, FD_ISSET, FD_SET.

* process.c (add_read_fd, delete_read_fd, add_write_fd)
(delete_write_fd, wait_reading_process_output):
Remove now-redundant easserts.
* sysselect.h (SYSSELECT_H): New macro, to avoid double-inclusion woes.
Use INLINE_HEADER_BEGIN, INLINE_HEADER_END.
(fd_CLR, fd_ISSET, fd_SET): New inline functions.
(FD_CLR, FD_ISSET, FD_SET): Redefine in terms of these functions.

10 years agoMore minor cleanups in src/w32heap.c.
Eli Zaretskii [Tue, 3 Jun 2014 10:01:08 +0000 (13:01 +0300)]
More minor cleanups in src/w32heap.c.

 src/w32heap.c (calloc): Don't undef, it is never defined.
 (HEAP_ENTRY_SHIFT): Remove unused macro.

10 years agoregister.el: Add link to Emacs manual in Commentary.
Rüdiger Sonderfeld [Tue, 3 Jun 2014 09:06:18 +0000 (11:06 +0200)]
register.el: Add link to Emacs manual in Commentary.

10 years agoDefine the size of dumped data for MS-Windows locally on w32heap.c.
Eli Zaretskii [Tue, 3 Jun 2014 07:28:07 +0000 (10:28 +0300)]
Define the size of dumped data for MS-Windows locally on w32heap.c.

 configure.ac (C_HEAP_SWITCH): Remove.

 src/w32heap.c (DUMPED_HEAP_SIZE): Move from w32heap.h.  Don't use
 HEAPSIZE; instead, define separate values for the 32- and 64-bit
 builds.
 src/Makefile.in (C_HEAP_SWITCH): Remove.
 (ALL_CFLAGS): Don't use $(C_HEAP_SWITCH).

10 years agoFix MS-Windows build broken by menu changes on 2014-06-02.
Eli Zaretskii [Tue, 3 Jun 2014 06:51:18 +0000 (09:51 +0300)]
Fix MS-Windows build broken by menu changes on 2014-06-02.

 src/w32menu.c (w32_menu_show): Fix a typo that broke compilation.
 src/menu.h (enum button_type, struct _widget_value) [HAVE_NTGUI]:
 Define instead of including ../lwlib/lwlib.h, which causes
 compilation errors due to missing X11 headers.

10 years ago* xlwmenu.c (openXftFont): Do not load regular X font here.
Dmitry Antipov [Tue, 3 Jun 2014 04:17:53 +0000 (08:17 +0400)]
* xlwmenu.c (openXftFont): Do not load regular X font here.
(XlwMenuInitialize): Remove ancient #if 0 code.
(XlwMenuDestroy): Likewise.  Free regular X font here.

10 years ago* process.c (wait_reading_process_output): Omit incorrect test
Paul Eggert [Tue, 3 Jun 2014 00:44:30 +0000 (17:44 -0700)]
* process.c (wait_reading_process_output): Omit incorrect test

of p->infd against zero.  Add easserts for infd having a plausible
value.

10 years agoAvoid the type error on f10 when lookup-key returns an number.
Sam Steingold [Mon, 2 Jun 2014 19:02:31 +0000 (15:02 -0400)]
Avoid the type error on f10 when lookup-key returns an number.

* lisp/menu-bar.el (lookup-key-ignore-too-long): Extract from...
(popup-menu): ...here.
(menu-bar-open): Use it to avoid an error when `lookup-key'
returns a number.

10 years ago* test/automated/tramp-tests.el (tramp-test29-vc-registered):
Michael Albinus [Mon, 2 Jun 2014 18:38:22 +0000 (20:38 +0200)]
* test/automated/tramp-tests.el (tramp-test29-vc-registered):
Remove instrumentation.

10 years ago* net/tramp.el (with-tramp-progress-reporter): Remove traces.
Michael Albinus [Mon, 2 Jun 2014 18:36:47 +0000 (20:36 +0200)]
* net/tramp.el (with-tramp-progress-reporter): Remove traces.

10 years agoUse common memory management functions for lwlib and refactor users.
Dmitry Antipov [Mon, 2 Jun 2014 18:01:21 +0000 (22:01 +0400)]
Use common memory management functions for lwlib and refactor users.
* lwlib/lwlib.h (widget_value): Do not maintain a free list any more.
(malloc_widget_value, free_widget_value): Remove prototypes.
* lwlib/lwlib.c (malloc_widget_value, free_widget_value):
(widget_value_free_list, malloc_cpt): Remove.
(free_widget_value_tree, copy_widget_value_tree): Adjust users.
* src/menu.h (xmalloc_widget_value): Replaced by ...
(make_widget_value): ... new prototype.
* src/menu.c (xmalloc_widget_value): Replaced by ...
(make_widget_value): ... new function.
(free_menubar_widget_value_tree, digest_single_submenu): Adjust users.
* src/gtkutil.c (malloc_widget_value, free_widget_value):
(widget_value_free_list, malloc_cpt): Remove old lwlib-compatible code.
* src/keyboard.h (enum button_type, struct _widget_value):
* src/gtkutil.h, src/nsgui.h, src/w32gui.h (malloc_widget_value):
(free_widget_value): Likewise.
* src/nsmenu.m (ns_update_menubar, ns_menu_show):
* src/w32menu.c (set_frame_menubar, w32_menu_show, w32_dialog_show):
* src/xmenu.c (set_frame_menubar, xmenu_show, x_dialog_show): Adjust users.
* src/xterm.h (XtParent) [USE_GTK]: Remove unused macro.

10 years ago* image.c (x_query_frame_background_color)
Dmitry Antipov [Mon, 2 Jun 2014 17:55:38 +0000 (21:55 +0400)]
* image.c (x_query_frame_background_color)
[HAVE_PNG || HAVE_NS || HAVE_IMAGEMAGICK || HAVE_RSVG]:
Fix --enable-gcc-warnings compilation without image libraries.

10 years agosrc/w32heap.c (init_heap): Fix typos in comments (again).
Eli Zaretskii [Mon, 2 Jun 2014 17:19:19 +0000 (20:19 +0300)]
src/w32heap.c (init_heap): Fix typos in comments (again).

10 years agosrc/w32heap.c (init_heap): Fix typos in comments.
Eli Zaretskii [Mon, 2 Jun 2014 17:17:55 +0000 (20:17 +0300)]
src/w32heap.c (init_heap): Fix typos in comments.

10 years agoMinor improvement of sbrk emulation on MS-Windows.
Eli Zaretskii [Mon, 2 Jun 2014 17:08:50 +0000 (20:08 +0300)]
Minor improvement of sbrk emulation on MS-Windows.

 src/w32heap.c (malloc_after_dump, realloc_after_dump): Update the
 emulated break value only if it goes up.
 (sbrk): Add assertion that the INCREMENT argument is strictly
 zero.  Improve and correct the commentary.

10 years ago* net/tramp.el (tramp-handle-unhandled-file-name-directory): Return "/".
Michael Albinus [Mon, 2 Jun 2014 15:17:39 +0000 (17:17 +0200)]
* net/tramp.el (tramp-handle-unhandled-file-name-directory): Return "/".

10 years ago* net/tramp.el (with-tramp-progress-reporter): Complete previous patch.
Michael Albinus [Mon, 2 Jun 2014 14:17:07 +0000 (16:17 +0200)]
* net/tramp.el (with-tramp-progress-reporter): Complete previous patch.

10 years ago* net/tramp.el (with-tramp-progress-reporter): Add more traces.
Michael Albinus [Mon, 2 Jun 2014 14:05:35 +0000 (16:05 +0200)]
* net/tramp.el (with-tramp-progress-reporter): Add more traces.

10 years ago* net/tramp.el (with-tramp-progress-reporter, tramp-call-process):
Michael Albinus [Mon, 2 Jun 2014 13:51:35 +0000 (15:51 +0200)]
* net/tramp.el (with-tramp-progress-reporter, tramp-call-process):
Add traces.

10 years ago* net/tramp.el (tramp-call-process): Add more traces.
Michael Albinus [Mon, 2 Jun 2014 11:35:40 +0000 (13:35 +0200)]
* net/tramp.el (tramp-call-process): Add more traces.

10 years ago* lisp/net/tramp.el (tramp-call-process): Add traces.
Michael Albinus [Mon, 2 Jun 2014 09:58:50 +0000 (11:58 +0200)]
* lisp/net/tramp.el (tramp-call-process): Add traces.

10 years ago* test/automated/tramp-tests.el (tramp-remote-process-environment): Declare.
Michael Albinus [Mon, 2 Jun 2014 09:53:43 +0000 (11:53 +0200)]
* test/automated/tramp-tests.el (tramp-remote-process-environment): Declare.
(tramp-test29-vc-registered): Set $BZR_HOME.

10 years agoSync with upstream verilog-mode revision 3cd8144
Wilson Snyder [Mon, 2 Jun 2014 06:45:11 +0000 (23:45 -0700)]
Sync with upstream verilog-mode revision 3cd8144

* lisp/progmodes/verilog-mode.el (verilog-mode-version): Bump.
(verilog-auto-arg-format): New option, to support newlines in AUTOARG.
(verilog-type-font-keywords): Add nor.
(verilog-batch-execute-func): Force reading of Local Variables.
Fix printing "no changes to be saved" with verilog-batch.
(verilog-auto-arg-ports): Doc fix.
Add verilog-auto-arg-format to support newlines in AUTOARG.
(verilog-auto-arg): Doc fix.

10 years agoImprove AIX-related merge from emacs-24.
Paul Eggert [Mon, 2 Jun 2014 06:08:49 +0000 (23:08 -0700)]
Improve AIX-related merge from emacs-24.

* conf_post.h (FLEXIBLE_ARRAY_MEMBER): Fix comment.
* lisp.h (ENUMABLE) [!_AIX]: Don't define to 0 merely because we're
not on AIX; since we're on the trunk we can use enums more broadly.

10 years ago* Makefile.in (AUTOGEN_VCS): Fix previous fix
Glenn Morris [Mon, 2 Jun 2014 01:10:47 +0000 (18:10 -0700)]
* Makefile.in (AUTOGEN_VCS): Fix previous fix

10 years agoChangeLog typo fix
Glenn Morris [Mon, 2 Jun 2014 01:10:07 +0000 (18:10 -0700)]
ChangeLog typo fix

10 years ago* lisp/Makefile.in (AUTOGEN_VCS): Update for moved tpu-edu.el
Glenn Morris [Mon, 2 Jun 2014 01:09:34 +0000 (18:09 -0700)]
* lisp/Makefile.in (AUTOGEN_VCS): Update for moved tpu-edu.el

10 years ago* doc/emacs/misc.texi [iftex]: Update chapter summary.
Glenn Morris [Mon, 2 Jun 2014 01:08:13 +0000 (18:08 -0700)]
* doc/emacs/misc.texi [iftex]: Update chapter summary.

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)]
.