1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 08:11:05 -08:00
Commit graph

113703 commits

Author SHA1 Message Date
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
Eli Zaretskii
d57f4dde80 Fix bug #15148 with garbled display in Dired when cache-long-scans is ON.
src/callproc.c (call_process): Call prepare_to_modify_buffer before
 decoding text read from the sub-process, as the decoded stuff will
 be inserted into the buffer.  This will invalidate the various
 caches maintained for the buffer.
2013-11-05 18:26:11 +02:00
Eli Zaretskii
375761b243 Fix bug #15805 with trying to load Lisp files before load-path is populated.
lisp/startup.el (normal-top-level): Load the subdirs.el files before
 setting the locale environment.
2013-11-05 18:18:00 +02:00
Eli Zaretskii
80ff092b47 Correct the top-level ChangeLog. 2013-11-05 18:15:24 +02:00
Eli Zaretskii
df0d3f79ae Revert revision 2013-11-05T08:13:09Z!rgm@gnu.org. 2013-11-05 18:06:30 +02:00
Stefan Monnier
0acfafef3a * lisp/vc/vc-rcs.el (vc-rcs-parse): Make `gather' get e, b, and @-holes
via arguments so as to get the right ones.

Fixes: debbugs:15418
2013-11-05 10:27:51 -05:00
Michael Albinus
a213a54163 * automated/tramp-tests.el: New file. 2013-11-05 15:46:57 +01:00
Stefan Monnier
520a6e4a5f * lisp/net/rcirc.el (rcirc-record-activity): Don't abuse add-to-list. 2013-11-05 09:32:01 -05:00
Michael Albinus
158262615c Fix problems found while writing a test suite.
* net/tramp-compat.el (tramp-compat-load): New defun.
* net/tramp.el (tramp-handle-load): Use it.

* net/tramp-sh.el (tramp-sh-handle-add-name-to-file): Handle the case
"(numberp ok-if-already-exists)" correctly.
2013-11-05 15:18:41 +01:00
Xue Fuqiao
95a23e62a9 Another indexing improvement for Unicode. 2013-11-05 19:48:39 +08:00
Xue Fuqiao
5e21526fc5 Improve indexing. 2013-11-05 19:42:58 +08:00
Xue Fuqiao
f5e49f5ba5 * doc/lispref/display.texi (Bidirectional Display): Add an index for UBA. 2013-11-05 19:27:35 +08:00
Katsumi Yamaoka
8cd214c46e lisp/gnus/gnus-cite.el (gnus-cite-add-face): Make non-sticky overlays 2013-11-05 09:56:02 +00:00
Xue Fuqiao
d35f31a42d Doc fix for glyphless-char-display-control.
* international/characters.el (glyphless-char-display-control):
Add usage note.
2013-11-05 17:54:43 +08:00
Bozhidar Batsov
ae1f1ce1e2 * lisp/progmodes/python.el (python-mode): Remove incorrect text from docstring.
* lisp/progmodes/scheme.el (scheme-mode): Remove incorrect text from docstring.
* lisp/progmodes/prolog.el (prolog-mode): Remove incorrect text from docstring.
* lisp/emacs-lisp/lisp-mode.el (lisp-mode, lisp-interaction-mode, emacs-lisp-mode):
Remove incorrect text from docstring.
2013-11-05 11:47:47 +02:00
Bozhidar Batsov
ae93bc7480 * lisp/progmodes/ruby-mode.el (ruby-mode): Remove incorrect text from docstring. 2013-11-05 11:30:15 +02:00
Xue Fuqiao
29aa2b718c Doc fix.
* doc/lispref/display.texi (Glyphs): Add an index for glyph code.

* src/xdisp.c (syms_of_xdisp): Mention the active display table in doc
string of glyphless-char-display.
2013-11-05 17:00:52 +08:00
Glenn Morris
da6a8debb2 * make-dist: Don't distribute old, unsupported w32 build method. 2013-11-05 00:13:09 -08:00
Glenn Morris
21c84598d9 * msdos/mainmake.v2: Add missing ChangeLog entry for previous, and fix 2013-11-05 00:03:58 -08:00
Glenn Morris
4dde498bce Remove the autogen/ directory
Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00806.html

* autogen: Remove directory.  Move update_autogen to admin/.
* autogen.sh: Remove reference to copy_autogen.
* GNUmakefile (configure):
* Makefile.in (bootstrap): Do not try to run copy_autogen.
* config.bat: Use msdos/autogen rather than autogen.

* admin/update_autogen: Move here from ../autogen.
(usage): Update.  Remove -l, add -A.
(autogendir): New variable.
(ldefs_flag): Default to set.
(genfiles): Reduce to only ms-dos relevant files.
(main): Make checking autogen sources optional.
Make copying of autogen files optional.

* msdos/autogen/config.in:
* msdos/autogen/Makefile.in: Move here from ../autogen.

* nt/INSTALL: Remove reference to copy_autogen.

* nt/config.nt: Comment.
2013-11-04 23:54:03 -08:00
Jan Djärv
ceb486d497 * nsfns.m (ns_get_name_from_ioreg): New function.
(ns_screen_name): Don't use deprecated CGDisplayIOServicePort on
OSX >= 10.9.  Use ns_get_name_from_ioreg.
2013-11-05 08:51:55 +01:00
Paul Eggert
a67c4ae059 Spelling fixes. 2013-11-04 23:44:14 -08:00
Paul Eggert
df5b49306e Simplify and port recent bool vector changes.
* configure.ac (BITSIZEOF_SIZE_T, SIZEOF_SIZE_T):
New symbols to configure.
* src/alloc.c (ROUNDUP): Move here from lisp.h, since it's now used
only in this file.  Use a more-efficient implementation if the
second argument is a power of 2.
(ALIGN): Rewrite in terms of ROUNDUP.  Make it a function.
Remove no-longer-necessary compile-time checks.
(bool_vector_exact_payload_bytes): New function.
(bool_vector_payload_bytes): Remove 2nd arg; callers that need
exact payload changed to call the new function.  Do not assume
that the arg or result fits in ptrdiff_t.
(bool_vector_fill): New function.
(Fmake_bool_vector): Use it.  Don't assume bit counts fit
in ptrdiff_t.
(vroundup_ct): Don't assume arg fits in size_t.
* src/category.c (SET_CATEGORY_SET): Remove.  All callers now just
invoke set_category_set.
(set_category_set): 2nd arg is now EMACS_INT and 3rd is now bool.
All callers changed.  Use bool_vector_set.
* src/category.h (XCATEGORY_SET): Remove; no longer needed.
(CATEGORY_MEMBER): Now a function.  Rewrite in terms of
bool_vector_bitref.
* src/data.c (Faref): Use bool_vector_ref.
(Faset): Use bool_vector_set.
(bits_word_to_host_endian): Don't assume you can shift by CHAR_BIT.
(Fbool_vector_not, Fbool_vector_count_matches)
(Fbool_vector_count_matches_at): Don't assume CHAR_BIT == 8.
* src/fns.c (concat): Use bool_vector_ref.
(Ffillarray): Use bool_vector_fill.
(mapcar1): Use bool_vector_ref.
(sxhash_bool_vector): Hash words, not bytes.
* src/lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Now a macro as well as
a constant, since it's now used in #if.
(bits_word, BITS_WORD_MAX, BITS_PER_BITS_WORD): Fall back on
unsigned char on unusual architectures, so that we no longer
assume that the number of bits per bits_word is a power of two or
is a multiple of 8 or of CHAR_BIT.
(Qt): Add forward decl.
(struct Lisp_Bool_Vector): Don't assume EMACS_INT is aligned
at least as strictly as bits_word.
(bool_vector_data, bool_vector_uchar_data): New accessors.
All data structure accesses changed to use them.
(bool_vector_words, bool_vector_bitref, bool_vector_ref)
(bool_vector_set): New functions.
(bool_vector_fill): New decl.
(ROUNDUP): Move to alloc.c as described above.
2013-11-04 23:11:24 -08:00
Paul Eggert
6936980934 Fix recent gnutls changes.
* gnutls.c (Fgnutls_boot): Don't assume C99.
* process.c (wait_reading_process_output): Fix typo in recent change.
2013-11-04 21:32:19 -08:00
Glenn Morris
2d748773b2 Get rid of --chdir usage in test/automated
* test/automated/Makefile.in (EMACSOPT): Move -L here.
(emacs): Set EMACS_TEST_DIRECTORY in the environment.
(setwins): Don't assume called from srcdir.  Remove legacy stuff.
(.el.elc): No more need to pass -L here.
(compile-main): Get rid of sub-shell and cd.
(compile-clean, check): Get rid of cd.
2013-11-04 21:58:40 -05:00
Glenn Morris
d511238048 Make it possible to run tests with a different working directory
* test/automated/flymake-tests.el (flymake-tests-data-directory): New.
(flymake-tests--current-face): Use flymake-tests-data-directory.
(warning-predicate-function-gcc, warning-predicate-rx-perl)
(warning-predicate-function-perl): Adapt for above change.

* test/automated/zlib-tests.el (zlib-tests-data-directory): New.
(zlib--decompress): Use zlib-tests-data-directory.
2013-11-04 21:54:38 -05:00
Ted Zlatanov
194b4d9f7d Several GnuTLS fixes for log level and initialization.
* gnutls.c (emacs_gnutls_handle_error): Adjust log level for EAGAIN.
(Fgnutls_boot): Set process gnutls_p later, after initialization.

* process.c (wait_reading_process_output, read_process_output)
(send_process): Check gnutls_state is not NULL.
2013-11-04 21:29:03 -05:00
Glenn Morris
b5d402d6bd * test/automated/eieio-tests.el (eieio-test-37-persistent-classes):
Remove test that makes no sense.
It simply loads a file that contains some tests.
Loading the file does not run the tests, and the test are already
being run independently (which obviously involves loading the file),
since every .el file in this directory is automatically used in that way.
2013-11-04 21:22:00 -05:00
Glenn Morris
dc50338624 * test/automated/files.el (files-test-local-variable-data): Fix result typo
presumably caused by interference from dir-locals.
(file-test--do-local-variables-test): Prevent dir-locals interfering.
2013-11-04 21:00:12 -05:00