bpt/emacs.git
10 years ago* lisp/ses.el (ses-mode): Doc fix.
era eriksson [Wed, 20 Nov 2013 08:16:20 +0000 (00:16 -0800)]
* lisp/ses.el (ses-mode): Doc fix.

Fixes: debbugs:14748

10 years agolisp/gnus/message.el (message-beginning-of-line): Use beginning-of-visual-line when...
Dave Goldberg [Wed, 20 Nov 2013 04:25:37 +0000 (04:25 +0000)]
lisp/gnus/message.el (message-beginning-of-line): Use beginning-of-visual-line when visual-line-mode is turned on

10 years agoRemove a FIXME.
Xue Fuqiao [Wed, 20 Nov 2013 02:52:35 +0000 (10:52 +0800)]
Remove a FIXME.

10 years ago* doc/lispref/windows.texi (Choosing Window): Mention `no-display-ok'.
Leo Liu [Wed, 20 Nov 2013 02:44:38 +0000 (10:44 +0800)]
* doc/lispref/windows.texi (Choosing Window): Mention `no-display-ok'.

* etc/NEWS: Mention new display action alist entry `no-display-ok'.
(Bug#13594)

* lisp/window.el (display-buffer-alist): Doc fix.  (Bug#13594)

10 years ago* make-dist: Distribute build-aux/msys-to-w32.
Glenn Morris [Wed, 20 Nov 2013 01:50:37 +0000 (20:50 -0500)]
* make-dist: Distribute build-aux/msys-to-w32.

10 years ago* Makefile.in (msys_to_w32, msys_lisppath_to_w32): Remove.
Dani Moncayo [Wed, 20 Nov 2013 01:48:50 +0000 (20:48 -0500)]
* Makefile.in (msys_to_w32, msys_lisppath_to_w32): Remove.
(msys_w32prefix_subst): Rename from msys_prefix_subst.
Operate on w32prefixpattern.
(epaths-force-w32): Use build-aux/msys-to-w32.

* build-aux/msys-to-w32: New file.

10 years ago* vc/vc-git.el (vc-git-dir-extra-headers): Add headers
Dan Nicolaescu [Tue, 19 Nov 2013 20:23:53 +0000 (15:23 -0500)]
* vc/vc-git.el (vc-git-dir-extra-headers): Add headers
when rebase or bisect are in progress.

10 years agoDoc fixes.
Xue Fuqiao [Tue, 19 Nov 2013 09:47:02 +0000 (17:47 +0800)]
Doc fixes.

* lisp/filenotify.el (file-notify-add-watch): Refine doc string.

* doc/lispref/os.texi (File Notifications): Add an index.

* doc/lispref/loading.texi (Loading): Add an cross-reference.

10 years ago* obsolete/rcompile.el: Mark obsolete.
Leo Liu [Tue, 19 Nov 2013 08:59:53 +0000 (16:59 +0800)]
* obsolete/rcompile.el: Mark obsolete.

10 years ago* charset.c (syms_of_charset): Don't read past end of string.
Paul Eggert [Tue, 19 Nov 2013 08:57:22 +0000 (00:57 -0800)]
* charset.c (syms_of_charset): Don't read past end of string.

10 years ago* window.el (display-buffer-alist, display-buffer): Document the
Leo Liu [Tue, 19 Nov 2013 02:34:04 +0000 (10:34 +0800)]
* window.el (display-buffer-alist, display-buffer): Document the
new parameter no-display-ok.

* progmodes/compile.el (compilation-start)
(compilation-goto-locus, compilation-find-file): Pass
no-display-ok and handle nil value from display-buffer.

Fixes: debbugs:13594

10 years ago* src/frame.c (Fhandle_focus_in, Fhandle_focus_out): Doc fixes.
Glenn Morris [Tue, 19 Nov 2013 02:32:26 +0000 (21:32 -0500)]
* src/frame.c (Fhandle_focus_in, Fhandle_focus_out): Doc fixes.

10 years ago* etc/NEWS: Placeholder.
Glenn Morris [Tue, 19 Nov 2013 02:26:34 +0000 (21:26 -0500)]
* etc/NEWS: Placeholder.

10 years agoAdd hooks to run on gaining/losing focus (tiny change)
Brian Jenkins [Tue, 19 Nov 2013 02:23:50 +0000 (21:23 -0500)]
Add hooks to run on gaining/losing focus (tiny change)

* src/frame.c (Qfocus_in_hook, Qfocus_out_hook): New static lisp objects.
(Fhandle_focus_in, Fhandle_focus_out): Run focus hooks.
(syms_of_frame): Add focus-in-hook, focus-out-hook.

Fixes: debbugs:15029

10 years agoAdd some indexes and a cross-reference.
Xue Fuqiao [Mon, 18 Nov 2013 22:53:47 +0000 (06:53 +0800)]
Add some indexes and a cross-reference.

* doc/lispref/os.texi (Session Management, Desktop Notifications): Add
some indexes and a cross-reference.

10 years ago* data.c (bool_vector_binop_driver): Rename locals for sanity's sake.
Paul Eggert [Mon, 18 Nov 2013 19:31:05 +0000 (11:31 -0800)]
* data.c (bool_vector_binop_driver): Rename locals for sanity's sake.

The old names predated the API change that put destination at end.

10 years agoImprove API of recently-added bool vector functions.
Paul Eggert [Mon, 18 Nov 2013 18:56:42 +0000 (10:56 -0800)]
Improve API of recently-added bool vector functions.

The old API had (bool-vector-count-matches A B)
and (bool-vector-count-matches-at A B I), which gave the
misleading impression that the two functions were variants, one
with a location I.  The new API has (bool-vector-count-population A)
and (bool-vector-count-consecutive A B I) to make the distinction
clearer.  The first function no longer has a B argument, since the
caller can easily determine the number of nils if the length and
number of ts is known.
* src/data.c (Fbool_vector_count_population): Rename from
bool_vector_count_matches, and accept just 1 argument.
(Fbool_vector_count_consecutive): Rename from
Fbool_vector_count_matches_at.
* test/automated/data-tests.el: Adjust to API changes.

Fixes: debbugs:15912

10 years agoAlways allocate at least one bits_word per bool vector.
Paul Eggert [Mon, 18 Nov 2013 18:37:25 +0000 (10:37 -0800)]
Always allocate at least one bits_word per bool vector.

See Daniel Colascione in:
http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00518.html
* alloc.c (make_uninit_bool_vector): Always allocate at least one word.
* data.c (bool_vector_binop_driver): Rely on this.  Tune.
* lisp.h (struct Lisp_Bool_vector): Document this.

10 years agoFix bug #15841 with assertion violations due to newline cache.
Eli Zaretskii [Mon, 18 Nov 2013 16:29:49 +0000 (18:29 +0200)]
Fix bug #15841 with assertion violations due to newline cache.

 src/insdel.c (invalidate_buffer_caches): New function, consolidated
 from part of prepare_to_modify_buffer.
 (insert_from_gap, prepare_to_modify_buffer):
 src/coding.c (code_convert_region, code_convert_string): Call
 invalidate_buffer_caches.
 src/lisp.h (invalidate_buffer_caches): Add prototype.

10 years ago* NEWS: Mention new features for Octave mode.
Leo Liu [Mon, 18 Nov 2013 02:27:12 +0000 (10:27 +0800)]
* NEWS: Mention new features for Octave mode.

10 years ago* lisp/electric.el (electric-indent-mode-map): Remove.
Stefan Monnier [Mon, 18 Nov 2013 02:01:34 +0000 (21:01 -0500)]
* lisp/electric.el (electric-indent-mode-map): Remove.
(electric-indent-mode): Change the global-map instead.

Fixes: debbugs:15915

10 years ago* lisp/textmodes/text-mode.el (paragraph-indent-minor-mode): Use add-function.
Stefan Monnier [Mon, 18 Nov 2013 01:48:46 +0000 (20:48 -0500)]
* lisp/textmodes/text-mode.el (paragraph-indent-minor-mode): Use add-function.

10 years ago* lisp/emacs-lisp/nadvice.el (remove-function): Align with
Stefan Monnier [Sun, 17 Nov 2013 23:11:27 +0000 (18:11 -0500)]
* lisp/emacs-lisp/nadvice.el (remove-function): Align with
add-function's behavior.

10 years ago* lisp/progmodes/gdb-mi.el: Avoid backtracking in regexp matcher.
Stefan Monnier [Sun, 17 Nov 2013 23:01:23 +0000 (18:01 -0500)]
* lisp/progmodes/gdb-mi.el: Avoid backtracking in regexp matcher.
(gdb--string-regexp): New constant.
(gdb-tooltip-print, gdb-var-evaluate-expression-handler)
(gdbmi-bnf-stream-record, gdb-jsonify-buffer): Use it.
(gdb-source-file-regexp, gdb-prompt-name-regexp): Use it and change
submatch 1.
(gdb-get-source-file-list, gdb-get-prompt, gdb-get-source-file):
Adjust use accordingly.
(gdb-breakpoints-list-handler-custom): Pre-build the y/n string.

10 years agoMinor doc fixes.
Xue Fuqiao [Sun, 17 Nov 2013 22:30:44 +0000 (06:30 +0800)]
Minor doc fixes.

* doc/lispref/os.texi (Time Parsing):
(Processor Run Time, Input Modes, Terminal Output): Minor fixes.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-toggle-block): Don't stop at
Adam Sokolnicki [Sun, 17 Nov 2013 21:39:13 +0000 (23:39 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-toggle-block): Don't stop at
interpolation curlies.

Fixes: debbugs:15914

10 years agoFix bug #15913 with disappearing mouse highlight on MS-Windows.
Eli Zaretskii [Sun, 17 Nov 2013 21:02:09 +0000 (23:02 +0200)]
Fix bug #15913 with disappearing mouse highlight on MS-Windows.

 src/w32term.c (x_update_window_end): Don't invalidate the entire
 mouse-highlight info, just signal frame_up_to_date_hook that mouse
 highlight needs to be redisplayed.

10 years ago* etc/TODO: Addition.
Glenn Morris [Sun, 17 Nov 2013 19:34:36 +0000 (11:34 -0800)]
* etc/TODO: Addition.

10 years agoSpelling fixes.
Paul Eggert [Sun, 17 Nov 2013 07:51:24 +0000 (23:51 -0800)]
Spelling fixes.

* lisp/org/ob-python.el (org-babel-python-with-earmuffs):
Rename from org-babel-python-with-earmufs.  All uses changed.
(org-babel-python-without-earmuffs):
Rename from org-babel-python-without-earmufs.  All uses changed.

10 years ago* calc/calc.el (calc-context-sensitive-enter): New variable.
Jay Belanger [Sun, 17 Nov 2013 04:22:24 +0000 (22:22 -0600)]
* calc/calc.el (calc-context-sensitive-enter): New variable.
  (calc-enter): Use `calc-context-sensitive-enter'.

