bpt/emacs.git
9 years agoIf a C name must be extern on some platforms, make it extern on all.
Paul Eggert [Sun, 8 Jun 2014 18:27:22 +0000 (11:27 -0700)]
If a C name must be extern on some platforms, make it extern on all.

* dispextern.h (set_vertical_scroll_bar, erase_phys_cursor)
(load_color):
* font.h (ftxfont_driver) [HAVE_XFT]:
* keyboard.h (menu_items_inuse, ignore_mouse_drag_p, make_ctrl_char):
* lisp.h (get_frame_param):
* menu.h (tty_menu_show):
* process.h (conv_sockaddr_to_lisp, catch_child_signal):
* termhooks.h (encode_terminal_code):
* xterm.h (x_menu_wait_for_event):
Always declare.
* frame.c (get_frame_param):
* fringe.c (max_used_fringe_bitmap):
* ftxfont.c (ftxfont_driver):
* keyboard.c (ignore_mouse_drag_p, make_ctrl_char):
* menu.c (menu_items_inuse):
* process.c (conv_sockaddr_to_lisp, catch_child_signal):
* term.c (encode_terminal_code, tty_menu_show):
* xdisp.c (set_vertical_scroll_bar, erase_phys_cursor):
* xfaces.c (load_color):
* xmenu.c (x_menu_wait_for_event):
Now always extern.

9 years agoSmall doc updates re initial-buffer-choice
Glenn Morris [Sun, 8 Jun 2014 17:46:51 +0000 (10:46 -0700)]
Small doc updates re initial-buffer-choice

* doc/emacs/entering.texi (Entering Emacs): Small fix re initial-buffer-choice.

* doc/emacs/misc.texi (emacsclient Options): Copyedit.

* doc/lispref/os.texi (Startup Summary): Small fix for initial-buffer-choice.

* lisp/startup.el (initial-buffer-choice): Doc fix.
Reset :version (adding an option does not merit a :version bump).

9 years agoChange object marking routines to minimize stack usage.
Dmitry Antipov [Sun, 8 Jun 2014 15:06:03 +0000 (19:06 +0400)]
Change object marking routines to minimize stack usage.
This change moves a few cold paths from mark_object to NO_INLINE
functions and adjusts symbol marking loop.  According to GCC 4.8.2
-Wstack-usage, this reduces mark_object's stack usage from 80 to
48 bytes on a 64-bit system.  For a long byte-force-recompile runs,
stack usage at the mark phase is reduced up to 28%.  Surprisingly,
it also gains up to 3% in speed (with default '-O2 -g3' flags).
* alloc.c (mark_compiled, mark_localized_symbol): New functions,
refactored out from ...
(mark_object): ... adjusted user.  Also mark symbols in a tight
inner loop.
(mark_face_cache): Add NO_INLINE.

9 years agoDoc edits re uniquify
Glenn Morris [Sun, 8 Jun 2014 07:41:27 +0000 (00:41 -0700)]
Doc edits re uniquify

* doc/emacs/buffers.texi (Uniquify): Copyedits.

* doc/emacs/files.texi (Visiting): Update for uniquify changes.

* doc/lispref/files.texi (Subroutines of Visiting): Mention uniquify.

* doc/misc/vip.texi (Files): Defer to Emacs manual for uniquify details.

* lisp/bookmark.el (bookmark-load): Doc fix.

* lisp/uniquify.el (uniquify-buffer-name-style): Doc fix.

* lisp/files.el: Comment.

* etc/NEWS: Related edit.

9 years agoinfo.texi tweaks re S-SPC
Glenn Morris [Sun, 8 Jun 2014 07:00:20 +0000 (00:00 -0700)]
info.texi tweaks re S-SPC

* doc/misc/info.texi (Help-Small-Screen): Clarify details of S-SPC.
(Help-Small-Screen, Help-]): Do not mention S-SPC.
(Emacs Info Variables): Markup fix.

9 years agoDoc markup fixes re SPC, RET
Glenn Morris [Sun, 8 Jun 2014 06:57:15 +0000 (23:57 -0700)]
Doc markup fixes re SPC, RET

