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.
Paul Eggert [Tue, 5 Nov 2013 07:44:14 +0000 (23:44 -0800)]
Spelling fixes.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
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
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
Stefan Monnier [Mon, 4 Nov 2013 19:35:37 +0000 (14:35 -0500)]
* lisp/erc/erc-pcomplete.el (erc-pcomplete): Set this-command.
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.
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.
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.
Eli Zaretskii [Mon, 4 Nov 2013 17:33:43 +0000 (19:33 +0200)]
src/ChangeLog: Fix a typo in the last commit.
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.
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.
Bozhidar Batsov [Mon, 4 Nov 2013 15:34:42 +0000 (17:34 +0200)]
* lisp/helpers.el: Actually commit the library code.
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'.
Bozhidar Batsov [Mon, 4 Nov 2013 14:20:58 +0000 (16:20 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-mode): Clean up docstring.
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.
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.
Dmitry Gutov [Mon, 4 Nov 2013 11:04:50 +0000 (13:04 +0200)]
* test/indent/ruby.rb: Move a now-successful example.
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.
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.
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.
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
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
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.
Glenn Morris [Mon, 4 Nov 2013 01:38:16 +0000 (17:38 -0800)]
* src/emacs.c (usage_message): Mention that `-L :...' appends.
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.
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.
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.
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.
Glenn Morris [Sat, 2 Nov 2013 23:49:54 +0000 (16:49 -0700)]
* src/Makefile.in (bootstrap_exe): Use relative filename.
(abs_builddir): Remove.
Glenn Morris [Sat, 2 Nov 2013 23:39:49 +0000 (16:39 -0700)]
* lisp/Makefile.in (abs_top_builddir): Remove
Glenn Morris [Sat, 2 Nov 2013 23:37:59 +0000 (16:37 -0700)]
Comment markup fix
Glenn Morris [Sat, 2 Nov 2013 23:36:32 +0000 (16:36 -0700)]
* doc/emacs/cmdargs.texi (Action Arguments): Clarify `-L' a bit.
Glenn Morris [Sat, 2 Nov 2013 23:29:01 +0000 (16:29 -0700)]
* doc/emacs/cmdargs.texi (Action Arguments): Clarify that `-L' prepends
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.
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/.
Glenn Morris [Sat, 2 Nov 2013 20:30:13 +0000 (13:30 -0700)]
* leim/Makefile.in (buildlisppath): Remove.
(RUN_EMACS): Use abs_srcdir directly.
Eli Zaretskii [Sat, 2 Nov 2013 20:12:59 +0000 (22:12 +0200)]
Fix commentary in lisp/Makefile.in.
Glenn Morris [Sat, 2 Nov 2013 20:12:12 +0000 (13:12 -0700)]
* test/automated/Makefile.in (abs_srcdir): New, set by configure.
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.
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.
Glenn Morris [Sat, 2 Nov 2013 19:50:41 +0000 (12:50 -0700)]
Minor simplifications for test/automated/Makefile
* test/automated/Makefile.in (top_builddir, abs_test, abs_lispsrc, lisp):
Remove variables.
(emacs): Use abs_top_srcdir, abs_srcdir rather than abs_lispsrc, abs_test.
(lisp-compile): Use ../../lisp rather than $lisp.
Glenn Morris [Sat, 2 Nov 2013 19:43:11 +0000 (12:43 -0700)]
* lisp/Makefile.in (abs_lisp): Remove, replace by abs_srcdir
Glenn Morris [Sat, 2 Nov 2013 19:41:33 +0000 (12:41 -0700)]
Use relative filenames in TAGS files.
* src/Makefile.in (abs_srcdir): Remove it again.
(.PHONY): Remove frc.
(maintainer-clean): No more TAGS-LISP file.
(TAGS): Pass relative file names to etags.
(../lisp/TAGS): Rename from TAGS-LISP. Work in ../lisp.
* lisp/Makefile.in (lisptagsfiles1, lisptagsfiles2, lisptagsfiles3)
(lisptagsfiles4, TAGS): Use relative file names.
(TAGS-LISP): Remove.
(maintainer-clean): No more TAGS-LISP file.
* lwlib/Makefile.in (abs_srcdir): Remove it again.
(ctagsfiles, TAGS): Use relative filenames.
* .bzrignore: Remove TAGS-LISP.
Glenn Morris [Sat, 2 Nov 2013 19:23:45 +0000 (12:23 -0700)]
* src/Makefile.in (lispdir): Remove.
(TAGS-LISP): Replace lispdir with its expansion.
Glenn Morris [Sat, 2 Nov 2013 19:18:50 +0000 (12:18 -0700)]
Small Makefile cleanup mainly related to tags file generation
* src/Makefile.in (abs_srcdir): New, set by configure.
(maintainer-clean): Remove pointless echo. That should be in the
top-level Makefile, if anywhere. Delete TAGS-LISP.
(extraclean): No s/ and m/ directories for some time.
(TAGS): Remove no-longer-defined S_FILE.
Pass absolute filenames to etags once more.
(TAGS-LISP, $(lwlibdir)/TAGS): Correctly pass ETAGS to sub-makes.
($(lwlibdir)/TAGS): Remove useless subshell, check cd return value.
* lisp/Makefile.in (lisptagsfiles1, lisptagsfiles2, lisptagsfiles3)
(lisptagsfiles4): Use absolute filenames again.
(TAGS, TAGS-LISP): Not everything needs to run in one line.
Remove all *loaddefs files, not just the first. Remove esh-groups.
(maintainer-clean): Delete TAGS, TAGS-LISP.
* lwlib/Makefile.in (abs_srcdir): New, set by configure.
(ETAGS, ctagsfiles): New variables.
(TAGS): Use ETAGS, ctagsfiles. Use absolute filenames again.
Bozhidar Batsov [Sat, 2 Nov 2013 14:58:38 +0000 (16:58 +0200)]
* lisp/ChangeLog: Fix a typo.
Jan Djärv [Sat, 2 Nov 2013 13:14:55 +0000 (14:14 +0100)]
* xfaces.c (realize_default_face): Set DISTANT_FOREGROUND to unspecified_fg.
Xue Fuqiao [Sat, 2 Nov 2013 11:37:14 +0000 (19:37 +0800)]
NEWS tweak
Bozhidar Batsov [Sat, 2 Nov 2013 10:55:22 +0000 (12:55 +0200)]
* lisp/emacs-lisp/package.el (package-version-join): Recognize snapshot versions.
Bozhidar Batsov [Sat, 2 Nov 2013 09:48:11 +0000 (11:48 +0200)]
* subr.el (version-regexp-alist): Add support for snapshot versions.
Jan Djärv [Sat, 2 Nov 2013 07:58:54 +0000 (08:58 +0100)]
* xfaces.c (check_lface_attrs, realize_default_face): Add
LFACE_DISTANT_FOREGROUND_INDEX.
Fixes: debbugs:15788
Dmitry Gutov [Sat, 2 Nov 2013 05:18:11 +0000 (09:18 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-smie--rule-parent-skip-assign): New
function, replacement for `smie-rule-parent' for when we want to
skip over our direct parent if it's an assignment token..
(ruby-smie-rules): Use it.
Paul Eggert [Sat, 2 Nov 2013 02:11:37 +0000 (19:11 -0700)]
* emacs.c (original_pwd): Remove global var by making it local.
(init_cmdargs): New arg ORIGINAL_PWD; caller changed.
Dmitry Gutov [Sat, 2 Nov 2013 01:10:10 +0000 (05:10 +0400)]
* lisp/progmodes/ruby-mode.el Use `syntax-propertize-function'
unconditionally. Remove now unnecessary forward declarations.
Remove XEmacs-specific setup.
(ruby-here-doc-end-re, ruby-here-doc-beg-match)
(ruby-font-lock-syntactic-keywords)
(ruby-comment-beg-syntax, ruby-in-here-doc-p)
(ruby-here-doc-find-end, ruby-here-doc-beg-syntax)
(ruby-here-doc-end-syntax): Remove.
(ruby-mode): Don't check whether `syntax-propertize-rules' is
defined as function.
Bozhidar Batsov [Sat, 2 Nov 2013 00:17:54 +0000 (04:17 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-mode-variables, ruby-mode): Use `setq-local'.
Bozhidar Batsov [Fri, 1 Nov 2013 23:55:15 +0000 (03:55 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-mode-variables): Don't set syntax
table and abbrev table, `define-derived-mode' does that for us
anyway.
Glenn Morris [Fri, 1 Nov 2013 17:26:29 +0000 (13:26 -0400)]
* lisp/Makefile.in: Remove manual mh-e dependencies
(writing .elc files is atomic for some time,
so no parallel compilation issues)
Jan Djärv [Fri, 1 Nov 2013 15:47:10 +0000 (16:47 +0100)]
Add :distant-foreground to faces.
* doc/lispref/display.texi (Face Attributes): Document :distant-foreground.
* etc/NEWS: Mention :distant-foreground.
* lisp/faces.el (face-x-resources): Add :distant-foreground.
(region): Use :distant-foreground for gtk and ns.
* src/dispextern.h (lface_attribute_index): Add
LFACE_DISTANT_FOREGROUND_INDEX.
* src/xfaces.c: Declare color_distance.
(QCdistant_foreground): New variable.
(NEAR_SAME_COLOR_THRESHOLD): New define.
(load_color2): New function.
(load_color): Call load_color2.
(load_face_colors): Call load_color2 and if distant-color is specified
calculate distant and use distant-color if colors are near.
(LFACE_DISTANT_FOREGROUND): New define.
(merge_face_ref, Finternal_set_lisp_face_attribute)
(Finternal_get_lisp_face_attribute)
(x_supports_face_attributes_p): Handle distant-foreground similar to
foreground.
(syms_of_xfaces): DEFSYM QCdistant_foreground.
Tassilo Horn [Fri, 1 Nov 2013 10:27:21 +0000 (11:27 +0100)]
Allow multiple bibliographies when BibLaTeX is used rathen than
BibTeX.
* textmodes/reftex-parse.el (reftex-using-biblatex-p): New function.
(reftex-locate-bibliography-files): Us it.
Glenn Morris [Fri, 1 Nov 2013 10:21:34 +0000 (06:21 -0400)]
Auto-commit of loaddefs files.
Glenn Morris [Fri, 1 Nov 2013 10:17:43 +0000 (06:17 -0400)]
Auto-commit of generated files.
Eli Zaretskii [Fri, 1 Nov 2013 10:00:47 +0000 (12:00 +0200)]
Fix whitespace in src/casefiddle.c.
Claudio Bley [Fri, 1 Nov 2013 09:18:39 +0000 (11:18 +0200)]
Fix ChangeLog entry of last commit.
Claudio Bley [Fri, 1 Nov 2013 09:10:13 +0000 (11:10 +0200)]
Fix handling of comments in NetPBM image files.
src/image.c (pbm_next_char): New function.
(pbm_scan_number): Use it.
lisp/image.el (image-type-header-regexps): Fix the 'pbm' part to
allow comments in pbm files.
Claudio Bley [Fri, 1 Nov 2013 09:04:16 +0000 (11:04 +0200)]
lisp/term/w32-win.el (dynamic-library-alist): Support libtiff v4.x on w32.
Claudio Bley [Fri, 1 Nov 2013 08:57:55 +0000 (10:57 +0200)]
Support libpng DLLs of versions beyond 1.4.x on MS-Windows.
lisp/term/w32-win.el (dynamic-library-alist): Support versions of
libpng beyond 1.4.x.
Claudio Bley [Fri, 1 Nov 2013 08:52:22 +0000 (10:52 +0200)]
Support newer versions of libjpeg on MS-Windows.
src/image.c (Qlibjpeg_version): New variable.
(syms_of_image): DEFSYM and initialize it.
lisp/term/w32-win.el (dynamic-library-alist): Support newer versions
of libjpeg starting with v7: look only for the DLL from the
version against which Emacs was built.
Bozhidar Batsov [Fri, 1 Nov 2013 03:35:35 +0000 (07:35 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-indent-tabs-mode)
(ruby-indent-level, ruby-comment-column, ruby-deep-arglist):
Add property :safe.
(ruby-deep-arglist): Add property :type.
Glenn Morris [Thu, 31 Oct 2013 21:39:10 +0000 (17:39 -0400)]
* configure.ac: Use [!...] rather than [^...], for ksh. (Bug#15769)
Michael Albinus [Thu, 31 Oct 2013 13:31:22 +0000 (14:31 +0100)]
* automated/ert-tests.el (ert-test-stats-set-test-and-result):
Add a skipping test.
Jan Djärv [Thu, 31 Oct 2013 08:32:42 +0000 (09:32 +0100)]
* emacs.c (main): Skip -psn args on OSX even if ! isatty (0).
Glenn Morris [Thu, 31 Oct 2013 07:27:35 +0000 (00:27 -0700)]
* lisp/Makefile.in (custom-deps, finder-data): No need to setq the target
variables, we are in the right directory and the defaults work fine.
Glenn Morris [Thu, 31 Oct 2013 07:18:42 +0000 (00:18 -0700)]
Fix setting of invocation-directory with --chdir and relative argv[0]
* src/emacs.c (original_pwd): New char.
(main): If using --chdir, store original_pwd.
(init_cmdargs): When setting Vinvocation_directory based on a
relative argv[0], use original_pwd if set.
Fixes: debbugs:15768
Barry O'Reilly [Thu, 31 Oct 2013 01:50:24 +0000 (21:50 -0400)]
* semantic/idle.el (semantic-idle-symbol-highlight)
(semantic-idle-symbol-highlight-face): Define face with
defface
and obsolete the replaced one defined with defvar. (Bug#15745)
* pulse.el (pulse-momentary-highlight-overlay)
(pulse-momentary-highlight-region): Fix typo in doc
Glenn Morris [Thu, 31 Oct 2013 00:40:46 +0000 (20:40 -0400)]
* lisp/Makefile.in (autoloads): Fix thinko in previous
Glenn Morris [Wed, 30 Oct 2013 20:27:35 +0000 (16:27 -0400)]
* lisp/Makefile.in (autoloads): Do not use abs_lisp.
This should stop recent weirdness, eg:
http://lists.gnu.org/archive/html/emacs-diffs/2013-10/msg00381.html
* lisp/emacs-lisp/autoload.el: Comment.
Glenn Morris [Wed, 30 Oct 2013 20:03:07 +0000 (16:03 -0400)]
* lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads):
`newline' does not respect `standard-output', so use `princ'.
Otherwise you can get \n inserted in the wrong buffer, eg
http://lists.gnu.org/archive/html/emacs-diffs/2013-10/msg00379.html
Glenn Morris [Wed, 30 Oct 2013 19:35:14 +0000 (15:35 -0400)]
htmlfontify.el: remove duplicate Version: header
Alp Aker [Wed, 30 Oct 2013 18:35:19 +0000 (14:35 -0400)]
Ensure unmarking in buffer menu clears 'S' marks. (Bug#15761)
* buff-menu.el (Buffer-menu--unmark): New function.
(Buffer-menu-unmark, Buffer-menu-backup-unmark): Use it.
Glenn Morris [Wed, 30 Oct 2013 17:34:17 +0000 (13:34 -0400)]
hfy-cmap.el: Remove duplicate Package: header
Glenn Morris [Wed, 30 Oct 2013 17:17:12 +0000 (13:17 -0400)]
* lisp/Makefile.in (AUTOGENEL): Add org/org-loaddefs.el.
Glenn Morris [Wed, 30 Oct 2013 16:45:51 +0000 (09:45 -0700)]
Fix up previous admin/unidata clean rules
Glenn Morris [Wed, 30 Oct 2013 16:29:36 +0000 (09:29 -0700)]
Revert auto-commit loaddefs weirdness
Glenn Morris [Wed, 30 Oct 2013 16:21:41 +0000 (09:21 -0700)]
Fix weirdness caused by autoload generation...
Glenn Morris [Wed, 30 Oct 2013 10:23:16 +0000 (06:23 -0400)]
Auto-commit of loaddefs files.
Xue Fuqiao [Wed, 30 Oct 2013 10:08:11 +0000 (18:08 +0800)]
* doc/lispref/display.texi (Abstract Display): Improve indexing.
Glenn Morris [Wed, 30 Oct 2013 07:15:23 +0000 (00:15 -0700)]
Simplify admin/unidata Makefile rules
* admin/unidata/unidata-gen.el (unidata-gen-files): Use pop.
Also take the output directory as an argument.
* admin/unidata/Makefile.in: Simplify now that unidata-gen-files takes
the output directory as an argument (no need to cd, etc).
(abs_srcdir, abs_builddir): Remove.
(abs_top_builddir): Replace by top_builddir.
(${DSTDIR}/charprop.el): No need to cd. Pass dest as argument.
(${DSTDIR}/charprop.el, charprop.el):
No need to pass unidata.txt as argument.
Glenn Morris [Wed, 30 Oct 2013 06:40:15 +0000 (23:40 -0700)]
* Makefile.in (distclean, bootstrap-clean, maintainer-clean):
Also clean admin/unidata, if present.
* admin/unidata/Makefile.in (bootstrap-clean): New rule.
Glenn Morris [Wed, 30 Oct 2013 06:35:26 +0000 (23:35 -0700)]
* lisp/gnus/gnus-int.el (gnus-start-news-server): Silence compiler
obsolescence warning.
Glenn Morris [Wed, 30 Oct 2013 06:34:26 +0000 (23:34 -0700)]
* lisp/gnus/gnus-group.el (gnus-group-browse-foreign-server): Silence compiler
obsolescence warning.