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

113731 commits

Author SHA1 Message Date
Michael Albinus
1c49d6c2fe * automated/file-notify-tests.el:
* automated/tramp-tests.el: Add `tramp-own-remote-path' to
`tramp-remote-path' when running on hydra.
(tramp-test07-file-exists-p): Remove instrumentation code.
(tramp-test26-process-file): Don't use "/bin/true" and
"/bin/false", these paths do not exist on hydra.
2013-11-08 10:31:15 +01:00
Alex Schroeder
f358e6e5d3 Fix a typo in (epa) Encrypting/decrypting *.gpg files 2013-11-08 09:49:40 +01:00
Glenn Morris
1ac2891e8e Add missing ChangeLog entry from 2013-06-05T01:58:43Z!monnier@iro.umontreal.ca
http://lists.gnu.org/archive/html/emacs-diffs/2013-06/msg00043.html
2013-11-08 00:22:50 -08:00
Michael Albinus
540993833c * automated/tramp-tests.el: Add tramp-own-remote-path' to tramp-remote-path'. 2013-11-08 08:52:28 +01:00
Glenn Morris
b0f4c320e5 * lisp/progmodes/autoconf.el (autoconf-mode): Tweak comment-start-skip.
See also http://debbugs.gnu.org/10033

Fixes: debbugs:15822
2013-11-07 23:36:54 -08:00
Paul Eggert
7f1913b2da * chartab.c (make_sub_char_table): Fix size typo.
This bug was introduced in my 2013-06-21 change, and caused
struct Lisp_Sub_Char_Table objects to be given too many slots,
which broke 'make -C admin/unidata'.

Fixes: debbugs:15825
2013-11-07 23:28:21 -08:00
Stefan Monnier
7dd8b873bb Rename test/automated/sentinel-tests.el to process-tests.el 2013-11-07 23:40:51 -05:00
Stefan Monnier
43668fb196 * lisp/progmodes/sh-script.el (sh-smie--sh-keyword-in-p): Don't inf-loop
at bobp.
(sh-smie--sh-keyword-in-p): Recognize keywords at bobp.

Fixes: debbugs:15826
2013-11-07 23:33:32 -05:00
Darren Hoo
daddb3fd83 * lisp/man.el (Man-start-calling): New macro, extracted from
Man-getpage-in-background.
(Man-getpage-in-background): Use it.
(Man-update-manpage): New command.
(Man-mode-map): Bind it.
2013-11-07 23:09:56 -05:00
Dmitry Gutov
d85783ca32 * indent/ruby.rb: New example 2013-11-08 05:30:24 +02:00
Helmut Eller
21cfbae5b5 * test/automated/sentinel-tests.el: New file. 2013-11-07 22:28:19 -05:00
Dmitry Gutov
1f92392383 * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Improve precedences
of "and", "or", "&&" and "||".
(ruby-smie--args-separator-p): Prohibit keyword "do" as the first
argument.  Prohibit opening curly brace because it could only be a
block opener in that position.
(ruby-smie--forward-token, ruby-smie--backward-token): Separate
"|" from "&" or "*" going after it.  That can happen in block
arguments.
(ruby-smie--indent-to-stmt): New function, seeks the end of
previous statement or beginning of buffer.
(ruby-smie-rules): Use it.
(ruby-smie-rules): Check if there's a ":" before a curly block
opener candidate; if there is, it's a hash.

* test/indent/ruby.rb: New examples.
2013-11-08 04:31:51 +02:00
Jan Djärv
5ee2921081 Import macfont changes from mac-port 4.5.
* macfont.h (kCTVersionNumber10_9): Define if not defined.

* macfont.m (mac_font_copy_default_descriptors_for_language)
(mac_font_copy_default_name_for_charset_and_languages): Declare.
(cf_charset_table): big-5-0 has uniquifier 0x4EDC.
(macfont_language_default_font_names): New.
(macfont_list): Rearrange language/charset code.
(macfont_close): Don't check for macfont_info->cache.
(mac_ctfont_create_preferred_family_for_attributes): New font
selection code, call
mac_font_copy_default_name_for_charset_and_languages.
(mac_font_copy_default_descriptors_for_language)
(mac_font_copy_default_name_for_charset_and_languages): New functions.
2013-11-07 23:21:08 +01:00
Stefan Monnier
3220d5279d * lisp/emacs-lisp/cl-macs.el (cl-symbol-macrolet): Use macroexp-progn.
(cl--block-wrapper): Fix last accidental change.
2013-11-07 14:30:43 -05:00
Michael Albinus
1eb1f9e082 * net/tramp-sh.el (tramp-set-remote-path, tramp-get-ls-command):
Instrument, in order to hunt failure on hydra.
2013-11-07 12:13:41 +01:00
Glenn Morris
9d172c157c * admin/unidata/unidata-gen.el (unidata-gen-files): Update Unicode copyright 2013-11-06 23:57:35 -08:00
Glenn Morris
394629a11a Update unicode README and related info 2013-11-06 23:54:47 -08:00
Paul Eggert
aea07e2c6e Port to C11 aligned_alloc, and fix some integer overflows.
* configure.ac (GMALLOC_OBJ): Initialize to empty if !system_malloc
and doug_lea_malloc.
(aligned_alloc): Test for existence if !GMALLOC_OBJ and not darwin.
(posix_memalign): Test for existence only if !GMALLOC_OBJ and
not darwin and !aligned_alloc.
* src/alloc.c (USE_ALIGNED_ALLOC): New symbol.
(USE_POSIX_MEMALIGN): Remove.  All uses replaced with USE_ALIGNED_ALLOC,
and use of posix_memalign replaced with aligned_alloc.
(aligned_alloc): New function, defined or declared as needed.
* src/conf_post.h (HAVE_POSIX_MEMALIGN) [DARWIN_OS]:
Don't undef; configure.ac now does this.
* src/gmalloc.c (aligned_alloc) [MSDOS]: New decl.
(calloc, aligned_alloc): Check for integer overflow.
(aligned_alloc): Rename from memalign.  All uses changed.
(memalign): New function, an alias for aligned_alloc.
2013-11-06 21:31:04 -08:00
Nathan Trapuzzano
e6e4db3cac * lisp/emacs-lisp/cl-macs.el (cl-symbol-macrolet): Print warning for
malformed bindings form.