* doc/emacs/dired.texi (Marks vs Flags):
* doc/emacs/rmail.texi (Rmail Scrolling):
* doc/misc/ebrowse.texi (Source Display, Finding/Viewing):
* doc/misc/erc.texi (Sample Session):
* doc/misc/ses.texi (The Basics):
* doc/misc/todo-mode.texi (Moving and Deleting Items):
* doc/misc/woman.texi (Navigation):
Markup fixes re SPC, RET.

9 years ago* etc/themes/deeper-blue-theme.el: Use another fix.
Leo Liu [Sun, 8 Jun 2014 03:25:22 +0000 (11:25 +0800)]
* etc/themes/deeper-blue-theme.el: Use another fix.

Fixes: debbugs:17695

9 years ago* doc/emacs/help.texi (Help, Misc Help): Copyedits.
Glenn Morris [Sun, 8 Jun 2014 01:37:23 +0000 (18:37 -0700)]
* doc/emacs/help.texi (Help, Misc Help): Copyedits.

9 years agoDoc tweaks re text-mode menus
Glenn Morris [Sun, 8 Jun 2014 01:20:35 +0000 (18:20 -0700)]
Doc tweaks re text-mode menus

* doc/emacs/screen.texi (Menu Bar): Copyedits.

* doc/emacs/msdog.texi (Windows Keyboard): F10 menus are now a general feature.

9 years agoDoc tweak re fullscreen/maximize
Glenn Morris [Sun, 8 Jun 2014 01:14:58 +0000 (18:14 -0700)]
Doc tweak re fullscreen/maximize

* doc/emacs/frames.texi (Frame Commands): Copyedits re M-F10, F11.

* doc/emacs/cmdargs.texi (Window Size X): Copyedits.

9 years ago* src/fileio.c (write-region-inhibit-fsync): Doc tweak.
Glenn Morris [Sun, 8 Jun 2014 00:59:05 +0000 (17:59 -0700)]
* src/fileio.c (write-region-inhibit-fsync): Doc tweak.

9 years agoDoc tweaks re < etc
Glenn Morris [Sun, 8 Jun 2014 00:51:10 +0000 (17:51 -0700)]
Doc tweaks re < etc

* doc/lispref/numbers.texi (Comparison of Numbers): Copyedits.

* src/data.c (Flss, Fgtr, Fleq, Fgeq): Doc tweaks.

9 years agoMerge from emacs-24; up to 2014-06-01T23:37:59Z!eggert@cs.ucla.edu
Glenn Morris [Sun, 8 Jun 2014 00:35:27 +0000 (17:35 -0700)]
Merge from emacs-24; up to 2014-06-01T23:37:59Z!eggert@cs.ucla.edu

9 years agoSome Acknowledgments updates for the manual
Glenn Morris [Sun, 8 Jun 2014 00:19:17 +0000 (17:19 -0700)]
Some Acknowledgments updates for the manual

* doc/emacs/ack.texi (Acknowledgments): Updates.

* doc/emacs/emacs.texi (Acknowledgments): Updates.

9 years agoDoc tweaks re prettify-symbols-mode
Glenn Morris [Sat, 7 Jun 2014 23:39:40 +0000 (16:39 -0700)]
Doc tweaks re prettify-symbols-mode

* doc/emacs/programs.texi (Prettifying Symbols): Remove node.
(Misc for Programs): Mention more briefly here.

* doc/emacs emacs.texi (Top): Update menu.

9 years agoDocument latest changes in make_lispy_position.
Eli Zaretskii [Sat, 7 Jun 2014 14:29:48 +0000 (17:29 +0300)]
Document latest changes in make_lispy_position.

 doc/lispref/commands.texi (Click Events): Update contents of click event's
 position list due to last changes in make_lispy_position.

  etc/NEWS: Mention the incompatible change.

9 years agoFix last commit.
Eli Zaretskii [Sat, 7 Jun 2014 07:25:49 +0000 (10:25 +0300)]
Fix last commit.

 src/term.c (tty_menu_show) [WINDOWSNT]: Make tty_menu_show extern
 only for WINDOWSNT.
 src/menu.h (tty_menu_show) [WINDOWSNT]: Declare extern only for WINDOWSNT.

9 years agoPort better to AIX.
Paul Eggert [Sat, 7 Jun 2014 06:10:39 +0000 (23:10 -0700)]
Port better to AIX.