* doc/misc/calc.texi (Customizing Calc): Mention the new variable
  `calc-context-sensitive-enter'.

10 years ago* configure.ac (DEBUGGER_SEES_C_MACROS): Remove.
Paul Eggert [Sun, 17 Nov 2013 03:58:30 +0000 (19:58 -0800)]
* configure.ac (DEBUGGER_SEES_C_MACROS): Remove.

* src/lisp.h (DEBUGGER_SEES_C_MACROS): Likewise.
It apparently doesn't work for GCC 3, and I suppose it's more
trouble than it's worth to worry about this.

10 years agoAdd CFEngine 3 ElDoc, completion, and compilation glue to cf-promises.
Ted Zlatanov [Sat, 16 Nov 2013 22:36:14 +0000 (17:36 -0500)]
Add CFEngine 3 ElDoc, completion, and compilation glue to cf-promises.

* progmodes/cfengine.el: Version bump.
(cfengine-cf-promises): New defcustom to locate cf-promises.
(cfengine3-vartypes): Add new "data" type.
(cfengine3--current-word): New function to get current name-like
word or its bounds.
(cfengine3--current-function): New function to look up a CFEngine
function's definition.
(cfengine3-format-function-docstring): New function.
(cfengine3-make-syntax-cache): New function.
(cfengine3-documentation-function): New function: ElDoc glue.
(cfengine3-completion-function): New function: completion glue.
(cfengine3-mode): Set `compile-command',
`eldoc-documentation-function', and add to
`completion-at-point-functions'.

