bpt/emacs.git
10 years ago* admin/unidata/unidata-gen.el (unidata-gen-files): Disable version-control
Glenn Morris [Thu, 7 Nov 2013 03:21:15 +0000 (19:21 -0800)]
* admin/unidata/unidata-gen.el (unidata-gen-files): Disable version-control
in generated files.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p):
Dmitry Gutov [Thu, 7 Nov 2013 03:02:01 +0000 (05:02 +0200)]
* 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.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Lower priority of
Dmitry Gutov [Thu, 7 Nov 2013 01:58:12 +0000 (03:58 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Lower priority of
"." compared to "do".

10 years ago* src/xdisp.c (redisplay_internal): Fix typo in last change.
Stefan Monnier [Wed, 6 Nov 2013 21:17:26 +0000 (16:17 -0500)]
* src/xdisp.c (redisplay_internal): Fix typo in last change.

10 years ago* regex.c: Fix --enable-gcc-warning glitch with GCC 4.5.2.
Paul Eggert [Wed, 6 Nov 2013 19:36:12 +0000 (11:36 -0800)]
* regex.c: Fix --enable-gcc-warning glitch with GCC 4.5.2.

10 years ago* src/xdisp.c (syms_of_xdisp): New vars redisplay--all-windows-cause and
Stefan Monnier [Wed, 6 Nov 2013 18:41:31 +0000 (13:41 -0500)]
* 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.

10 years agoGuard against possible accidental matches with parent dirs in Makefiles
Glenn Morris [Wed, 6 Nov 2013 17:56:48 +0000 (12:56 -0500)]
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.

10 years ago* lisp/menu-bar.el (popup-menu): Use key-binding.
Stefan Monnier [Wed, 6 Nov 2013 17:18:02 +0000 (12:18 -0500)]
* lisp/menu-bar.el (popup-menu): Use key-binding.

10 years agoRevert an indexing change.
Xue Fuqiao [Wed, 6 Nov 2013 14:22:02 +0000 (22:22 +0800)]
Revert an indexing change.

See http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00193.html

10 years agoFix doc string of format-time-string, per bug #15816.
Eli Zaretskii [Wed, 6 Nov 2013 10:14:50 +0000 (12:14 +0200)]
Fix doc string of format-time-string, per bug #15816.

 src/editfns.c (Fformat_time_string): Doc fix.

10 years agoFix bug #15817 with TTY menus produced by minor modes.
Eli Zaretskii [Wed, 6 Nov 2013 10:10:22 +0000 (12:10 +0200)]
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.

10 years ago* thingatpt.el (thing-at-point-looking-at): Add optional arg
Leo Liu [Wed, 6 Nov 2013 09:06:05 +0000 (17:06 +0800)]
* thingatpt.el (thing-at-point-looking-at): Add optional arg
DISTANCE to bound the search. All uses changed.

Fixes: debbugs:15808

10 years agoRemove some directory-changing in lisp/Makefile
Glenn Morris [Wed, 6 Nov 2013 08:37:01 +0000 (00:37 -0800)]
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.

10 years ago* automated/tramp-tests.el (tramp-test07-file-exists-p):
Michael Albinus [Wed, 6 Nov 2013 08:33:02 +0000 (09:33 +0100)]
* automated/tramp-tests.el (tramp-test07-file-exists-p):
Fix docstring.  Instrument, in order to hunt failure on hydra.

10 years ago* lisp/Makefile.in (setwins, setwins_almost, setwins_for_subdirs): Simplify.
Glenn Morris [Wed, 6 Nov 2013 08:09:15 +0000 (00:09 -0800)]
* lisp/Makefile.in (setwins, setwins_almost, setwins_for_subdirs): Simplify.

10 years agoSkip some tests rather than expect failure when prereqs not met
Glenn Morris [Wed, 6 Nov 2013 07:50:18 +0000 (23:50 -0800)]
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.

10 years ago*.[chm]: Number every assignment to windows_or_buffers_changed.
Stefan Monnier [Wed, 6 Nov 2013 04:11:04 +0000 (23:11 -0500)]
*.[chm]: Number every assignment to windows_or_buffers_changed.

10 years ago* lisp/electric.el (electric-indent-just-newline): New command.
Stefan Monnier [Wed, 6 Nov 2013 03:37:03 +0000 (22:37 -0500)]
* 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.

10 years ago* lisp/electric.el (electric-indent-local-mode): New minor mode.
Stefan Monnier [Wed, 6 Nov 2013 02:10:18 +0000 (21:10 -0500)]
* 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.

10 years agoInteger-related fixes for term.c etc.
Paul Eggert [Wed, 6 Nov 2013 00:14:56 +0000 (16:14 -0800)]
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.

10 years ago* src/xdisp.c (prepare_menu_bars): Mark static.
Stefan Monnier [Tue, 5 Nov 2013 22:45:44 +0000 (17:45 -0500)]
* 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.

10 years ago* keyboard.c (Fcommand_error_default_function): Fix pointer signedness
Paul Eggert [Tue, 5 Nov 2013 22:41:57 +0000 (14:41 -0800)]
* keyboard.c (Fcommand_error_default_function): Fix pointer signedness

glitch.  Eliminate 'sz' prefix; Hungarian notation is not helpful here.

10 years ago* Makefile.in (epaths-force-w32): Move srcdir tweak here
Glenn Morris [Tue, 5 Nov 2013 21:51:09 +0000 (16:51 -0500)]
* Makefile.in (epaths-force-w32): Move srcdir tweak here

* configure.ac (abs_srcdir) [MINGW32]: No point setting it here,
config.status computes it.

10 years ago* lisp/mh-e/mh-print.el (mh-ps-print-preprint): Don't use dynamic-var
Stefan Monnier [Tue, 5 Nov 2013 20:51:06 +0000 (15:51 -0500)]
* lisp/mh-e/mh-print.el (mh-ps-print-preprint): Don't use dynamic-var
`prefix-arg' as function argument.

10 years ago* src/keyboard.c (Fcommand_error_default_function): Rename from
Stefan Monnier [Tue, 5 Nov 2013 20:47:54 +0000 (15:47 -0500)]
* src/keyboard.c (Fcommand_error_default_function): Rename from
Fdefault_error_output.

10 years ago* src/keyboard.c (Fdefault_error_output): New function, extracted from
Jarek Czekalski [Tue, 5 Nov 2013 20:12:39 +0000 (15:12 -0500)]
* src/keyboard.c (Fdefault_error_output): New function, extracted from
cmd_error_internal.
(syms_of_keyboard): Use it for Vcommand_error_function.

10 years agoFix indexing in the lispref manual.
Eli Zaretskii [Tue, 5 Nov 2013 17:47:48 +0000 (19:47 +0200)]
Fix indexing in the lispref manual.

 doc/lispref/lists.texi (Rearrangement): Fix indexing.
 doc/lispref/display.texi (Bidirectional Display): Fix indexing.

10 years agoFOR-RELEASE note
Glenn Morris [Tue, 5 Nov 2013 17:12:05 +0000 (09:12 -0800)]
FOR-RELEASE note

10 years agoFix bug #15800 by clarifying description of what keyboard layout means.
Eli Zaretskii [Tue, 5 Nov 2013 16:36:37 +0000 (18:36 +0200)]
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.

10 years ago* src/eval.c (handlerlist_sentinel): New variable.
Stefan Monnier [Tue, 5 Nov 2013 16:29:58 +0000 (11:29 -0500)]
* 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

10 years ago* lisp/progmodes/ruby-mode.el: Improve a few error messages.
Bozhidar Batsov [Tue, 5 Nov 2013 16:28:40 +0000 (18:28 +0200)]
* lisp/progmodes/ruby-mode.el: Improve a few error messages.

10 years agoFix bug #15148 with garbled display in Dired when cache-long-scans is ON.
Eli Zaretskii [Tue, 5 Nov 2013 16:26:11 +0000 (18:26 +0200)]
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.

10 years agoFix bug #15805 with trying to load Lisp files before load-path is populated.
Eli Zaretskii [Tue, 5 Nov 2013 16:18:00 +0000 (18:18 +0200)]
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.

10 years agoCorrect the top-level ChangeLog.
Eli Zaretskii [Tue, 5 Nov 2013 16:15:24 +0000 (18:15 +0200)]
Correct the top-level ChangeLog.

10 years agoRevert revision 2013-11-05T08:13:09Z!rgm@gnu.org.
Eli Zaretskii [Tue, 5 Nov 2013 16:06:30 +0000 (18:06 +0200)]
Revert revision 2013-11-05T08:13:09Z!rgm@gnu.org.

10 years ago* lisp/vc/vc-rcs.el (vc-rcs-parse): Make `gather' get e, b, and @-holes
Stefan Monnier [Tue, 5 Nov 2013 15:27:51 +0000 (10:27 -0500)]
* 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

10 years ago* automated/tramp-tests.el: New file.
Michael Albinus [Tue, 5 Nov 2013 14:46:57 +0000 (15:46 +0100)]
* automated/tramp-tests.el: New file.

10 years ago* lisp/net/rcirc.el (rcirc-record-activity): Don't abuse add-to-list.
Stefan Monnier [Tue, 5 Nov 2013 14:32:01 +0000 (09:32 -0500)]
* lisp/net/rcirc.el (rcirc-record-activity): Don't abuse add-to-list.

10 years agoFix problems found while writing a test suite.
Michael Albinus [Tue, 5 Nov 2013 14:18:41 +0000 (15:18 +0100)]
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.

10 years agoAnother indexing improvement for Unicode.
Xue Fuqiao [Tue, 5 Nov 2013 11:48:39 +0000 (19:48 +0800)]
Another indexing improvement for Unicode.

10 years agoImprove indexing.
Xue Fuqiao [Tue, 5 Nov 2013 11:42:58 +0000 (19:42 +0800)]
Improve indexing.

10 years ago* doc/lispref/display.texi (Bidirectional Display): Add an index for UBA.
Xue Fuqiao [Tue, 5 Nov 2013 11:27:35 +0000 (19:27 +0800)]
* doc/lispref/display.texi (Bidirectional Display): Add an index for UBA.

10 years agolisp/gnus/gnus-cite.el (gnus-cite-add-face): Make non-sticky overlays
Katsumi Yamaoka [Tue, 5 Nov 2013 09:56:02 +0000 (09:56 +0000)]
lisp/gnus/gnus-cite.el (gnus-cite-add-face): Make non-sticky overlays

10 years agoDoc fix for glyphless-char-display-control.
Xue Fuqiao [Tue, 5 Nov 2013 09:54:43 +0000 (17:54 +0800)]
Doc fix for glyphless-char-display-control.

* international/characters.el (glyphless-char-display-control):
Add usage note.

10 years ago* lisp/progmodes/python.el (python-mode): Remove incorrect text from docstring.
Bozhidar Batsov [Tue, 5 Nov 2013 09:47:47 +0000 (11:47 +0200)]
* 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.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-mode): Remove incorrect text from docstring.
Bozhidar Batsov [Tue, 5 Nov 2013 09:30:15 +0000 (11:30 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-mode): Remove incorrect text from docstring.

10 years agoDoc fix.
Xue Fuqiao [Tue, 5 Nov 2013 09:00:52 +0000 (17:00 +0800)]
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.

10 years ago* make-dist: Don't distribute old, unsupported w32 build method.
Glenn Morris [Tue, 5 Nov 2013 08:13:09 +0000 (00:13 -0800)]
* make-dist: Don't distribute old, unsupported w32 build method.

10 years ago* msdos/mainmake.v2: Add missing ChangeLog entry for previous, and fix
Glenn Morris [Tue, 5 Nov 2013 08:03:58 +0000 (00:03 -0800)]
* msdos/mainmake.v2: Add missing ChangeLog entry for previous, and fix

10 years agoRemove the autogen/ directory
Glenn Morris [Tue, 5 Nov 2013 07:54:03 +0000 (23:54 -0800)]
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.

10 years ago* nsfns.m (ns_get_name_from_ioreg): New function.
Jan Djärv [Tue, 5 Nov 2013 07:51:55 +0000 (08:51 +0100)]
* 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.

10 years agoSpelling fixes.
Paul Eggert [Tue, 5 Nov 2013 07:44:14 +0000 (23:44 -0800)]
Spelling fixes.

10 years agoSimplify and port recent bool vector changes.
Paul Eggert [Tue, 5 Nov 2013 07:11:24 +0000 (23:11 -0800)]
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.

10 years agoFix recent gnutls changes.
Paul Eggert [Tue, 5 Nov 2013 05:32:19 +0000 (21:32 -0800)]
Fix recent gnutls changes.

* gnutls.c (Fgnutls_boot): Don't assume C99.
* process.c (wait_reading_process_output): Fix typo in recent change.

10 years agoGet rid of --chdir usage in test/automated
Glenn Morris [Tue, 5 Nov 2013 02:58:40 +0000 (21:58 -0500)]
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.

10 years agoMake it possible to run tests with a different working directory
Glenn Morris [Tue, 5 Nov 2013 02:54:38 +0000 (21:54 -0500)]
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.

10 years agoSeveral GnuTLS fixes for log level and initialization.
Ted Zlatanov [Tue, 5 Nov 2013 02:29:03 +0000 (21:29 -0500)]
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.

10 years ago* test/automated/eieio-tests.el (eieio-test-37-persistent-classes):
Glenn Morris [Tue, 5 Nov 2013 02:22:00 +0000 (21:22 -0500)]
* 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.

10 years ago* test/automated/files.el (files-test-local-variable-data): Fix result typo
Glenn Morris [Tue, 5 Nov 2013 02:00:12 +0000 (21:00 -0500)]
* 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.

10 years ago* lisp/rect.el (rectangle--highlight-for-redisplay):
Stefan Monnier [Mon, 4 Nov 2013 20:45:36 +0000 (15:45 -0500)]
* lisp/rect.el (rectangle--highlight-for-redisplay):
* lisp/emacs-lisp/smie.el (smie--next-indent-change):
Use buffer-chars-modified-tick.

10 years ago* lisp/emacs-lisp/byte-run.el (defmacro, defun): Set their `indent' property.
Stefan Monnier [Mon, 4 Nov 2013 20:06:02 +0000 (15:06 -0500)]
* lisp/emacs-lisp/byte-run.el (defmacro, defun): Set their `indent' property.

10 years ago* lisp/electric.el (electric-indent-post-self-insert-function):
Stefan Monnier [Mon, 4 Nov 2013 20:04:25 +0000 (15:04 -0500)]
* lisp/electric.el (electric-indent-post-self-insert-function):
Only delete trailing whitepsace if it is indeed trailing.

Fixes: debbugs:15767

10 years ago* lisp/emacs-lisp/cl-indent.el (with-compilation-unit): Add rule.
Helmut Eller [Mon, 4 Nov 2013 19:50:56 +0000 (14:50 -0500)]
* lisp/emacs-lisp/cl-indent.el (with-compilation-unit): Add rule.

Fixes: debbugs:15782

10 years ago* lisp/emacs-lisp/cconv.el (cconv-convert): Check form of let binding.
Nathan Trapuzzano [Mon, 4 Nov 2013 19:48:07 +0000 (14:48 -0500)]
* lisp/emacs-lisp/cconv.el (cconv-convert): Check form of let binding.

Fixes: debbugs:15786

10 years ago* lisp/erc/erc-pcomplete.el (erc-pcomplete): Set this-command.
Stefan Monnier [Mon, 4 Nov 2013 19:35:37 +0000 (14:35 -0500)]
* lisp/erc/erc-pcomplete.el (erc-pcomplete): Set this-command.

10 years ago* lisp/emacs-lisp/helpers.el: Move from helpers.el. Use lexical-binding.
Stefan Monnier [Mon, 4 Nov 2013 19:25:09 +0000 (14:25 -0500)]
* lisp/emacs-lisp/helpers.el: Move from helpers.el.  Use lexical-binding.

10 years ago* lisp/progmodes/python.el: Fix up last change.
Stefan Monnier [Mon, 4 Nov 2013 19:14:58 +0000 (14:14 -0500)]
* lisp/progmodes/python.el: Fix up last change.
(python-shell--save-temp-file): New function.
(python-shell-send-string): Use it.  Remove `msg' arg.  Don't assume
`string' comes from the current buffer.
(python-shell-send-string-no-output): Remove `msg' arg.
(python--use-fake-loc): New var.
(python-shell-buffer-substring): Obey it.  Try to compensate for the
extra coding line added by python-shell--save-temp-file.
(python-shell-send-region): Use python-shell--save-temp-file and
python-shell-send-file directly.  Add `nomain' argument.
(python-shell-send-buffer): Use python-shell-send-region.
(python-electric-pair-string-delimiter): New function.
(python-mode): Use it.

10 years agoFix memory leaks in NS version.
Jan Djärv [Mon, 4 Nov 2013 17:57:17 +0000 (18:57 +0100)]
Fix memory leaks in NS version.

* src/macfont.m (CG_SET_FILL_COLOR_WITH_GC_FOREGROUND)
(CG_SET_FILL_COLOR_WITH_GC_BACKGROUND)
(CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND): Fix memory leak.

* src/nsfns.m (Fx_create_frame): Fix memory leak.

* src/nsterm.h (EmacsApp): Add shouldKeepRunning and isFirst for
OSX >= 10.9.

* src/nsterm.m (init, run, stop:): New methods in EmacsApp for
OSX >= 10.9 to prevent memory leak of GCD dispatch source.

10 years agosrc/ChangeLog: Fix a typo in the last commit.
Eli Zaretskii [Mon, 4 Nov 2013 17:33:43 +0000 (19:33 +0200)]
src/ChangeLog: Fix a typo in the last commit.

10 years agoFix bug #15260 with building and installing Emacs in non-ASCII directories.
Eli Zaretskii [Mon, 4 Nov 2013 17:30:33 +0000 (19:30 +0200)]
Fix bug #15260 with building and installing Emacs in non-ASCII directories.

 src/xdisp.c (message3_nolog, message_with_string): Encode the string
 before writing it to the terminal in a non-interactive session.
 src/lread.c (openp): If both FILENAME and SUFFIX are unibyte, make
 sure we concatenate them into a unibyte string.
 src/fileio.c (make_temp_name): Encode PREFIX, and decode the
 resulting temporary name before returning it to the caller.
 (Fexpand_file_name): If NAME is pure-ASCII and DEFAULT_DIRECTORY
 is a unibyte string, convert NAME to a unibyte string to ensure
 that the result is also a unibyte string.
 src/emacs.c (init_cmdargs): Use build_unibyte_string to make sure we
 create unibyte strings from default paths and directory/file
 names.
 src/coding.h (ENCODE_FILE): Do not attempt to encode a unibyte
 string.
 src/callproc.c (init_callproc): Use build_unibyte_string to make
 sure we create unibyte strings from default paths and
 directory/file names.
 src/buffer.c (init_buffer): Don't store default-directory of
 *scratch* in multibyte form.  The original problem which led to
 that is described in
 http://lists.gnu.org/archive/html/emacs-pretest-bug/2004-11/msg00532.html,
 but it was solved long ago.

 lisp/startup.el (normal-top-level): Move setting eol-mnemonic-unix,
 eol-mnemonic-mac, eol-mnemonic-dos, and also setup of the locale
 environment and decoding all of the default-directory's to here
 from command-line.
 (command-line): Decode also argv[0].
 lisp/loadup.el: Error out if default-directory is a multibyte string
 when we are dumping.
 lisp/Makefile.in (emacs): Don't set LC_ALL=C.

 leim/Makefile.in (RUN_EMACS): Don't set LC_ALL=C.

 configure.ac: Don't disallow builds in non-ASCII directories.

10 years agoAdd Archive column to package list.
Ted Zlatanov [Mon, 4 Nov 2013 16:04:09 +0000 (11:04 -0500)]
Add Archive column to package list.

* emacs-lisp/package.el (package-menu-mode)
(package-menu--print-info, package-menu--archive-predicate): Add
Archive column to package list.

10 years ago* lisp/helpers.el: Actually commit the library code.
Bozhidar Batsov [Mon, 4 Nov 2013 15:34:42 +0000 (17:34 +0200)]
* lisp/helpers.el: Actually commit the library code.

10 years agoFix problems found while writing a test suite.
Michael Albinus [Mon, 4 Nov 2013 14:32:40 +0000 (15:32 +0100)]
Fix problems found while writing a test suite.

* net/tramp.el (tramp-file-name-regexp-unified): Simplify.
(tramp-file-name-for-operation): Use `tramp-tramp-file-p'.
(tramp-handle-substitute-in-file-name): Let-bind `process-environment'
to nil when running original file name handler.  Otherwise,
there are problems with constructs like "$$FOO".

* net/tramp-sh.el (tramp-do-copy-or-rename-file): Use correct prefix
for `localname'.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-mode): Clean up docstring.
Bozhidar Batsov [Mon, 4 Nov 2013 14:20:58 +0000 (16:20 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-mode): Clean up docstring.

10 years ago* lisp/subr.el (version<, version<=, version=):
Bozhidar Batsov [Mon, 4 Nov 2013 14:09:36 +0000 (16:09 +0200)]
* lisp/subr.el (version<, version<=, version=):
Update docstrings with information for snapshot versions.

10 years ago* lisp/helpers.el: New library for misc helper functions.
Bozhidar Batsov [Mon, 4 Nov 2013 13:10:49 +0000 (15:10 +0200)]
* lisp/helpers.el: New library for misc helper functions.
(hash-table-keys): New function returning a list of hash keys.
(hash-table-values): New function returning a list of hash values.

10 years ago* test/indent/ruby.rb: Move a now-successful example.
Dmitry Gutov [Mon, 4 Nov 2013 11:04:50 +0000 (13:04 +0200)]
* test/indent/ruby.rb: Move a now-successful example.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-smie--forward-token)
Dmitry Gutov [Mon, 4 Nov 2013 10:50:47 +0000 (12:50 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-smie--forward-token)
(ruby-smie--backward-token): Tokenize heredocs as semicolons.

* test/automated/ruby-mode-tests.el: Remove outdated comment.

* test/indent/ruby.rb: Add a statement on the line after heredoc.

10 years agoPort to stricter C99 platforms.
Paul Eggert [Mon, 4 Nov 2013 06:09:03 +0000 (22:09 -0800)]
Port to stricter C99 platforms.

Especially, C99 prohibits nesting a struct X inside struct Y if
struct X has a flexible array member.
Also, merge from gnulib, incorporating:
2013-11-03 intprops: port to Oracle Studio c99
* lib/intprops.h: Update from gnulib.
* src/alloc.c (struct sdata): New type.
(sdata): Implement in terms of struct sdata.
Remove u member; all uses replaced by next_vector, set_next_vector.
(SDATA_SELECTOR, SDATA_DATA, SDATA_DATA_OFFSET): Adjust to sdata change.
(SDATA_DATA_OFFSET): Now a constant, not a macro.
(struct sblock): Rename first_data member to data, which is now
a flexible array member.  All uses changed.
(next_vector, set_next_vector, large_vector_vec): New functions.
(vector_alignment): New constant.
(roundup_size): Make it a multiple of ALIGNOF_STRUCT_LISP_VECTOR, too.
(struct large-vector): Now merely a NEXT member, since the old approach
ran afoul of stricter C99.  All uses changed to use
large_vector_vec or large_vector_offset.
(large_vector_offset): New constant.
* src/dispnew.c: Include tparam.h, for tgetent.
Do not include term.h; no longer needed.
* src/gnutls.c (Fgnutls_boot): Don't continue after calling a _Noreturn.
* src/lisp.h (ENUM_BF) [__SUNPRO_C && __STDC__]: Use unsigned int.
(struct Lisp_Vector): Use a flexible array member for contents,
instead of a union with a member that is an array of size 1.
All uses changed.
(ALIGNOF_STRUCT_LISP_VECTOR): New constant, to make up for the
fact that the struct no longer contains a union.
(struct Lisp_Misc_Any, struct Lisp_Marker, struct Lisp_Overlay)
(struct Lisp_Save_Value, struct Lisp_Free):
Use unsigned, not int, for spacers, to avoid c99 warning.
(union specbinding): Use unsigned, not bool, for bitfield, as
bool is not portable to pre-C99 hosts.

10 years ago* lisp/textmodes/fill.el (fill-single-char-nobreak-p): New function
Michal Nazarewicz [Mon, 4 Nov 2013 04:29:59 +0000 (23:29 -0500)]
* lisp/textmodes/fill.el (fill-single-char-nobreak-p): New function
checking whether point is after a 1-letter word.

10 years ago* lisp/progmodes/cperl-mode.el (cperl-font-lock-fontify-region-function):
Nathan Trapuzzano [Mon, 4 Nov 2013 03:44:23 +0000 (22:44 -0500)]
* lisp/progmodes/cperl-mode.el (cperl-font-lock-fontify-region-function):
Don't infloop when expanding region over `multiline' syntax-type that
begins a line.

Fixes: debbugs:15778

10 years ago* lisp/rect.el (rectangle-mark-mode): Rename from rectangle-mark.
Stefan Monnier [Mon, 4 Nov 2013 03:06:54 +0000 (22:06 -0500)]
* lisp/rect.el (rectangle-mark-mode): Rename from rectangle-mark.
Make it into a proper minor mode.
(rectangle--region): (implicitly) rename to rectangle-mark-mode.
(rectangle-mark-mode-map): New keymap.
(rectangle--highlight-for-redisplay): Fix some corner cases.

Fixes: debbugs:15796

10 years ago* test/automated/Makefile.in (abs_srcdir): Remove.
Glenn Morris [Mon, 4 Nov 2013 01:48:08 +0000 (17:48 -0800)]
* test/automated/Makefile.in (abs_srcdir): Remove.
(emacs): Unset EMACSLOADPATH.
(.el.elc, check): Use -L to append srcdir to load-path.

10 years ago* src/emacs.c (usage_message): Mention that `-L :...' appends.
Glenn Morris [Mon, 4 Nov 2013 01:38:16 +0000 (17:38 -0800)]
* src/emacs.c (usage_message): Mention that `-L :...' appends.

10 years ago* lisp/startup.el (command-line-1): Allow `-L :...' to append to load-path.
Glenn Morris [Mon, 4 Nov 2013 01:36:14 +0000 (17:36 -0800)]
* lisp/startup.el (command-line-1): Allow `-L :...' to append to load-path.

* doc/emacs/cmdargs.texi (Action Arguments): Mention that `-L :...' appends.

* etc/NEWS: Mention this.

10 years ago* lisp/emacs-lisp/smie.el (smie-rule-parent): Always call
Stefan Monnier [Sun, 3 Nov 2013 22:56:03 +0000 (17:56 -0500)]
* lisp/emacs-lisp/smie.el (smie-rule-parent): Always call
smie-indent-virtual rather than only for hanging tokens.
(smie--next-indent-change): New helper command.
* lisp/progmodes/ruby-mode.el (ruby-smie--rule-parent-skip-assign): Remove.
(ruby-smie-rules): Use smie-rule-parent instead.

10 years ago* cedet/semantic/lex.el (semantic-lex-start-block)
Johan Bockgård [Sun, 3 Nov 2013 21:51:25 +0000 (22:51 +0100)]
* cedet/semantic/lex.el (semantic-lex-start-block)
(semantic-lex-end-block): Move after definition of
semantic-lex-token macro.

10 years agoUnset EMACSLOADPATH in some Makefiles rather than setting it to the default
Glenn Morris [Sun, 3 Nov 2013 19:25:29 +0000 (11:25 -0800)]
Unset EMACSLOADPATH in some Makefiles rather than setting it to the default

* leim/Makefile.in (abs_srcdir): Remove.
(RUN_EMACS): Unset EMACSLOADPATH.

* lisp/Makefile.in (abs_srcdir): Remove.
(emacs): Unset EMACSLOADPATH.

10 years ago* src/Makefile.in (bootstrap_exe): Use relative filename.
Glenn Morris [Sat, 2 Nov 2013 23:49:54 +0000 (16:49 -0700)]
* src/Makefile.in (bootstrap_exe): Use relative filename.
(abs_builddir): Remove.

10 years ago* lisp/Makefile.in (abs_top_builddir): Remove
Glenn Morris [Sat, 2 Nov 2013 23:39:49 +0000 (16:39 -0700)]
* lisp/Makefile.in (abs_top_builddir): Remove

10 years agoComment markup fix
Glenn Morris [Sat, 2 Nov 2013 23:37:59 +0000 (16:37 -0700)]
Comment markup fix

10 years ago* doc/emacs/cmdargs.texi (Action Arguments): Clarify `-L' a bit.
Glenn Morris [Sat, 2 Nov 2013 23:36:32 +0000 (16:36 -0700)]
* doc/emacs/cmdargs.texi (Action Arguments): Clarify `-L' a bit.

10 years ago* doc/emacs/cmdargs.texi (Action Arguments): Clarify that `-L' prepends
Glenn Morris [Sat, 2 Nov 2013 23:29:01 +0000 (16:29 -0700)]
* doc/emacs/cmdargs.texi (Action Arguments): Clarify that `-L' prepends

10 years agotest/automated: Use relative filename for emacs executable
Glenn Morris [Sat, 2 Nov 2013 20:54:08 +0000 (13:54 -0700)]
test/automated: Use relative filename for emacs executable

* Makefile.in (check): Depend on all.

* test/automated/Makefile.in (abs_top_builddir): Remove variable.
(EMACS): Use a relative file name.
(lisp-compile): Remove (assume it's up-to-date).
(compile-main): Do not run lisp-compile.
(check): Use --chdir.

10 years agotest/automated/Makefile.in remove stuff unnecessarily copied from lisp
Glenn Morris [Sat, 2 Nov 2013 20:32:22 +0000 (13:32 -0700)]
test/automated/Makefile.in remove stuff unnecessarily copied from lisp

* test/automated/Makefile.in (abs_top_srcdir): Remove variable.
(emacs): Use abs_srcdir rather than abs_top_srcdir.
(doit, compile, compile-always): Remove stuff copied from lisp/.
(all, check, bootstrap-clean, distclean, maintainer-clean): Declare PHONY.

Remove comments copied from lisp/.

10 years ago* leim/Makefile.in (buildlisppath): Remove.
Glenn Morris [Sat, 2 Nov 2013 20:30:13 +0000 (13:30 -0700)]
* leim/Makefile.in (buildlisppath): Remove.
(RUN_EMACS): Use abs_srcdir directly.

10 years agoFix commentary in lisp/Makefile.in.
Eli Zaretskii [Sat, 2 Nov 2013 20:12:59 +0000 (22:12 +0200)]
Fix commentary in lisp/Makefile.in.

10 years ago* test/automated/Makefile.in (abs_srcdir): New, set by configure.
Glenn Morris [Sat, 2 Nov 2013 20:12:12 +0000 (13:12 -0700)]
* test/automated/Makefile.in (abs_srcdir): New, set by configure.

10 years ago* lisp/Makefile.in (EMACS): Use a relative filename.
Glenn Morris [Sat, 2 Nov 2013 20:05:15 +0000 (13:05 -0700)]
* lisp/Makefile.in (EMACS): Use a relative filename.
(custom-deps, finder-data, autoloads): Use --chdir.

10 years ago* automated/Makefile.in (test): Remove variable.
Glenn Morris [Sat, 2 Nov 2013 19:56:54 +0000 (12:56 -0700)]
* automated/Makefile.in (test): Remove variable.
(compile-main, compile-clean, compile-always, bootstrap-clean)
(check): Use srcdir rather than $test.  Check cd return value.
(compile-always): Depend on bootstrap-clean.