Fixes: debbugs:15814
2013-11-06 23:38:00 -05:00
Glenn Morris
099f5cd098 * admin/unidata/unidata-gen.el (unidata-gen-files): Disable version-control
in generated files.
2013-11-06 19:21:15 -08:00
Dmitry Gutov
1d1c86daf7 * lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p):
No implicit semi after "^", "and" or "or".
(ruby-smie-grammar): New tokens: "and" and "or".
(ruby-smie--args-separator-p): Fix the check for tokens at POS.
Exclude "and" and "or".  Remove "do" in order to work around token
priorities.
(ruby-smie-rules): Add all infix tokens.  Handle the case of
beginning-of-buffer.
2013-11-07 05:02:01 +02:00
Dmitry Gutov
b420ccfc4c * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Lower priority of
"." compared to "do".
2013-11-07 03:58:12 +02:00
Stefan Monnier
e2e894cf5c * src/xdisp.c (redisplay_internal): Fix typo in last change. 2013-11-06 16:17:26 -05:00
Paul Eggert
a5d376b02e * regex.c: Fix --enable-gcc-warning glitch with GCC 4.5.2. 2013-11-06 11:36:12 -08:00
Stefan Monnier
2ec9db5d1e * src/xdisp.c (syms_of_xdisp): New vars redisplay--all-windows-cause and
redisplay--mode-lines-cause.
(redisplay_internal): Keep them uptodate.  Remove redundant check of
buffer_shared_and_changed.
* *.[chm]: Number every assignment to update_mode_lines so we
can track why it is set.
2013-11-06 13:41:31 -05:00
Glenn Morris
6b4ac03ebe Guard against possible accidental matches with parent dirs in Makefiles
* lisp/Makefile.in (setwins_almost, setwins_for_subdirs):
Avoid accidental matches.

* test/automated/Makefile.in (setwins): Avoid accidental matches.
2013-11-06 12:56:48 -05:00
Stefan Monnier
5ca114d1a8 * lisp/menu-bar.el (popup-menu): Use key-binding. 2013-11-06 12:18:02 -05:00
Xue Fuqiao
cfeda39028 Revert an indexing change.
See http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00193.html
2013-11-06 22:22:02 +08:00
Eli Zaretskii
d7ac08154c Fix doc string of format-time-string, per bug #15816.
src/editfns.c (Fformat_time_string): Doc fix.
2013-11-06 12:14:50 +02:00
Eli Zaretskii
f72552bd38 Fix bug #15817 with TTY menus produced by minor modes.
lisp/menu-bar.el (popup-menu, menu-bar-open): When displaying TTY
 menus, support also the menus produced by minor modes.
2013-11-06 12:10:22 +02:00
Leo Liu
5d5c701ef9 * thingatpt.el (thing-at-point-looking-at): Add optional arg
DISTANCE to bound the search. All uses changed.

