Paul Eggert [Fri, 20 Jun 2014 16:05:10 +0000 (09:05 -0700)]
Diagnose failures due to colons in directory names.
* Makefile.in (epaths-force): Don't allow ':' in directories whose
names go into a colon-separated path.
* configure.ac: Fail if submake fails.
Fixes: debbugs:17278
Stefan Monnier [Thu, 19 Jun 2014 22:07:09 +0000 (18:07 -0400)]
* cedet/semantic/ia.el (semantic-ia-complete-symbol-menu): Use posn-at-point
instead of senator-completion-menu-point-as-event; un-comment, tho keep
the "no smart completion" fallback commented since it still doesn't work.
William Xu [Thu, 19 Jun 2014 21:08:44 +0000 (17:08 -0400)]
* lisp/progmodes/hideif.el (hif-string-to-number): Don't return float for
hex integer constants.
Fixes: debbugs:17807
Kelvin White [Thu, 19 Jun 2014 17:22:31 +0000 (13:22 -0400)]
Update comments in erc-format-@nick to reflect changes in last merge.
Kelvin White [Thu, 19 Jun 2014 17:00:00 +0000 (13:00 -0400)]
Merge commit for debbugs:17755
Kelvin White [Thu, 19 Jun 2014 16:56:18 +0000 (12:56 -0400)]
ERC: Better user mode support
Fixes: debbugs:17755
Dmitry Antipov [Thu, 19 Jun 2014 16:52:20 +0000 (20:52 +0400)]
Minor cleanup of fonset code.
* fontset.c (FONTSET_ID, set_fontset_id, FONTSET_NAME)
(set_fontset_name, FONTSET_ASCII, set_fontset_ascii)
(FONTSET_BASE, set_fontset_base, FONTSET_FRAME)
(set_fontset_frame, FONTSET_NOFONT_FACE, set_fontset_nofont_face)
(FONTSET_DEFAULT, set_fontset_default, FONTSET_FALLBACK)
(set_fontset_fallback): Reorder extra slots and avoid unused slots.
(free_realized_fontset): Remove because a no-op since 2008.
(free_face_fontset): Adjust user.
(syms_of_fontset): Shrink fontset by one extra slot.
Stefan Monnier [Thu, 19 Jun 2014 14:58:57 +0000 (10:58 -0400)]
* lisp/international/mule-util.el (truncate-string-ellipsis): New var.
(truncate-string-to-width): Use it.
Robert Brown (tiny change) [Thu, 19 Jun 2014 14:03:45 +0000 (10:03 -0400)]
* etc/NEWS: New Tramp method "nc".
* lisp/emacs-lisp/lisp-mode.el (lisp-string-after-doc-keyword-p): New fun.
(lisp-string-in-doc-position-p): New function, extracted from
lisp-font-lock-syntactic-face-function.
(lisp-font-lock-syntactic-face-function): Use them.
Fixes: debbugs:9130
Grégoire Jadi [Thu, 19 Jun 2014 11:14:59 +0000 (19:14 +0800)]
* net/rcirc.el (rcirc-omit-mode): Fix recenter error.
Fixes: debbugs:17769
Stefan Monnier [Wed, 18 Jun 2014 19:38:00 +0000 (15:38 -0400)]
* lisp/play/bubbles.el (bubbles--initialize, bubbles--show-scores)
(bubbles--game-over): Don't add `intangible' properties since they
didn't work anyway.
Juri Linkov [Wed, 18 Jun 2014 08:54:11 +0000 (11:54 +0300)]
* lisp/vc/ediff-init.el (ediff-current-diff-Ancestor)
(ediff-fine-diff-Ancestor, ediff-even-diff-A, ediff-even-diff-B)
(ediff-even-diff-C, ediff-even-diff-Ancestor, ediff-odd-diff-A)
(ediff-odd-diff-B, ediff-odd-diff-C, ediff-odd-diff-Ancestor):
Add `min-colors 88' version with removed black/white foregrounds.
Fixes: debbugs:10181
Juri Linkov [Wed, 18 Jun 2014 08:48:49 +0000 (11:48 +0300)]
* lisp/vc/diff-mode.el (diff-changed): Empty face definition
to use `diff-removed' and `diff-added' on tty as well.
(diff-context): Use darker color on light background and
lighter color on dark background.
Fixes: debbugs:10181
Juri Linkov [Wed, 18 Jun 2014 08:33:57 +0000 (11:33 +0300)]
* lisp/vc/diff-mode.el (diff-refine-changed): Rename from
`diff-refine-change' for consistency with `diff-changed'.
(diff-refine-change): Add obsolete face alias.
* lisp/vc/smerge-mode.el (smerge-refined-changed): Rename from
`smerge-refined-change'.
(smerge-refined-change): Add obsolete face alias.
Fixes: debbugs:10181
Stefan Monnier [Tue, 17 Jun 2014 19:33:58 +0000 (15:33 -0400)]
* lisp/rect.el (rectangle-preview): New custom.
(rectangle): New group.
(rectangle--pos-cols): Add `window' argument.
(rectangle--string-preview-state, rectangle--string-preview-window):
New vars.
(rectangle--string-flush-preview, rectangle--string-erase-preview)
(rectangle--space-to, rectangle--string-preview): New functions.
(string-rectangle): Use them.
(rectangle--inhibit-region-highlight): New var.
(rectangle--highlight-for-redisplay): Obey it. Make sure
`apply-on-region' uses the point-crutches of the right window.
Use :align-to rather than multiple spaces.
Paul Eggert [Tue, 17 Jun 2014 16:09:19 +0000 (09:09 -0700)]
Omit redundant extern decls.
Most of this patch is from Dmitry Antipov, in:
http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00263.html
* configure.ac (WERROR_CFLAGS): Add -Wredundant-decls.
* lib-src/emacsclient.c (getenv): Remove decl.
* lib-src/make-docfile.c (write_globals): Add ATTRIBUTE_CONST for
Fbyteorder, Ftool_bar_height, Fmax_char, Fidentity.
* lwlib/lwlib-Xm.c (lw_motif_widget_p, xm_update_one_value)
(xm_create_dialog, xm_destroy_instance, xm_popup_menu)
(xm_set_keyboard_focus, xm_set_main_areas): Remove decls.
* src/commands.h (update_mode_lines):
* src/frame.h (Qbackground_color, Qforeground_color)
(x_set_menu_bar_lines):
* src/ftfont.c (ftfont_font_format):
* src/intervals.h (Qkeymap, Qfont):
* src/keyboard.c (timer_check, safe_run_hooks, Qregion_extract_function):
* src/lisp.h (Ffboundp, Qnil, Qt, Qlambda, Qintegerp, Qwholenump)
(Qsymbolp, Qlisp, Qconsp, Qstringp, Qarrayp, Qbufferp, Qmarkerp)
(Qvectorp, Qbuffer_or_string_p, Qchar_table_p, Qvector_or_char_table_p)
(Qfloatp, Qnumberp, Qfont_spec, Qfont_entity, Qfont_object)
(Fbyteorder, wrong_type_argument, Fmax_char, syms_of_composite)
(Fidentity, extract_float, init_display, syms_of_display, Qdisplay):
(Qimage, Qbox, redisplay_preserve_echo_area, char_table_ref)
(char_table_set, char_table_translate, Qautoload, Qbottom, Qtop)
(Qvisible, Qfont, Qfront_sticky, Qrear_nonsticky, init_sigio)
(Qtool_bar, Qheader_line):
* src/macros.c (Fexecute_kbd_macro):
* src/xdisp.c (Ftool_bar_height, Ftool_bar_height):
* src/xterm.c (x_delete_terminal, XSetIMValues):
* src/xterm.h (x_set_window_size, x_query_color, x_get_focus_frame)
(x_implicitly_set_name, popup_activated)
(widget_store_internal_border):
Remove redundant decls.
* src/frame.c [USE_X_TOOLKIT]: Include widget.h.
* src/keyboard.c (Fexit_recursive_edit, Fabort_recursive_edit):
Remove _Noreturn, as make-docfile now does that for us.
* src/lisp.h (DEFUN): Don't declare fnname here; rely on make-docfile.
(Qregion_extract_function): New decl.
* src/window.c, src/xfns.c: Include menu.h.
Stefan Monnier [Tue, 17 Jun 2014 13:50:22 +0000 (09:50 -0400)]
* src/callint.c (Fcall_interactively): Fix up last change.
Fixes: debbugs:17701
Dmitry Antipov [Tue, 17 Jun 2014 13:41:14 +0000 (17:41 +0400)]
* lisp.h (STRING_COPYIN): Remove; unused.
* ccl.c (Fccl_execute_on_string):
* font.c (fon_intern_prop): Use make_specified_string.
Dmitry Antipov [Tue, 17 Jun 2014 03:40:29 +0000 (07:40 +0400)]
* eval.c (toplevel): Remove redundant #include directives.
* xterm.c (x_initialize): Add static to match prototype.
Dmitry Antipov [Tue, 17 Jun 2014 03:14:00 +0000 (07:14 +0400)]
* fileio.c (Fread_file_name): Do not pass redundant args and ...
* callint.c (read_file_name): ... convert to static here.
* lisp.h (Fread_file_name): Do not EXFUN it.
* composite.c (CHAR_COMPOSABLE_P): Replace unsafe macro with ...
(char_composable_p): ... static function. All users changed.
Paul Eggert [Mon, 16 Jun 2014 22:38:17 +0000 (15:38 -0700)]
* Makefile.in (ns-app): Fix typo that broke build on OS X.
Reported by David Caldwell in:
http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00251.html
Dmitry Antipov [Mon, 16 Jun 2014 08:49:09 +0000 (12:49 +0400)]
Do not ask for XRender extension each time XFT font is opened.
* xftfont.c (xftfont_open): Move call to XRenderQueryExtension ...
* xterm.c (x_term_init) [HAVE_XFT]: ... to here. Adjust comment.
Andrea Rossetti [Mon, 16 Jun 2014 06:37:37 +0000 (08:37 +0200)]
In ruler-mode fix calculation of column from mouse position (Bug#17768).
* ruler-mode.el (ruler-mode-window-col)
(ruler-mode-mouse-set-left-margin)
(ruler-mode-mouse-set-right-margin): Fix calculation of column
from mouse position (Bug#17768).
Ron Schnell [Mon, 16 Jun 2014 05:05:05 +0000 (01:05 -0400)]
* play/dunnet.el (dun-doassign): Fixed bug where UNIX variable assignment without varname or rhs causes crash.
* play/dunnet.el (dun-ftp): Fixed bug where blank ftp password is allowed, making it impossible to win endgame.
* play/dunnet.el (dun-unix-verbs): Added ssh as alias to rlogin, because nobody knows what rlogin is anymore.
* play/dunnet.el (dun-help): Bumped version number, updated contact info.
Glenn Morris [Sun, 15 Jun 2014 22:42:31 +0000 (15:42 -0700)]
Makefile comments
Michael Albinus [Sun, 15 Jun 2014 20:49:10 +0000 (22:49 +0200)]
* NEWS: New Tramp method "nc".
Glenn Morris [Sun, 15 Jun 2014 17:59:30 +0000 (10:59 -0700)]
* oldXMenu/Makefile.in (CPPFLAGS): Explicitly set via configure.
Glenn Morris [Sun, 15 Jun 2014 17:45:38 +0000 (10:45 -0700)]
Explicitly set LDFLAGS in some sub-Makefiles
* lib-src/Makefile.in (LDFLAGS): Explicitly set via configure.
* nt/Makefile.in (LDFLAGS): Explicitly set via configure.
Eli Zaretskii [Sun, 15 Jun 2014 17:36:04 +0000 (20:36 +0300)]
Fix MS-Windows build broken by latest Makefile.in changes.
nt/Makefile.in (CPPFLAGS): Define.
lib-src/Makefile.in (CPPFLAGS): Define.
Michael Albinus [Sun, 15 Jun 2014 15:57:47 +0000 (17:57 +0200)]
Sync with Tramp 2.2.10.
Michael Albinus [Sun, 15 Jun 2014 15:56:58 +0000 (17:56 +0200)]
Sync with Tramp 2.2.10.
* test/automated/tramp-tests.el (tramp--test-enabled): Ignore errors.
(tramp--instrument-test-case): Extend docstring.
(tramp-test15-copy-directory): Skip for tramp-smb.el.
(tramp-test21-file-links): Use `file-truename' for directories.
(tramp-test27-start-file-process, tramp-test28-shell-command):
Retrieve process output more robustly.
(tramp--test-check-files): Extend test.
(tramp-test30-special-characters): Skip for tramp-adb.el,
tramp-gvfs.el and tramp-smb.el. Add further file names.
Michael Albinus [Sun, 15 Jun 2014 15:47:35 +0000 (17:47 +0200)]
Sync with Tramp 2.2.10.
* lisp/net/tramp-adb.el (tramp-adb-handle-write-region): Improve messages.
(tramp-adb-maybe-open-connection): Don't set
`tramp-current-*' variables.
* lisp/net/tramp-cache.el (tramp-flush-file-function): Do not flush
file properties of temporary buffers.
* lisp/net/tramp-ftp.el (top): Remove special handling for URL syntax.
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods) <sftp>: Add.
(tramp-gvfs-handle-delete-file): Flush file
properties, not directory properties.
(tramp-gvfs-handle-file-attributes): Use `string-to-number' when
reading "unix::mode".
(tramp-gvfs-handle-file-name-all-completions):
Use "-h" option for "gvfs-ls".
(tramp-gvfs-url-file-name): `user' and `localname' could be nil.
(tramp-gvfs-send-command): Simplify traces.
* lisp/net/tramp-sh.el (vc-handled-backends, vc-bzr-program)
(vc-git-program, vc-hg-program): Declare.
(tramp-methods) <sftp>: Remove. It has never worked satisfactorily.
(tramp-methods) <nc>: Add new method.
(tramp-methods) <telnet>: Redirect stderr to "/dev/null".
(tramp-methods) <plink, plinkx, pscp, psftp>: Improve
`tramp-login-args'.
(tramp-default-user-alist): Add "nc".
(top): Remove completion function for "sftp". Add completion
functions for "nc" and "psftp".
(tramp-do-copy-or-rename-file-out-of-band): Tweak docstring.
Implement support for "nc" method.
(tramp-sh-handle-expand-file-name, tramp-local-coding-commands)
(tramp-remote-coding-commands, tramp-call-local-coding-command):
Tweak docstring.
(tramp-sh-handle-write-region): Tweak error message.
(tramp-sh-handle-vc-registered): Remove backends when the remote
binary does not exist.
(tramp-find-inline-encoding): Do not raise an error.
(tramp-make-copy-program-file-name): Tweak docstring. Handle also
the "nc" case. Quote result also locally.
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-set-file-acl): Use `start-process'.
(tramp-smb-handle-insert-directory): Use progress reporter.
(tramp-smb-handle-rename-file): Flush also file properties of
FILENAME.
* lisp/net/tramp.el (tramp-methods): Tweak docstring.
(tramp-handle-file-accessible-directory-p): Check for
`file-readable-p' instead of `file-executable-p'.
(tramp-check-cached-permissions): Use
`tramp-compat-file-attributes'.
(tramp-call-process): Add new argument VEC. Adapt callees in all
tramp*.el files.
* lisp/net/trampver.el: Update release number.
Michael Albinus [Sun, 15 Jun 2014 15:09:22 +0000 (17:09 +0200)]
Sync with Tramp 2.2.10.
* doc/misc/tramp.texi (Inline methods): Remove restriction on "telnet".
Recommend sharing ssh connections for "plink".
(External methods): Remove "sftp". Merge "pscp" and "psftp"
descriptions. Recommend sharing ssh connections. Add "nc" method.
(GVFS based methods): Add "sftp".
(Customizing Completion, External packages, Issues):
Use @dots{}.
* doc/misc/trampver.texi: Update release number.
Eli Barzilay [Sun, 15 Jun 2014 04:52:34 +0000 (00:52 -0400)]
* lisp/calculator.el: Lots of revisions
- Kill the calculator buffer after electric mode too.
- Make decimal mode have "," groups, so it's more fitting for use in
money calculations.
- Factorial works with non-integer inputs.
- Swallow less errors.
- Lots of other improvements, but no changes to custom variables, or
other user visible changes (except the above).
Stefan Monnier [Sun, 15 Jun 2014 04:10:40 +0000 (00:10 -0400)]
* lisp/ses.el: Miscellaneous cleanups; use lexical-binding; avoid add-to-list.
(ses-localvars): Remove ses--local-printer-list, unused.
(ses--metaprogramming): New macro. Use it to defvar variables.
(ses-set-localvars): Simplify.
(ses--locprn, ses-cell): Use defstruct. Change ses-cell's
property-list into an alist.
(ses-locprn-get-compiled, ses-locprn-compiled-aset)
(ses-locprn-get-def, ses-locprn-def-aset, ses-locprn-get-number):
Remove; use defstruct accessors/setters instead.
(ses-cell-formula-aset, ses-cell-printer-aset)
(ses-cell-references-aset): Remove, use setf instead.
(ses--alist-get): New function.
(ses-cell-property): Rename from ses-cell-property-get and rewrite.
Use an alist instead of a plist and don't do move-to-front since the
list is always short.
(ses-cell-property-get-fun, ses-cell-property-delq-fun)
(ses-cell-property-set-fun, ses-cell-property-set)
(ses-cell-property-pop-fun, ses-cell-property-get-handle)
(ses-cell-property-handle-car, ses-cell-property-handle-setcar): Remove.
(ses--letref): New macro.
(ses-cell-property-pop): Rewrite.
(ses--cell): Rename from ses-cell and make it into a function.
Make `formula' fallback on `value' if nil.
(ses--local-printer): Rename from ses-local-printer and make it into
a function.
(ses-set-cell): Turn it into a macro so finding the accessor from the
field name is done at compile time.
(ses-repair-cell-reference-all): Test presence of `sym' rather than
`ref' before adding `sym' to :ses-repair-reference.
(ses-calculate-cell): Use ses--letref rather than
ses-cell-property-get-handle.
(ses-write-cells): Use a single prin1-to-string.
(ses-setter-with-undo): New function.
(ses-aset-with-undo, ses-set-with-undo): Rewrite using it.
(ses-unset-with-undo): Remove.
(ses-load): Prefer apply' over `eval'.
(ses-read-printer, ses-set-column-width): Use standard "(default
foo)" format.
Glenn Morris [Sun, 15 Jun 2014 01:16:35 +0000 (18:16 -0700)]
* oldXMenu/Makefile.in: Fix typo in earlier change.
Glenn Morris [Sun, 15 Jun 2014 00:34:22 +0000 (17:34 -0700)]
Use `make -C' rather than `cd && make'
* Makefile.in: Use `make -C' rather than `cd && make' throughout.
* lib-src/Makefile.in (../lib/libgnu.a): Use `make -C' rather than `cd && make'.
* lisp/Makefile.in (leim, semantic): Use `make -C' rather than `cd && make'.
* lwlib/Makefile.in ($(globals_h)): Use `make -C' rather than `cd && make'.
* src/Makefile.in: Use `make -C' rather than `cd && make' throughout.
Glenn Morris [Sun, 15 Jun 2014 00:17:21 +0000 (17:17 -0700)]
Parallelize clean rules using GNU make features
* Makefile.in: (submake_template): New definition.
(mostlyclean_dirs, clean_dirs, distclean_dirs, maintainer_clean_dirs):
New variables.
(mostlyclean, clean, distclean, bootstrap-clean, maintainer-clean)
(extraclean): Define using each subdirectory as a prequisite.
* lib/Makefile.am (bootstrap-clean):
* doc/emacs/Makefile.in (bootstrap-clean):
* doc/lispintro/Makefile.in (bootstrap-clean):
* doc/lispref/Makefile.in (bootstrap-clean):
* doc/misc/Makefile.in (bootstrap-clean):
* lib-src/Makefile.in (bootstrap-clean):
* lwlib/Makefile.in (bootstrap-clean):
* nextstep/Makefile.in (bootstrap-clean):
* nt/Makefile.in (bootstrap-clean):
* oldXMenu/Makefile.in (bootstrap-clean):
New rules, for symmetry/simplicity.
* lwlib/Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
* oldXMenu/Makefile.in (mostlyclean, clean, distclean, maintainer-clean, tags):
Declare as PHONY.
Glenn Morris [Sun, 15 Jun 2014 00:06:30 +0000 (17:06 -0700)]
Merge from emacs-24; up to 2014-06-03T06:51:18Z!eliz@gnu.org
Glenn Morris [Sat, 14 Jun 2014 23:57:24 +0000 (16:57 -0700)]
NEWS copyedits
Glenn Morris [Sat, 14 Jun 2014 23:54:39 +0000 (16:54 -0700)]
Stop cc-mode loading cl at runtime
* lisp/progmodes/cc-langs.el: Require cl-lib.
Replace delete-duplicates and mapcan by cl- versions throughout.
And cl-macroexpand-all by macroexpand-all.
(delete-duplicates, mapcan, cl-macroexpand-all): No need to declare.
Fixes: debbugs:17463
Ron Schnell [Sat, 14 Jun 2014 20:57:34 +0000 (16:57 -0400)]
Changed Dunnet so that if a lamp is in the room that would otherwise be dark, the player will not
be eaten by a grue.
Paul Eggert [Sat, 14 Jun 2014 20:24:08 +0000 (13:24 -0700)]
Port part of the AIX fix to Solaris.
* configure.ac (_REENTRANT): Define on Solaris if HAVE_PTHREAD.
This ports part of the recent AIX fix to Solaris. It is needed
for the same reason that _THREAD_SAFE is needed on AIX, e.g., to
make sure that each thread has its own 'errno'.
Fixes: debbugs:17598
Eli Zaretskii [Sat, 14 Jun 2014 16:37:15 +0000 (19:37 +0300)]
Fix documentation mentioned in bug #17768.
lisp/subr.el (posn-col-row): Doc fix.
doc/lispref/commands.texi (Accessing Mouse): Improve the wording of the
posn-col-row documentation.
Eli Zaretskii [Sat, 14 Jun 2014 11:09:10 +0000 (14:09 +0300)]
Fix bug #17777 with keyboard macros and visual-order cursor movement.
src/xdisp.c (Fmove_point_visually): Don't use the glyph matrix
information if we are in the middle of executing a keyboard macro,
since redisplay doesn't update the screen until the macro is
finished.
Juri Linkov [Sat, 14 Jun 2014 09:50:13 +0000 (12:50 +0300)]
* lisp/bindings.el: Put `ascii-character' property on keypad keys mapped to characters.
Fixes: debbugs:17759
Eli Zaretskii [Sat, 14 Jun 2014 09:44:20 +0000 (12:44 +0300)]
src/xdisp.c: Enhance commentary.
Glenn Morris [Fri, 13 Jun 2014 23:05:00 +0000 (19:05 -0400)]
With GNU make, MFLAGS is not needed
* Makefile.in (CC, CFLAGS, LDFLAGS, CPPFLAGS, abs_top_srcdir):
Remove, no longer used.
(lib, lib-src, lisp, nt, src, blessmail, install-arch-dep)
(install-nt, install-strip, uninstall, uninstall-nt)
(mostlyclean, clean, distclean, bootstrap-clean)
(maintainer-clean, extraclean, TAGS, tags, check, $(DOCS)):
($(INSTALL_DOC), $(UNINSTALL_DOC), info, bootstrap, check-declare):
GNU make automatically passes command-line arguments to sub-makes.
* admin/unidata/Makefile.in (${DSTDIR}/charprop.el):
GNU make automatically passes command-line arguments to sub-makes.
* lib-src/Makefile.in (../lib/libgnu.a):
GNU make automatically passes command-line arguments to sub-makes.
* lisp/Makefile.in ($(lisp)/cus-load.el, $(lisp)/finder-inf.el)
(autoloads, $(lisp)/subdirs.el, compile-main, leim, semantic, compile)
(compile-always): GNU make automatically passes
command-line arguments to sub-makes.
* lwlib/Makefile.in ($(globals_h)):
GNU make automatically passes command-line arguments to sub-makes.
* src/Makefile.in ($(leimdir)/leim-list.el, $(srcdir)/macuvs.h)
($(lispsource)/international/charprop.el)
($(libsrc)/make-docfile$(EXEEXT), $(lwlibdir)/liblw.a)
($(oldXMenudir)/libXMenu11.a, ns-app, .el.elc)
($(lispsource)/loaddefs.el, bootstrap-emacs$(EXEEXT)):
GNU make automatically passes command-line arguments to sub-makes.
* test/automated/Makefile.in (compile-main):
GNU make automatically passes command-line arguments to sub-makes.
Glenn Morris [Fri, 13 Jun 2014 19:41:59 +0000 (15:41 -0400)]
* etc/PROBLEMS: Whitespace fix.
Glenn Morris [Fri, 13 Jun 2014 19:40:42 +0000 (15:40 -0400)]
* lisp/eshell/eshell.el: Remove old comment.
Glenn Morris [Fri, 13 Jun 2014 19:39:12 +0000 (15:39 -0400)]
* frame.el: Remove old comment.
Glenn Morris [Fri, 13 Jun 2014 19:37:52 +0000 (15:37 -0400)]
Remove pointless code in calendar-generate-window
* lisp/calendar/calendar.el (calendar-generate-window):
Remove pointless call to font-lock-fontify-buffer.
Glenn Morris [Fri, 13 Jun 2014 18:09:06 +0000 (11:09 -0700)]
NEWS copyedits
Paul Eggert [Fri, 13 Jun 2014 15:55:48 +0000 (08:55 -0700)]
Avoid hangs in accept-process-output.
* lisp.h, process.c (wait_reading_process_input):
Return int, not bool. All uses changed.
* process.c (SELECT_CANT_DO_WRITE_MASK):
Remove macro, replacing with ...
(SELECT_CAN_DO_WRITE_MASK): ... new constant, with inverted sense.
All uses changed.
(status_notify): New arg WAIT_PROC. Return int, not void.
All uses changed.
Fixes: debbugs:17647
Matthias Meulien [Fri, 13 Jun 2014 15:50:38 +0000 (11:50 -0400)]
* lisp/simple.el (completion-list-mode-map): Navigate with tab and backtab.
Fixes: debbugs:17767
Stefan Monnier [Fri, 13 Jun 2014 15:31:17 +0000 (11:31 -0400)]
* lisp/emacs-lisp/smie.el (smie-next-sexp): Fix up "other-end" info when
bumping forward into a closing paren.
Fixes: debbugs:17761
Stefan Monnier [Fri, 13 Jun 2014 15:06:29 +0000 (11:06 -0400)]
* lisp/term/xterm.el (xterm--version-handler): Work around for OSX
Terminal.app.
Fixes: debbugs:17607
Eli Zaretskii [Fri, 13 Jun 2014 14:42:43 +0000 (17:42 +0300)]
Don't try to display menus and dialogs in an 'initial' frame.
src/menu.c (Fx_popup_menu): Don't call the frame's menu_show_hook if
the frame is the initial frame, because the hook is not set up
then, and Emacs crashes.
Reported by Fabrice Popineau <fabrice.popineau@gmail.com>.
Eli Zaretskii [Fri, 13 Jun 2014 13:53:24 +0000 (16:53 +0300)]
Attempt to fix bug #17771 with segfault if "C-h h" is interrupted.
src/alloc.c (cleanup_vector): Don't dereference a font driver
pointer if it is NULL.
Bastien Guerry [Fri, 13 Jun 2014 09:00:08 +0000 (11:00 +0200)]
Fix previous revision (2014-06-12T15:54:37Z!theonewiththeevillook@yahoo.fr)
Nicolas Richard [Thu, 12 Jun 2014 15:54:37 +0000 (17:54 +0200)]
(describe-key) Mention the keymap in which the binding was found.
* lisp/help.el (help--key-binding-keymap): New function.
(help--binding-locus): New function.
(describe-key): Mention the keymap in which the binding was
found.
Fixes: debbugs:13948
Stefan Monnier [Thu, 12 Jun 2014 14:55:48 +0000 (10:55 -0400)]
* src/keymap.c (silly_event_symbol_error): Don't recommend the use of strings.
Stefan Monnier [Thu, 12 Jun 2014 14:35:09 +0000 (10:35 -0400)]
* lisp/hippie-exp.el (he--all-buffers): New function.
(try-expand-line-all-buffers, try-expand-list-all-buffers)
(try-expand-dabbrev-all-buffers): Use it.
Emilio C. Lopes [Thu, 12 Jun 2014 13:45:52 +0000 (09:45 -0400)]
* lisp/hippie-exp.el (try-expand-line-all-buffers)
(try-expand-list-all-buffers, try-expand-dabbrev-all-buffers):
Read hippie-expand-only-buffers and hippie-expand-ignore-buffers in the
original buffer, in case they're buffer-local.
Vincent Belaïche [Thu, 12 Jun 2014 06:04:48 +0000 (08:04 +0200)]
Adding support for SES local printer functions
Matthias Meulien [Thu, 12 Jun 2014 02:35:26 +0000 (22:35 -0400)]
* lisp/progmodes/python.el (import skeleton): New skeleton.
(python-mode-map): Bind it.
Fixes: debbugs:17672
Ivan Andrus [Thu, 12 Jun 2014 02:29:50 +0000 (22:29 -0400)]
* lisp/ffap.el (ffap-lax-url): New var.
(ffap-url-at-point): Use it.
(ffap-file-at-point): Avoid returning just "/".
Fixes: debbugs:17723
Matthias Meulien [Thu, 12 Jun 2014 02:24:24 +0000 (22:24 -0400)]
* lisp/progmodes/python.el (class skeleton): Don't erase last char of class
name.
Fixes: debbugs:17683
Cameron Desautels [Thu, 12 Jun 2014 02:18:54 +0000 (22:18 -0400)]
* lisp/help.el (where-is): Use `default' arg of completing-read.
Fixes: debbugs:17705
Kevin Ryde [Thu, 12 Jun 2014 02:14:45 +0000 (22:14 -0400)]
* lisp/files.el (auto-mode-alist): Map .ad files to xdefaults-mode.
Fixes: debbugs:17745
Stefan Monnier [Thu, 12 Jun 2014 01:47:28 +0000 (21:47 -0400)]
* lisp/international/mule-cmds.el: Use lexical-binding.
(ucs-names): Simplify.
Eric Hanchrow [Thu, 12 Jun 2014 01:45:33 +0000 (21:45 -0400)]
* lisp/progmodes/python.el (run-python): Use read-shell-command.
Glenn Morris [Thu, 12 Jun 2014 01:00:57 +0000 (21:00 -0400)]
Simplify doc/misc/Makefile.in with GNU Make features
* doc/misc/Makefile.in (mkinfodir): Remove.
(${buildinfodir}): Generate using an order-only prerequisite.
(.dvi.ps): Replace with pattern rule.
($INFO_TARGETS): Mark as PHONY.
(${buildinfodir}): New rule.
(EXTRA_OPTS, need_emacsver, need_emacsver_prefix): New variables.
(${buildinfodir}/%.info, %.dvi, %.pdf, %.html, %.ps):
New pattern rules, replacing numerous previous explicit rules.
(info_template): New definition.
(gnus.dvi, gnus.pdf): Use distinct intermediate files.
(mostlyclean): Adjust for above gnus change.
Stefan Monnier [Wed, 11 Jun 2014 21:51:44 +0000 (17:51 -0400)]
* lisp/rect.el: Make it possible to move bounds past EOL or into TABs.
(operate-on-rectangle): Use apply-on-rectangle.
(rectangle--mark-crutches): New var.
(rectangle--pos-cols, rectangle--col-pos, rectangle--point-col)
(rectangle--crutches, rectangle--reset-crutches): New functions.
(apply-on-rectangle): Obey crutches. Avoid setq.
Fix missing final iteration if end is at EOB&BOL.
(rectangle-mark-mode-map): Add remap bindings for
exchange-point-and-mark and char/line movements.
(rectangle--*-char): New function.
(rectangle-exchange-point-and-mark, rectangle-right-char)
(rectangle-left-char, rectangle-forward-char)
(rectangle-backward-char, rectangle-next-line)
(rectangle-previous-line): New commands.
(rectangle--place-cursor): New function.
(rectangle--highlight-for-redisplay): Use it. Use apply-on-rectangle.
Paul Eggert [Wed, 11 Jun 2014 20:03:46 +0000 (13:03 -0700)]
Backport fcntl.h AIX fix from the trunk.
This fixes a bug with the shell freezing. See:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17598#185
Merge from gnulib, incorporating:
2014-05-31 dup2, fcntl, fcntl-h: port to AIX 7.1
* lib/fcntl.in.h, m4/dup2.m4, m4/fcntl.m4:
Update from gnulib.
Glenn Morris [Wed, 11 Jun 2014 19:34:43 +0000 (15:34 -0400)]
* etc/NEWS: Relocate entry
Glenn Morris [Wed, 11 Jun 2014 19:33:14 +0000 (15:33 -0400)]
Merge from emacs-24; up to 2014-06-02T14:17:07Z!michael.albinus@gmx.de
Jan Djärv [Wed, 11 Jun 2014 17:57:51 +0000 (19:57 +0200)]
Fix memory leaks
* macfont.m (macfont_draw): positions where not freed.
* nsterm.h (EmacsApp): Always compile in shouldKeepRunning, isFirst
on Cocoa.
* nsterm.m (run): Always compile for Cocoa. Use runtime check to
determine 10.9.
Fixes: debbugs:17751
Paul Eggert [Wed, 11 Jun 2014 17:54:07 +0000 (10:54 -0700)]
Spelling fix.
Paul Eggert [Wed, 11 Jun 2014 17:51:27 +0000 (10:51 -0700)]
Use a shell function in configure.ac to cut down on code duplication.
* configure.ac (emacs_check_gnu_make): New shell function.
Use it to avoid duplication when checking for GNU Make.
It's OK for 'configure' to use shell functions these days,
as long as we follow the advice in the 'Shell Functions'
section of the Autoconf manual.
Eli Zaretskii [Wed, 11 Jun 2014 16:11:32 +0000 (19:11 +0300)]
Fix bug #17744 with cursor motion near overlay string with 'cursor' prop.
src/xdisp.c (set_cursor_from_row): Fix an off-by-one error when
matching overlay strings with 'cursor' property against buffer
positions traversed in the glyph row.
Glenn Morris [Wed, 11 Jun 2014 03:33:34 +0000 (20:33 -0700)]
* configure.ac: Tweak previous change, for make 10+
Glenn Morris [Wed, 11 Jun 2014 03:03:40 +0000 (20:03 -0700)]
* configure.ac: Require at least version 3.81 of GNU make.
It's 8 years old and has some useful features not in older versions.
* etc/NEWS: Mention this.
Glenn Morris [Tue, 10 Jun 2014 21:07:22 +0000 (17:07 -0400)]
* doc/misc/Makefile.in (INFO_INSTALL): Update for 2013-08-28 DOCMISC_W32 change
Paul Eggert [Tue, 10 Jun 2014 19:43:13 +0000 (12:43 -0700)]
Rely on AC_CANONICAL_HOST to detect whether we're using mingw.
See the thread containing:
http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00206.html
* configure.ac (AC_CANONICAL_HOST): Invoke this as early as we
can, which is just after AM_INIT_AUTOMAKE. Then check for mingw
just after that.
Dmitry Antipov [Tue, 10 Jun 2014 05:28:00 +0000 (09:28 +0400)]
* frame.h (window_system_available) [!HAVE_WINDOW_SYSTEM]: Always false.
* frame.c (window_system_available) [HAVE_WINDOW_SYSTEM]: Now here.
Dmitry Antipov [Tue, 10 Jun 2014 04:55:03 +0000 (08:55 +0400)]
* dispextern.h (last_tool_bar_item): Remove declaration.
* frame.h (struct frame): New member last_tool_bar_item.
* frame.c (make_frame): Initialize it.
* xdisp.c (toplevel): Remove last_tool_bar_item.
(handle_tool_bar_click, note_tool_bar_highlight):
* w32term.c (w32_read_socket, w32_initialize):
* xterm.c (handle_one_xevent, x_initialize): Adjust users.
Dmitry Antipov [Tue, 10 Jun 2014 03:32:36 +0000 (07:32 +0400)]
* dispextern.h (struct face) [HAVE_XFT]: Ifdef 'extra' member.
* font.c (font_done_for_face):
* xface.c (realize_non_ascii_face): Adjust user.
* font.h (struct font_driver): Convert 'prepare_face' to return
void because its return value is never used anyway.
* xfont.c (xfont_prepare_face): Return void.
* xftfont.c (xftfont_prepare_face): Likewise. Use xmalloc.
(xftfont_done_face): Use xfree.
Dmitry Antipov [Tue, 10 Jun 2014 03:13:41 +0000 (07:13 +0400)]
* dispextern.h (PREPARE_FACE_FOR_DISPLAY): Remove as a duplicate of ...
* xfaces.c (prepare_face_for_display) [HAVE_WINDOW_SYSTEM]: ... this
function. Also adjust comment.
* fringe.c, w32term.c, xdisp.c, xterm.c: All users changed.
Glenn Morris [Tue, 10 Jun 2014 02:20:31 +0000 (22:20 -0400)]
Add .info extension to @setfilename commands in doc/
This makes no difference to anything, since we always use makeinfo -o,
but it makes automake happier, if we ever decide to use that.
Glenn Morris [Tue, 10 Jun 2014 02:15:49 +0000 (22:15 -0400)]
* Makefile.in (AUTOCONF, AUTOMAKE, AUTOHEADER, ACLOCAL): New, set by configure
Use throughout where appropriate.
Glenn Morris [Tue, 10 Jun 2014 02:11:38 +0000 (22:11 -0400)]
Get rid of the INFO_EXT variable
It's never been anything more than pointless complexity
* configure.ac (INFO_EXT, INFO_OPTS): Remove output variables.
* Makefile.in (INFO_EXT): Remove and replace by ".info" throughout.
* doc/emacs/Makefile.in (INFO_EXT): Remove and replace by ".info" throughout.
(INFO_OPTS): Set directly rather than with configure.
* doc/lispintro/Makefile.in (INFO_EXT): Remove and replace by ".info" throughout.
(INFO_OPTS): Set directly rather than with configure.
* doc/lispref/Makefile.in (INFO_EXT): Remove and replace by ".info" throughout.
(INFO_OPTS): Set directly rather than with configure.
* doc/misc/Makefile.in (INFO_EXT): Remove and replace by ".info" throughout.
(INFO_OPTS): Set directly rather than with configure.
Glenn Morris [Tue, 10 Jun 2014 01:44:11 +0000 (21:44 -0400)]
leim/Makefile.in: use GNU Make features to simplify and parallelize.
* leim/Makefile.in (CHINESE_TIT, TIT_SOURCES, MISC_SOURCES, changed.tit)
(changed.misc): Remove.
(${leimdir}/quail, ${leimdir}/ja-dic): Create using order-only prereq.
(misc_convert): New.
(${leimdir}/quail/%.el, ${leimdir}/quail/CT%.el)
(${leimdir}/quail/PY.el, ${leimdir}/quail/ZIRANMA.el)
(${leimdir}/quail/tsang-%.el, ${leimdir}/quail/quick-%.el): Use pattern rules.
(${leimdir}/leim-list.el, ${leimdir}/ja-dic/ja-dic.el):
Use automatic variables.
(bootstrap-clean): No changed.* files to delete any more.
* .bzrignore: No leim/changed.* files to ignore any more.
Paul Eggert [Mon, 9 Jun 2014 20:31:06 +0000 (13:31 -0700)]
Say (accept-process-output P)'s result pertains to P if P is non-nil.
* doc/lispref/processes.texi (Accepting Output):
* src/process.c (Faccept_process_output)
(wait_reading_process_output): Mention that if PROCESS is non-nil,
the return value is about PROCESS, not about other processes.
Dmitry Antipov [Mon, 9 Jun 2014 15:03:49 +0000 (19:03 +0400)]
Further adjustments to mark_object and friends.
Now the mark_object's stack is just 32 bytes on a 64-bit
system, which means extra 20% off the stack usage.
* alloc.c (mark_save_value): As before, refactored out from ...
(mark_object): ... adjusted user. Also add comment.
Paul Eggert [Mon, 9 Jun 2014 14:50:57 +0000 (07:50 -0700)]
Fix core dump after a dropped X connection.
* sysdep.c (stuff_char): Don't abort merely because the selected frame
is dead, as we may be shutting down.
Fixes: debbugs:17704
Glenn Morris [Mon, 9 Jun 2014 00:59:28 +0000 (17:59 -0700)]
NEWS cleanup: Remove +++/--- markup, reorder, copyedits, etc
Glenn Morris [Sun, 8 Jun 2014 23:41:43 +0000 (16:41 -0700)]
Merge from emacs-24; up to 2014-06-02T11:35:40Z!michael.albinus@gmx.de
Glenn Morris [Sun, 8 Jun 2014 23:39:23 +0000 (16:39 -0700)]
Doc fixes: markup (mainly nil -> @code{nil})
Karl Berry [Sun, 8 Jun 2014 19:30:13 +0000 (22:30 +0300)]
Simplify info.info for the stand-alone reader
doc/misc/info.texi (Help-^L): "mode line", "screenful",
stand-alone and Emacs Info both use the mode line.
Use x instead of weird C-x 0 to get rid of help msg
in standalone Info.