* configure.ac (with_xpm_set): New shell var.
(_THREAD_SAFE): Define on AIX if HAVE_PTHREAD.
(with_xpm): Default to 'no' on AIX.
(LIBXPM): Append -lXpm if -lXaw is also used, as the latter
requires the former on AIX.

Fixes: debbugs:17598

9 years ago* lisp/desktop.el: Activate auto-saving on window configuration changes.
Juri Linkov [Fri, 6 Jun 2014 23:38:40 +0000 (02:38 +0300)]
* lisp/desktop.el: Activate auto-saving on window configuration changes.
(desktop-save-mode, desktop-auto-save-timeout): Add/remove
`desktop-auto-save-set-timer' to/from `window-configuration-change-hook'.
(desktop-auto-save-set-timer): Change REPEAT arg of
`run-with-idle-timer' from t to nil.
http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00147.html

9 years ago* term.c (tty_menu_show) [!HAVE_NTGUI]: Now static.
Paul Eggert [Fri, 6 Jun 2014 19:33:19 +0000 (12:33 -0700)]
* term.c (tty_menu_show) [!HAVE_NTGUI]: Now static.

* menu.h (tty_menu_show) [!HAVE_NTGUI]: Omit extern decl.

9 years ago* lisp/vc/vc-hg.el (vc-hg-create-tag, vc-hg-retrieve-tag): New functions.
Santiago Payà i Miralta [Fri, 6 Jun 2014 16:38:44 +0000 (12:38 -0400)]
* lisp/vc/vc-hg.el (vc-hg-create-tag, vc-hg-retrieve-tag): New functions.

Fixes: debbugs:17586

9 years ago* lisp/vc/vc-hg.el (vc-hg-working-revision): Use "hg parent" and
Santiago Payà i Miralta [Fri, 6 Jun 2014 16:29:55 +0000 (12:29 -0400)]
* lisp/vc/vc-hg.el (vc-hg-working-revision): Use "hg parent" and
vc-hg-command.

Fixes: debbugs:17570

9 years ago* lisp/vc/vc-hg.el (vc-hg-log-graph): New var.
Santiago Payà i Miralta [Fri, 6 Jun 2014 16:11:53 +0000 (12:11 -0400)]
* lisp/vc/vc-hg.el (vc-hg-log-graph): New var.
(vc-hg-print-log): Use it.
(vc-hg-root-log-format): Include branch name and bookmarks; ignore
graph output.

Fixes: debbugs:17515

9 years ago* src/window.c (Frecenter): Signal an error if window-buffer is not
Stefan Monnier [Fri, 6 Jun 2014 14:37:05 +0000 (10:37 -0400)]
* src/window.c (Frecenter): Signal an error if window-buffer is not
current-buffer.

9 years ago* lisp/international/mule-cmds.el (ucs-names): Add special entry for BEL.
Stefan Monnier [Fri, 6 Jun 2014 14:25:39 +0000 (10:25 -0400)]
* lisp/international/mule-cmds.el (ucs-names): Add special entry for BEL.

Fixes: debbugs:17702

9 years agoDoc updates re window-setup-hook
Glenn Morris [Fri, 6 Jun 2014 07:19:23 +0000 (00:19 -0700)]
Doc updates re window-setup-hook

* lisp/startup.el (window-setup-hook): Doc fix.

* doc/lispref/display.texi (Window Systems): Remove window-setup-hook.

* doc/lispref/os.texi (Startup Summary, Init File):
Improve description of window-setup-hook.
(Terminal-Specific): Update window-setup-hook cross-reference.

* doc/lispref/hooks.texi (Standard Hooks):
Update window-setup-hook cross-reference.

9 years ago* admin/FOR-RELEASE: Mention ack.texi
Glenn Morris [Fri, 6 Jun 2014 06:49:17 +0000 (23:49 -0700)]
* admin/FOR-RELEASE: Mention ack.texi

9 years agoDocument incompatible overlay priority change
Glenn Morris [Fri, 6 Jun 2014 06:45:16 +0000 (23:45 -0700)]
Document incompatible overlay priority change

* doc/lispref/display.texi (Overlay Properties): Update re priority.

* etc/NEWS: Related edit.

Fixes: debbugs:17234

9 years ago* lisp/mouse.el (mouse-posn-property): Ignore buffer position info when the
Stefan Monnier [Fri, 6 Jun 2014 02:35:17 +0000 (22:35 -0400)]
* lisp/mouse.el (mouse-posn-property): Ignore buffer position info when the
even happened elsewhere.
* src/keyboard.c (make_lispy_position): Don't include a buffer position in
mode/header-line mouse events.

9 years ago* src/keyboard.c (read_char): Handle (t . <event>) in the second use of
Stefan Monnier [Fri, 6 Jun 2014 02:22:40 +0000 (22:22 -0400)]
* src/keyboard.c (read_char): Handle (t . <event>) in the second use of
Vunread_command_events.

Fixes: debbugs:17650

9 years ago* xterm.c (x_setup_pointer_blanking): Conditionally
Dmitry Antipov [Fri, 6 Jun 2014 01:11:26 +0000 (05:11 +0400)]
* xterm.c (x_setup_pointer_blanking): Conditionally
probe Xfixes until this stuff is stabilized (Bug#17609).

9 years ago* emacs-lisp/tabulated-list.el (tabulated-list-print): Only call
Mario Lang [Fri, 6 Jun 2014 00:39:22 +0000 (02:39 +0200)]
* emacs-lisp/tabulated-list.el (tabulated-list-print): Only call
`recenter' if `current-buffer' is equal to `window-buffer'.

9 years ago* etc/themes/deeper-blue-theme.el (diff-added, diff-changed, diff-removed):
Juri Linkov [Thu, 5 Jun 2014 23:31:46 +0000 (02:31 +0300)]
* etc/themes/deeper-blue-theme.el (diff-added, diff-changed, diff-removed):
Set face definitions explicitly.  Inherit indicator faces from them.

Fixes: debbugs:17695

9 years ago* emacs-lisp/cl-macs.el (cl-macrolet): Simplify last change.
Leo Liu [Thu, 5 Jun 2014 23:08:59 +0000 (07:08 +0800)]
* emacs-lisp/cl-macs.el (cl-macrolet): Simplify last change.

9 years agolisp/gnus/gnus-art.el (gnus-mime-buttonize-attachments-in-header): Improve criterion...
Katsumi Yamaoka [Thu, 5 Jun 2014 22:43:36 +0000 (22:43 +0000)]
lisp/gnus/gnus-art.el (gnus-mime-buttonize-attachments-in-header): Improve criterion that finds parts to display

9 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.

9 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.

9 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.

9 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'.

9 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.

9 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 “&nbsp;”[1], use a numeric reference for
a no-break space (namely “&#160;”)

[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.

9 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.

9 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.

9 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.

9 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.

9 years agoSpelling fixes.
Paul Eggert [Thu, 5 Jun 2014 08:14:36 +0000 (01:14 -0700)]
Spelling fixes.

9 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.

9 years ago* lisp/emacs-lisp/package.el: Comment update
Glenn Morris [Thu, 5 Jun 2014 07:08:42 +0000 (00:08 -0700)]
* lisp/emacs-lisp/package.el: Comment update

9 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.

9 years agoSome documentation for signing of packages
Glenn Morris [Thu, 5 Jun 2014 06:15:44 +0000 (23:15 -0700)]
Some documentation for signing of packages

* doc/emacs/package.texi (Package Menu, Package Installation):
Mention signed packages.

* doc/lispref/package.texi (Package Archives): Mention signing packages.

* lisp/emacs-lisp/package.el (package-check-signature)
(package-unsigned-archives): Doc fixes.

* etc/NEWS: Related edits.

9 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.

9 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.

9 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.

9 years agont/INSTALL: Instructions how to start Bash.
Eli Zaretskii [Wed, 4 Jun 2014 16:44:04 +0000 (19:44 +0300)]
nt/INSTALL: Instructions how to start Bash.

9 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.

9 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.

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

9 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.

9 years agoFix infloop of -nw session at exit on MS-Windows under a debugger.
Eli Zaretskii [Wed, 4 Jun 2014 10:54:58 +0000 (13:54 +0300)]
Fix infloop of -nw session at exit on MS-Windows under a debugger.

 src/sysdep.c (reset_sys_modes): Use cursorX, not curX, as the latter
 contains garbage on WINDOWSNT (which could potentially infloop at
 exit).

9 years agoAttempt to solve bug #17497 by minimizing cursor motion during TTY menu updates.
Eli Zaretskii [Wed, 4 Jun 2014 09:16:46 +0000 (12:16 +0300)]
Attempt to solve bug #17497 by minimizing cursor motion during TTY menu updates.

 src/term.c (tty_menu_display): Don't position cursor here.  Instead,
 pass the cursor coordinates to update_frame_with_menu.
 (tty_menu_activate): Send the hide cursor command only once in an
 iteration through the outer 'while' loop.
 src/dispnew.c (update_frame_1): Accept an additional argument
 SET_CURSOR_P, and position the cursor at the end of the frame
 update only if that argument is non-zero.  All callers changed to
 provide the additional argument as non-zero, except for
 update_frame_with_menu.
 (update_frame_with_menu): Accept 2 additional arguments ROW and
 COL; if they are non-negative, instruct update_frame_1 not to
 position the cursor, and instead position it according to ROW and
 COL.
 src/dispextern.h (update_frame_with_menu): Update prototype.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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

9 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.

9 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.

9 years agoIn display-buffer-use-some-window don't shrink window used (Bug#17671).
Martin Rudalics [Tue, 3 Jun 2014 12:38:17 +0000 (14:38 +0200)]
In display-buffer-use-some-window don't shrink window used (Bug#17671).

* window.el (display-buffer-use-some-window): Don't make window
used smaller than it was before (Bug#17671).

9 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.

9 years agoMinor fix of the last commit in menu-bar-open.
Eli Zaretskii [Tue, 3 Jun 2014 09:50:04 +0000 (12:50 +0300)]
Minor fix of the last commit in menu-bar-open.

 lisp/menu-bar.el (menu-bar-open): Fix last change: use the PC
 '(redisplay)' instead of '(sit-for 0)'.

9 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.

9 years agoFix Bug#17653.
Michael Albinus [Tue, 3 Jun 2014 07:43:24 +0000 (09:43 +0200)]
Fix Bug#17653.

* net/tramp.el (tramp-ssh-controlmaster-options): Improve search regexp.

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

9 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.

9 years ago* emacs/package.texi (Package Installation): Mention package-pinned-packages.
Glenn Morris [Tue, 3 Jun 2014 04:45:56 +0000 (21:45 -0700)]
* emacs/package.texi (Package Installation): Mention package-pinned-packages.

* etc/NEWS: Related markup.

9 years ago* lisp/emacs-lisp/package.el (package-pinned-packages): Doc fix.
Glenn Morris [Tue, 3 Jun 2014 04:41:20 +0000 (21:41 -0700)]
* lisp/emacs-lisp/package.el (package-pinned-packages): Doc fix.

* etc/NEWS: Related edit.

9 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.

9 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.

9 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.

9 years agoFix TTY menu invocation via M-x.
Eli Zaretskii [Mon, 2 Jun 2014 18:58:36 +0000 (21:58 +0300)]
Fix TTY menu invocation via M-x.

 lisp/menu-bar.el (menu-bar-open): Fix invocation via M-x by forcing
 the update of the menu bar.

9 years ago* src/callproc.c (call_process): Don't check read-only if we don't insert
Stefan Monnier [Mon, 2 Jun 2014 18:42:07 +0000 (14:42 -0400)]
* src/callproc.c (call_process): Don't check read-only if we don't insert
anything.

Fixes: debbugs:17666

9 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.

9 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.

9 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.

9 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.

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

9 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.

9 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.

9 years agosrc/dispnew.c (update_frame_with_menu): Set display_completed.
Eli Zaretskii [Mon, 2 Jun 2014 16:53:02 +0000 (19:53 +0300)]
src/dispnew.c (update_frame_with_menu): Set display_completed.

9 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 "/".

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 years ago* doc/emacs/misc.texi: Small updates (no need to merge to trunk)
Glenn Morris [Mon, 2 Jun 2014 01:14:08 +0000 (18:14 -0700)]
* doc/emacs/misc.texi: Small updates (no need to merge to trunk)

* doc/emacs/misc.texi [iftex]: Update chapter summary.
(Emulation): Remove ludicrously outdated claim.