10 years agoFix ChangeLog in last commit.
Barry O'Reilly [Sat, 16 Nov 2013 20:30:18 +0000 (15:30 -0500)]
Fix ChangeLog in last commit.

10 years ago* semantic/fw.el (semantic-exit-on-input)
Barry O'Reilly [Sat, 16 Nov 2013 20:27:24 +0000 (15:27 -0500)]
* semantic/fw.el (semantic-exit-on-input)
(semantic-throw-on-input): Restore point before
accept-process-output because timers which redisplay can run.
(Bug#15045)

10 years ago* automated/tramp-tests.el (tramp-test07-file-exists-p)
Michael Albinus [Sat, 16 Nov 2013 11:46:37 +0000 (12:46 +0100)]
* automated/tramp-tests.el (tramp-test07-file-exists-p)
(tramp-test08-file-local-copy)
(tramp-test09-insert-file-contents, tramp-test10-write-region)
(tramp-test11-copy-file, tramp-test12-rename-file)
(tramp-test13-make-directory, tramp-test14-delete-directory)
(tramp-test15-copy-directory, tramp-test16-directory-files)
(tramp-test17-insert-directory, tramp-test18-file-attributes)
(tramp-test19-directory-files-and-attributes)
(tramp-test20-file-modes, tramp-test21-file-links)
(tramp-test22-file-times, tramp-test23-visited-file-modtime)
(tramp-test24-file-name-completion, tramp-test25-load)
(tramp-test26-process-file, tramp-test27-start-file-process)
(tramp-test28-shell-command): Cleanup connection initially.

10 years ago* net/tramp-cmds.el (tramp-cleanup-connection): Clean up
Michael Albinus [Sat, 16 Nov 2013 11:37:45 +0000 (12:37 +0100)]
* net/tramp-cmds.el (tramp-cleanup-connection): Clean up
`tramp-current-connection'.

10 years agoDon't let unusual after-change-functions overwrite " prin1" buffer in use.
Eli Zaretskii [Sat, 16 Nov 2013 10:23:09 +0000 (12:23 +0200)]
Don't let unusual after-change-functions overwrite " prin1" buffer in use.

 src/doc.c (Fsubstitute_command_keys): Inhibit modification hooks
 while we are using Vprin1_to_string_buffer.

Fixes: debbugs:15907

10 years agoFix bug #15907 with crashes due to after-change-functions.
Eli Zaretskii [Sat, 16 Nov 2013 09:27:19 +0000 (11:27 +0200)]
Fix bug #15907 with crashes due to after-change-functions.

 src/keymap.c (describe_map): Don't crash if PT is 1 both before and
 after inserting the description string.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): End regexp for
Dmitry Gutov [Fri, 15 Nov 2013 18:09:10 +0000 (20:09 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): End regexp for
nil/self/true/false with "end of symbol".

10 years ago* data.c: Work around bogus GCC diagnostic about shift count.
Paul Eggert [Fri, 15 Nov 2013 18:01:04 +0000 (10:01 -0800)]
* data.c: Work around bogus GCC diagnostic about shift count.

Reported by Eli Zaretskii in
<http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00489.html>.
(pre_value): New function.
(count_trailing_zero_bits): Use it.

10 years ago* automated/tramp-tests.el (tramp-test29-utf8): Cleanup the
Michael Albinus [Fri, 15 Nov 2013 13:49:17 +0000 (14:49 +0100)]
* automated/tramp-tests.el (tramp-test29-utf8): Cleanup the
connection before running the test.  Reenable last test case.

10 years ago* lisp/subr.el (version-regexp-alist): Fix a typo.
Bozhidar Batsov [Fri, 15 Nov 2013 10:02:13 +0000 (12:02 +0200)]
* lisp/subr.el (version-regexp-alist): Fix a typo.

10 years ago* automated/tramp-tests.el (tramp-test29-utf8): Comment last test
Michael Albinus [Fri, 15 Nov 2013 08:28:42 +0000 (09:28 +0100)]
* automated/tramp-tests.el (tramp-test29-utf8): Comment last test
  case, it fails in batch mode.  Needs further investigations.

10 years agoCorrect overly-optimistic assumptions about C macro support by "gcc -g3".
Eli Zaretskii [Fri, 15 Nov 2013 08:18:37 +0000 (10:18 +0200)]
Correct overly-optimistic assumptions about C macro support by "gcc -g3".

 src/lisp.h (DEBUGGER_SEES_C_MACROS) [GCC < v3.5]: Pessimistically
 assume C macros are not supported even under -g3 in these old GCC
 versions.

10 years ago* automated/tramp-tests.el (tramp-test15-copy-directory)
Michael Albinus [Fri, 15 Nov 2013 08:03:19 +0000 (09:03 +0100)]
* automated/tramp-tests.el (tramp-test15-copy-directory)
(tramp-test16-directory-files, tramp-test17-insert-directory)
(tramp-test18-file-attributes)
(tramp-test19-directory-files-and-attributes)
(tramp-test20-file-modes, tramp-test21-file-links)
(tramp-test22-file-times, tramp-test23-visited-file-modtime)
(tramp-test24-file-name-completion, tramp-test25-load)
(tramp-test26-process-file, tramp-test27-start-file-process):
(tramp-test28-shell-command): Protect unwindforms with `ignore-errors'.
(tramp-test29-utf8): New test.

10 years ago* net/tramp-sh.el (tramp-remote-process-environment): Set "LC_ALL" to
Michael Albinus [Fri, 15 Nov 2013 07:37:18 +0000 (08:37 +0100)]
* net/tramp-sh.el (tramp-remote-process-environment): Set "LC_ALL" to
"en_US.utf8" and "LC_CTYPE" to "".
(tramp-maybe-open-connection): Set "LC_ALL" to "en_US.utf8".
(tramp-sh-handle-insert-directory): Don't set "LC_ALL" and "LC_CTYPE".

10 years ago* lisp/loadhist.el (read-feature): Get rid of fake feature nil.
Leo Liu [Fri, 15 Nov 2013 06:52:40 +0000 (14:52 +0800)]
* lisp/loadhist.el (read-feature): Get rid of fake feature nil.

* src/minibuf.c (Ftry_completion, Fall_completions)
(Ftest_completion): Use FUNCTIONP.  (Bug#15889)

10 years ago* configure.ac (DEBUGGER_SEES_C_MACROS): New macro.
Paul Eggert [Fri, 15 Nov 2013 01:59:57 +0000 (17:59 -0800)]
* configure.ac (DEBUGGER_SEES_C_MACROS): New macro.

* src/lisp.h (DEFINE_GDB_SYMBOL_BEGIN, DEFINE_GDB_SYMBOL_END):
Define to empty if DEBUGGER_SEES_C_MACROS is defined.
This avoids placing unnecessary constants into the Emacs code.

10 years agolisp/gnus/gnus-icalendar.el (gnus-icalendar-event->gnus-calendar, gnus-icalendar...
Jan Tatarik [Fri, 15 Nov 2013 00:07:54 +0000 (00:07 +0000)]
lisp/gnus/gnus-icalendar.el (gnus-icalendar-event->gnus-calendar, gnus-icalendar-event-from-ical, gnus-icalendar-event->org-entry, gnus-icalendar--update-org-event): Required/optional participation, list of attendees synced to org

10 years agoAdd bug reference to previous commit.
Christopher Schmidt [Thu, 14 Nov 2013 20:30:11 +0000 (21:30 +0100)]
Add bug reference to previous commit.

10 years ago* lisp/progmodes/gud.el (ctl-x-map): Remove C-x SPC binding.
Stefan Monnier [Thu, 14 Nov 2013 20:20:11 +0000 (15:20 -0500)]
* lisp/progmodes/gud.el (ctl-x-map): Remove C-x SPC binding.
(gud-jdb-find-source-using-classpath): Remove ((lambda (..)..)..).

10 years agoFix bug #15892 with link failures of the Cygwin w32 build.
Kazuhiro Ito [Thu, 14 Nov 2013 17:43:49 +0000 (19:43 +0200)]
Fix bug #15892 with link failures of the Cygwin w32 build.

 src/keyboard.c (make_ctrl_char) [HAVE_NTGUI]: Now externally visible
 for Cygwin w32 build.
 src/xdisp.c (erase_phys_cursor) [HAVE_NTGUI]: Now externally visible
 for Cygwin w32 build.

10 years ago* lisp/subr.el (version-regexp-alist):
Bozhidar Batsov [Thu, 14 Nov 2013 17:07:03 +0000 (19:07 +0200)]
* lisp/subr.el (version-regexp-alist):
Recognize hg, svn and darcs versions as snapshot versions.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-mode-set-encoding):
Bozhidar Batsov [Thu, 14 Nov 2013 12:39:41 +0000 (14:39 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-mode-set-encoding):
Fix and simplify encoding comment update logic.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 14 Nov 2013 11:21:21 +0000 (06:21 -0500)]
Auto-commit of loaddefs files.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-mode-set-encoding):
Bozhidar Batsov [Thu, 14 Nov 2013 10:35:49 +0000 (12:35 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-mode-set-encoding):
Add support for always inserting an utf-8 encoding comment.

10 years ago* doc/lispref/loading.texi (Library Search): Update section.
Glenn Morris [Thu, 14 Nov 2013 08:38:50 +0000 (00:38 -0800)]
* doc/lispref/loading.texi (Library Search): Update section.

10 years ago* net/tramp-gvfs.el (top): Run init code only when
Michael Albinus [Thu, 14 Nov 2013 07:36:39 +0000 (08:36 +0100)]
* net/tramp-gvfs.el (top): Run init code only when
`tramp-gvfs-enabled' is not nil.
(tramp-gvfs-enabled): Check also :system bus.

10 years agoSync with upstream verilog-mode revision 78e66ba.
Stefan Monnier [Thu, 14 Nov 2013 02:58:51 +0000 (18:58 -0800)]
Sync with upstream verilog-mode revision 78e66ba.
* lisp/progmodes/verilog-mode.el (verilog-end-of-defun)
(verilog-type-completion, verilog-get-list): Remove unused funcs.
(verilog-get-end-of-defun): Remove unused argument.
(verilog-comment-depth): Remove unused local `e'.
(verilog-read-decls, verilog-read-sub-decls, verilog-read-instants):
Don't pass arg to verilog-get-end-of-defun.

10 years ago* lisp/obsolete/assoc.el (aget): Prefix dynamic variable.
Glenn Morris [Thu, 14 Nov 2013 02:44:54 +0000 (18:44 -0800)]
* lisp/obsolete/assoc.el (aget): Prefix dynamic variable.

10 years ago* lisp/allout-widgets.el (allout-widgets): No need to autoload defgroup.
Glenn Morris [Thu, 14 Nov 2013 02:43:55 +0000 (18:43 -0800)]
* lisp/allout-widgets.el (allout-widgets): No need to autoload defgroup.

10 years agoSimplify, port and tune bool vector implementation.
Paul Eggert [Thu, 14 Nov 2013 02:39:28 +0000 (18:39 -0800)]
Simplify, port and tune bool vector implementation.

* configure.ac (BITSIZEOF_SIZE_T, SIZEOF_SIZE_T): Remove.
* src/alloc.c (bool_vector_exact_payload_bytes)
(bool_vector_payload_bytes): Remove.
(bool_vector_fill): Return its argument.
* src/alloc.c (bool_vector_fill):
* src/lread.c (read1):
* src/print.c (print_object):
Simplify by using bool_vector_bytes.
* src/alloc.c (make_uninit_bool_vector):
New function, broken out from Fmake_bool_vector.
(Fmake_bool_vector): Use it.  Use tail call.
(make_uninit_bool_vector, vector_nbytes): Simplify size calculations.
* src/data.c (BITS_PER_ULL): New constant.
(ULLONG_MAX, count_one_bits_ll): Fall back on long counterparts
if long long versions don't exist.
(shift_right_ull): New function.
(count_one_bits_word): New function, replacing popcount_bits_word
macro.  Don't assume that bits_word is no wider than long long.
(count_one_bits_word, count_trailing_zero_bits):
Don't assume that bits_word is no wider than long long.
* src/data.c (bool_vector_binop_driver, bool_vector_not):
* src/fns.c (Fcopy_sequence):
* src/lread.c (read1):
Create an uninitialized destination, to avoid needless work.
(internal_equal): Simplify.
(Ffillarray): Prefer tail call.
* src/data.c (bool_vector_binop_driver): Don't assume bit vectors always
contain at least one word.
(bits_word_to_host_endian): Prefer if to #if.  Don't assume
chars are narrower than ints.
* src/data.c (Fbool_vector_count_matches, Fbool_vector_count_matches_at):
* src/fns.c (Fcopy_sequence):
Simplify and tune.
* src/lisp.h (bits_word, BITS_WORD_MAX, BITS_PER_BITS_WORD):
Don't try to port to hosts where bits_word values have holes; the
code wouldn't work there anyway.  Verify this assumption, though.
(bool_vector_bytes): New function.
(make_uninit_bool_vector): New decl.
(bool_vector_fill): Now returns Lisp_Object.

10 years agoPrefer tail calls.
Paul Eggert [Thu, 14 Nov 2013 01:52:18 +0000 (17:52 -0800)]
Prefer tail calls.

* lib-src/ebrowse.c (xstrdup):
* lib-src/etags.c (savenstr):
* lwlib/lwlib.c (safe_strdup):
* src/xfns.c (xic_create_fontsetname):
* src/xrdb.c (gethomedir): Prefer tail calls.
* lib-src/etags.c (concat): Omit unnecessary assignment.

10 years ago* lisp/widget.el, lisp/hfy-cmap.el: Remove bogus package version number.
Stefan Monnier [Thu, 14 Nov 2013 00:41:58 +0000 (19:41 -0500)]
* lisp/widget.el, lisp/hfy-cmap.el: Remove bogus package version number.

10 years agolisp/gnus/gnus-icalendar.el: Fix for gnus-icalendar handling of empty appt locations...
Jan Tatarik [Wed, 13 Nov 2013 22:16:42 +0000 (22:16 +0000)]
lisp/gnus/gnus-icalendar.el: Fix for gnus-icalendar handling of empty appt locations; gnus-icalendar can update org entry for canceled appointments

10 years ago* lisp/replace.el (replace-eval-replacement): Try to give more helpful error
Glenn Morris [Wed, 13 Nov 2013 20:48:35 +0000 (15:48 -0500)]
* lisp/replace.el (replace-eval-replacement): Try to give more helpful error
message.

Fixes: debbugs:15836

10 years ago* lisp/arc-mode.el (archive-7z-extract, archive-7z-expunge)
Glenn Morris [Wed, 13 Nov 2013 20:40:12 +0000 (15:40 -0500)]
* lisp/arc-mode.el (archive-7z-extract, archive-7z-expunge)
(archive-7z-update): Avoid custom type mismatches.

10 years ago* lisp/vc/vc.el (vc-diff-knows-L): Remove; unused since 2007-10-10.
Glenn Morris [Wed, 13 Nov 2013 20:06:37 +0000 (15:06 -0500)]
* lisp/vc/vc.el (vc-diff-knows-L): Remove; unused since 2007-10-10.

10 years ago* automated/file-notify-tests.el (file-notify-test02-events)
Michael Albinus [Wed, 13 Nov 2013 15:36:12 +0000 (16:36 +0100)]
* automated/file-notify-tests.el (file-notify-test02-events)
(file-notify-test03-autorevert): Suppress messages in `write-region'.

* automated/tramp-tests.el (tramp-test02-file-name-dissect)
(tramp-test03-file-name-defaults, tramp-test21-file-links): Add tests.
(tramp-test26-process-file, tramp-test28-shell-command): Ensure,
that the directory is not empty when calling "ls".

10 years ago* net/tramp.el (tramp-remote-file-name-spec-regexp): An IPV6
Michael Albinus [Wed, 13 Nov 2013 15:28:06 +0000 (16:28 +0100)]
* net/tramp.el (tramp-remote-file-name-spec-regexp): An IPV6
address can be empty.

* net/tramp-gvfs.el (tramp-gvfs-handle-insert-directory):
Accept nil SWITCHES.
(tramp-gvfs-handle-write-region): Implement APPEND.

10 years ago* Makefile.in (ACLOCAL_INPUTS): Add configure.ac.
Paul Eggert [Wed, 13 Nov 2013 08:04:57 +0000 (00:04 -0800)]
* Makefile.in (ACLOCAL_INPUTS): Add configure.ac.

10 years agolisp/gnus/gnus-icalendar.el (gnus-icalendar-event-from-ical): Fix timezone handling...
Jan Tatarik [Tue, 12 Nov 2013 22:16:09 +0000 (22:16 +0000)]
lisp/gnus/gnus-icalendar.el (gnus-icalendar-event-from-ical): Fix timezone handling in gnus-icalendar export to org

10 years agoorg-agenda.el (org-agenda-set-restriction-lock): Autoload
Bastien Guerry [Tue, 12 Nov 2013 20:14:21 +0000 (21:14 +0100)]
org-agenda.el (org-agenda-set-restriction-lock): Autoload

* org-agenda.el (org-agenda-set-restriction-lock): Autoload.

10 years agoRemove non-existent files in Org 8.2.3a
Bastien Guerry [Tue, 12 Nov 2013 20:00:14 +0000 (21:00 +0100)]
Remove non-existent files in Org 8.2.3a

10 years agoAddress some byte-compiler warnings.
Stefan Monnier [Tue, 12 Nov 2013 19:11:22 +0000 (14:11 -0500)]
Address some byte-compiler warnings.
* lisp/org/ob-abc.el (org-babel-expand-body:abc): Use dolist.
(org-babel-execute:abc): Fix regexp quoting.
* lisp/org/ob-calc.el (org--var-syms): Rename from `var-syms'.
* lisp/org/ob-lilypond.el (ly-compile-lilyfile): Remove redundant let-binding.
* lisp/org/ob-table.el (sbe): Move debug declaration.
* lisp/org/org-clock.el (org--msg-extra): Rename from `msg-extra'.
* lisp/org/org.el (org-version): Avoid var name starting with _.
(org-inhibit-startup, org-called-with-limited-levels)
(org-link-search-inhibit-query, org-time-was-given)
(org-end-time-was-given, org-def, org-defdecode, org-with-time):
* lisp/org/org-colview.el (org-agenda-overriding-columns-format):
* lisp/org/org-agenda.el (org-agenda-multi, org-depend-tag-blocked)
(org-agenda-show-log-scoped):
* lisp/org/ob-python.el (py-which-bufname, python-shell-buffer-name):
* lisp/org/ob-haskell.el (org-export-copy-to-kill-ring):
* lisp/org/ob-exp.el (org-link-search-inhibit-query):
* lisp/org/ob-R.el (ess-eval-visibly-p):
* lisp/org/ob-core.el (org-src-window-setup): Declare before use.
(org-babel-expand-noweb-references): Remove unused `blocks-in-buffer'.
* lisp/org/ox-odt.el (org-odt-hfy-face-to-css):
* lisp/org/org-src.el (org-src-associate-babel-session, org-src-get-lang-mode):
* lisp/org/org-bibtex.el (org-bibtex-get, org-bibtex-ask, org-bibtex)
(org-bibtex-check):
* lisp/org/ob-tangle.el (org-babel-tangle, org-babel-spec-to-string)
(org-babel-tangle-single-block, org-babel-tangle-comment-links):
* ob-table.el (sbe):
* lisp/org/ob-sqlite.el (org-babel-sqlite-expand-vars):
* lisp/org/ob-sql.el (org-babel-sql-expand-vars):
* lisp/org/ob-shen.el (org-babel-execute:shen):
* lisp/org/ob-sh.el (org-babel-execute:sh, org-babel-sh-evaluate):
* lisp/org/ob-scala.el (org-babel-scala-evaluate):
* lisp/org/ob-ruby.el (org-babel-ruby-table-or-string)
(org-babel-ruby-evaluate):
* ob-python.el (org-babel-python-table-or-string)
(org-babel-python-evaluate-external-process)
(org-babel-python-evaluate-session):
* lisp/org/ob-picolisp.el (org-babel-execute:picolisp):
* lisp/org/ob-perl.el (org-babel-perl-evaluate):
* lisp/org/ob-maxima.el (org-babel-execute:maxima):
* lisp/org/ob-lisp.el (org-babel-execute:lisp):
* lisp/org/ob-java.el (org-babel-execute:java):
* lisp/org/ob-io.el (org-babel-io-evaluate):
* ob-haskell.el (org-babel-execute:haskell):
* lisp/org/ob-fortran.el (org-babel-execute:fortran):
* ob-exp.el (org-babel-exp-code):
* lisp/org/ob-emacs-lisp.el (org-babel-execute:emacs-lisp):
* lisp/org/ob-ditaa.el (org-babel-execute:ditaa):
* ob-core.el (org-babel-execute-src-block, org-babel-sha1-hash)
(org-babel-parse-header-arguments, org-babel-reassemble-table)
(org-babel-goto-src-block-head, org-babel-mark-block)
(org-babel-expand-noweb-references, org-babel-script-escape)
(org-babel-process-file-name):
* lisp/org/ob-clojure.el (org-babel-execute:clojure):
* ob-calc.el (org-babel-execute:calc):
* lisp/org/ob-awk.el (org-babel-execute:awk):
* ob-abc.el (org-babel-execute:abc):
* ob-R.el (org-babel-expand-body:R):
* lisp/org/ob-C.el (org-babel-C-execute): Avoid deprecated ((lambda) ...).

10 years agoAdd missing ChangeLog from previous commit
Glenn Morris [Tue, 12 Nov 2013 17:04:19 +0000 (09:04 -0800)]
Add missing ChangeLog from previous commit

10 years agoFix and standardize some copyright and license notices
Glenn Morris [Tue, 12 Nov 2013 17:03:46 +0000 (09:03 -0800)]
Fix and standardize some copyright and license notices

* ob-abc.el: Add year, part of Emacs, standardize license text.

* ob-ebnf.el: Part of Emacs, standardize license text.

* ob-makefile.el: Fix years.

* org-macro.el, ox-beamer.el, ox-latex.el, ox-org.el: Part of Emacs.

* ox-ascii.el, ox-md.el, ox.el: Use range for years, part of Emacs.

* ox-html.el: Part of Emacs.
(org-html-scripts): Add 2013 to copyright years.
(org-html-infojs-template): Set copyright holder to FSF.

* ox-icalendar.el: Part of Emacs, fix years.

* ox-texinfo.el: Copyright to FSF, use range for years.

10 years agolisp/org/ChangeLog: remove references to org-taskjuggler.el
Bastien Guerry [Tue, 12 Nov 2013 16:15:43 +0000 (17:15 +0100)]
lisp/org/ChangeLog: remove references to org-taskjuggler.el

10 years agoRemove org-taskjuggler.el as it's not part of Org 8.2.3a
Bastien Guerry [Tue, 12 Nov 2013 15:45:48 +0000 (16:45 +0100)]
Remove org-taskjuggler.el as it's not part of Org 8.2.3a

10 years agoRemove org-docbook.el, which is not in Org 8.2.3a.
Bastien Guerry [Tue, 12 Nov 2013 14:54:41 +0000 (15:54 +0100)]
Remove org-docbook.el, which is not in Org 8.2.3a.
Fix error in org.texi header.

Thanks to Sean Sieger and Michael Albinus for reporting this.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Disambiguate between
Dmitry Gutov [Tue, 12 Nov 2013 14:15:14 +0000 (16:15 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Disambiguate between
binary "|" operator and closing block args delimiter.  Remove
FIXME comment referring to Ruby 1.8-only syntax.
(ruby-smie--implicit-semi-p): Not after "|" operator.
(ruby-smie--closing-pipe-p): New function.
(ruby-smie--forward-token, ruby-smie--backward-token): Use it.
(ruby-smie-rules): Indent after "|".

10 years agoFix previous commit: remove files that are not part of Org 8.2.3a anymore
Bastien Guerry [Tue, 12 Nov 2013 13:13:04 +0000 (14:13 +0100)]
Fix previous commit: remove files that are not part of Org 8.2.3a anymore

10 years agoMerge Org version 8.2.3a.
Bastien Guerry [Tue, 12 Nov 2013 13:06:26 +0000 (14:06 +0100)]
Merge Org version 8.2.3a.

10 years ago* ps-print.el (ps-face-attribute-list): Handle anonymous faces
Glenn Morris [Tue, 12 Nov 2013 08:16:50 +0000 (00:16 -0800)]
* ps-print.el (ps-face-attribute-list): Handle anonymous faces

Fixes: debbugs:15827

10 years agoFix doc-string of display-buffer-other-frame. (Bug#15868)
Martin Rudalics [Tue, 12 Nov 2013 07:25:14 +0000 (08:25 +0100)]
Fix doc-string of display-buffer-other-frame.  (Bug#15868)

* window.el (display-buffer-other-frame): Fix doc-string.
(Bug#15868)

10 years ago* xterm.c (syms_of_xterm): staticpro Qalt, Qhyper, Qmeta, and Qsuper.
Paul Eggert [Tue, 12 Nov 2013 06:07:37 +0000 (22:07 -0800)]
* xterm.c (syms_of_xterm): staticpro Qalt, Qhyper, Qmeta, and Qsuper.

This is safer, and it's what w32fns.c does.

10 years ago* xterm.c (syms_of_xterm): staticpro Qmodifier_value.
Paul Eggert [Tue, 12 Nov 2013 03:09:48 +0000 (19:09 -0800)]
* xterm.c (syms_of_xterm): staticpro Qmodifier_value.

10 years ago* configure.ac: test portability fix
Glenn Morris [Tue, 12 Nov 2013 03:01:07 +0000 (19:01 -0800)]
* configure.ac: test portability fix
  (I can never remember whether this is still relevant or not)

10 years agoRemove nt/msysconfig.sh
Dani Moncayo [Tue, 12 Nov 2013 02:50:28 +0000 (18:50 -0800)]
Remove nt/msysconfig.sh

* configure.ac [MINGW32]: Source nt/mingw-cfg.site.

* make-dist: Don't distribute nt/msysconfig.sh.

* nt/msysconfig.sh: Remove.

* nt/INSTALL: Update for this.

* nt/mingw-cfg.site: Comment.

10 years ago* Makefile.in (epaths-force-w32): Simplify w32srcdir computation.
Dani Moncayo [Tue, 12 Nov 2013 02:40:14 +0000 (18:40 -0800)]
* Makefile.in (epaths-force-w32): Simplify w32srcdir computation.

10 years ago* buffer.c (Fforce_mode_line_update): Don't fall off end of function
Paul Eggert [Tue, 12 Nov 2013 01:24:04 +0000 (17:24 -0800)]
* buffer.c (Fforce_mode_line_update): Don't fall off end of function

that requires a return value.
(Fset_buffer_modified_p): Take advantage of this change to do
a tail call.

10 years agoDoc fixes.
Xue Fuqiao [Mon, 11 Nov 2013 22:52:08 +0000 (06:52 +0800)]
Doc fixes.

* doc/lispref/os.texi (User Identification, Time of Day, Time Conversion): Minor fixes.

10 years ago* lisp/subr.el (force-mode-line-update): Delete, move to buffer.c.
Stefan Monnier [Mon, 11 Nov 2013 18:05:47 +0000 (13:05 -0500)]
* lisp/subr.el (force-mode-line-update): Delete, move to buffer.c.
* src/buffer.c (Frestore_buffer_modified_p): Sync it with
Fset_buffer_modified_p.
(Fforce_mode_line_update): New function, moved from subr.el.
(Fset_buffer_modified_p): Use them.
(syms_of_buffer): Defsubr Fforce_mode_line_update.

10 years ago* search.c (find_newline): Rewrite to prefer offsets to pointers.
Paul Eggert [Mon, 11 Nov 2013 16:37:54 +0000 (08:37 -0800)]
* search.c (find_newline): Rewrite to prefer offsets to pointers.

This avoids undefined behavior when subtracting pointers into
different aways.  On my platform it also makes the code a tad
smaller and presumably faster.

10 years ago* automated/tramp-tests.el (tramp-test-temporary-file-directory):
Michael Albinus [Mon, 11 Nov 2013 15:22:57 +0000 (16:22 +0100)]
* automated/tramp-tests.el (tramp-test-temporary-file-directory):
Check $TRAMP_TEST_TEMPORARY_FILE_DIRECTORY.
(tramp-read-passwd): Check $TRAMP_TEST_ALLOW_PASSWORD.
(tramp-test09-insert-file-contents, tramp-test10-write-region):
(tramp-test26-process-file): Add tests.
(tramp-test11-copy-file): Remove debug message.
(tramp-test20-file-modes): Special case, if user is "root".

10 years ago* net/tramp-sh.el (tramp-do-copy-or-rename-file-via-buffer)
Michael Albinus [Mon, 11 Nov 2013 15:18:07 +0000 (16:18 +0100)]
* net/tramp-sh.el (tramp-do-copy-or-rename-file-via-buffer)
(tramp-sh-handle-file-local-copy): Don't write a message when
saving temporary files.

* net/tramp-smb.el (tramp-smb-handle-copy-directory): Fix bug when
both directories are remote.
(tramp-smb-handle-directory-files): Do not return double entries.
Do not expand full file names.
(tramp-smb-handle-insert-directory): Accept nil SWITCHES.
(tramp-smb-handle-write-region): Implement APPEND.
(tramp-smb-get-stat-capability): Fix a stupid bug.

10 years ago* lisp/bindings.el (ctl-x-map): Bind C-x SPC to rectangle-mark-mode.
Stefan Monnier [Mon, 11 Nov 2013 05:18:53 +0000 (00:18 -0500)]
* lisp/bindings.el (ctl-x-map): Bind C-x SPC to rectangle-mark-mode.
* src/keyboard.c (command_loop_1): Use region-extract-function.
* src/insdel.c (Qregion_extract_function): Not static any more (can we
stop pretending that these vars can benefit from being marked static?).

10 years ago* lisp/emacs-lisp/cconv.el (cconv-convert): Print warning instead of
Nathan Trapuzzano [Mon, 11 Nov 2013 04:55:39 +0000 (23:55 -0500)]
* lisp/emacs-lisp/cconv.el (cconv-convert): Print warning instead of
throwing error over malformed let/let*.

Fixes: debbugs:15814

10 years ago* lisp/iswitchb.el (iswitchb-mode): Mark obsolete.
Stefan Monnier [Mon, 11 Nov 2013 04:50:56 +0000 (23:50 -0500)]
* lisp/iswitchb.el (iswitchb-mode): Mark obsolete.

10 years ago* make-dist: Comment
Glenn Morris [Mon, 11 Nov 2013 01:00:03 +0000 (17:00 -0800)]
* make-dist: Comment