Fixes: debbugs:15808
2013-11-06 17:06:05 +08:00
Glenn Morris
65de43ada9 Remove some directory-changing in lisp/Makefile
* lisp/Makefile.in (setwins, setwins_almost, setwins_for_subdirs): Simplify.
(setwins_almost, setwins_for_subdirs): Don't assume called from srcdir.
(custom-deps, finder-data, autoloads, update-subdirs): No need to cd.
2013-11-06 00:37:01 -08:00
Michael Albinus
6865f4d507 * automated/tramp-tests.el (tramp-test07-file-exists-p):
Fix docstring.  Instrument, in order to hunt failure on hydra.
2013-11-06 09:33:02 +01:00
Glenn Morris
0a8b75e296 * lisp/Makefile.in (setwins, setwins_almost, setwins_for_subdirs): Simplify. 2013-11-06 00:09:15 -08:00
Glenn Morris
c76489d611 Skip some tests rather than expect failure when prereqs not met
* automated/flymake-tests.el (warning-predicate-rx-gcc)
(warning-predicate-function-gcc, warning-predicate-rx-perl)
(warning-predicate-function-perl):
* automated/info-xref.el (info-xref-test-makeinfo):
* automated/vc-bzr.el (vc-bzr-test-bug9726, vc-bzr-test-bug9781)
(vc-bzr-test-faulty-bzr-autoloads): Skip rather than expect failure.
2013-11-05 23:50:18 -08:00
Stefan Monnier
94ae2ad44c *.[chm]: Number every assignment to windows_or_buffers_changed. 2013-11-05 23:11:04 -05:00
Stefan Monnier
feca4e2db9 * lisp/electric.el (electric-indent-just-newline): New command.
(electric-indent-mode-map): New keymap.
(electric-indent-mode, electric-pair-mode, electric-layout-mode):
Re-add :group which weren't redundant.
2013-11-05 22:37:03 -05:00
Stefan Monnier
a35287ea23 * lisp/electric.el (electric-indent-local-mode): New minor mode.
(electric-indent-functions-without-reindent): New var.
(electric-indent-post-self-insert-function): Use it.
* lisp/emacs-lisp/gv.el (buffer-local-value): Add setter.
2013-11-05 21:10:18 -05:00
Paul Eggert
798aef0222 Integer-related fixes for term.c etc.
* dispextern.h (face_tty_specified_color): New function.
* term.c (turn_on_face): Don't rely on undefined behavior when
assigning an out-of-range value to 'long'.  Simplify
test for toggling highlight.
(tty_capable_p): Omit last two (unused) args.  All callers changed.
* term.c (tty_capable_p, tty_menu_display, tty_menu_add_selection)
(read_menu_input, tty_menu_activate, tty_menu_show):
* xfaces.c (x_supports_face_attributes_p)
(tty_supports_face_attributes_p):
Use bool for boolean.  All callers changed.
(tty_supports_face_attributes_p): Omit defaults for color indices;
no longer needed.  Simplify tail call.
2013-11-05 16:14:56 -08:00
Stefan Monnier
9e6e98264c * src/xdisp.c (prepare_menu_bars): Mark static.
* src/lisp.h (prepare_menu_bars): Don't declare.
* src/xselect.c (x_handle_selection_clear):
* src/callproc.c (call_process): Remove redundant call to prepare_menu_bars.
2013-11-05 17:45:44 -05:00
Paul Eggert
7544a9d393 * keyboard.c (Fcommand_error_default_function): Fix pointer signedness
glitch.  Eliminate 'sz' prefix; Hungarian notation is not helpful here.
2013-11-05 14:41:57 -08:00
Glenn Morris
c923b188f4 * Makefile.in (epaths-force-w32): Move srcdir tweak here
* configure.ac (abs_srcdir) [MINGW32]: No point setting it here,
config.status computes it.
2013-11-05 16:51:09 -05:00
Stefan Monnier
02fc973bc9 * lisp/mh-e/mh-print.el (mh-ps-print-preprint): Don't use dynamic-var
`prefix-arg' as function argument.
2013-11-05 15:51:06 -05:00
Stefan Monnier
2e670b9576 * src/keyboard.c (Fcommand_error_default_function): Rename from
Fdefault_error_output.
2013-11-05 15:47:54 -05:00
Jarek Czekalski
2ea0d61499 * src/keyboard.c (Fdefault_error_output): New function, extracted from
cmd_error_internal.
(syms_of_keyboard): Use it for Vcommand_error_function.
2013-11-05 15:12:39 -05:00
Eli Zaretskii
c67c5132e9 Fix indexing in the lispref manual.
doc/lispref/lists.texi (Rearrangement): Fix indexing.
 doc/lispref/display.texi (Bidirectional Display): Fix indexing.
2013-11-05 19:47:48 +02:00
Glenn Morris
408b936e13 FOR-RELEASE note 2013-11-05 09:12:05 -08:00
Eli Zaretskii
9a6ad7359e Fix bug #15800 by clarifying description of what keyboard layout means.
lisp/international/quail.el (quail-help): Be more explicit about the
 meaning of the labels shown on the keys.
2013-11-05 18:36:37 +02:00
Stefan Monnier
70de5e86d8 * src/eval.c (handlerlist_sentinel): New variable.
(init_eval): Use it to ensure handlerlist is non-NULL.
(unwind_to_catch): Make sure we never set handlerlist to NULL.
(Fsignal): Adjust NULLness test of handlerlist.
* src/lisp.h (PUSH_HANDLER): Assume handlerlist is non-NULL.

Fixes: debbugs:15802
2013-11-05 11:29:58 -05:00
Bozhidar Batsov
03177f98c9 * lisp/progmodes/ruby-mode.el: Improve a few error messages. 2013-11-05 18:28:40 +02:00