]> code.delx.au - gnu-emacs/log
gnu-emacs
9 years ago* src/*.c: Set deactivate_mark buffer-locally
Stefan Monnier [Mon, 13 Apr 2015 14:16:38 +0000 (10:16 -0400)]
* src/*.c: Set deactivate_mark buffer-locally

Fixes: debbugs:20260
* src/insdel.c (prepare_to_modify_buffer_1):
* src/fileio.c (Finsert_file_contents): Set deactivate_mark
buffer-locally.

9 years agopython.el: Keep symmetry on sexp navigation with parens
Fabián Ezequiel Gallina [Mon, 13 Apr 2015 01:43:44 +0000 (22:43 -0300)]
python.el: Keep symmetry on sexp navigation with parens

Fixes: debbugs:19954
* lisp/progmodes/python.el
(python-nav--forward-sexp): Add argument skip-parens-p.
(python-nav-forward-sexp, python-nav-backward-sexp)
(python-nav-forward-sexp-safe)
(python-nav-backward-sexp-safe): Use it.

* test/automated/python-tests.el
(python-nav-forward-sexp-1): Fix test.

9 years agoDon't use `setq-local' in Gnus code
João Távora [Sun, 12 Apr 2015 22:23:44 +0000 (23:23 +0100)]
Don't use `setq-local' in Gnus code

This might break upstream builds with older Emacsen

* lisp/gnus/message.el (message-mode): Use `set' and
`make-local-variable' instead of `setq-local'.

9 years agoUpdate Makefile.in's .PHONY dependencies
Paul Eggert [Sun, 12 Apr 2015 22:21:08 +0000 (15:21 -0700)]
Update Makefile.in's .PHONY dependencies

* Makefile.in (change-history-commit, master-branch-is-current)
(no-ChangeLog): Now phony.

9 years agoRemove configure's --with-mmdf option
Paul Eggert [Sun, 12 Apr 2015 21:55:38 +0000 (14:55 -0700)]
Remove configure's --with-mmdf option

* configure.ac (MAIL_USE_MMDF): Remove.
* etc/NEWS: Document this.
* lib-src/movemail.c: Assume MAIL_USE_MMDF is not defined.
Fixes: bug#20308
9 years ago* doc/man/ChangeLog.01: Rename from doc/man/ChangeLog.1.
Paul Eggert [Sun, 12 Apr 2015 18:26:50 +0000 (11:26 -0700)]
* doc/man/ChangeLog.01: Rename from doc/man/ChangeLog.1.

That way, 'make install' won't think it's a man page.
Reported by Ashish SHUKLA in:
http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00656.html

9 years agoImprove 'make change-history' prereq tests
Paul Eggert [Sun, 12 Apr 2015 17:21:59 +0000 (10:21 -0700)]
Improve 'make change-history' prereq tests

* Makefile.in (gen_origin): Fix to match what's in the master branch.
(no-ChangeLog, master-branch-is-current): New rules.
(change-history): Depend on them, to avoid similar future problems.
Escape the local-variables string to pacify Emacs when editing
Makefile.in.

9 years ago* test/automated/package-test.el (with-package-test): Kill Packages buffer
Artur Malabarba [Sun, 12 Apr 2015 15:10:22 +0000 (16:10 +0100)]
* test/automated/package-test.el (with-package-test): Kill Packages buffer

9 years ago* lisp/emacs-lisp/package.el: Improve transaction y-or-n prompt
Artur Malabarba [Sun, 12 Apr 2015 14:11:08 +0000 (15:11 +0100)]
* lisp/emacs-lisp/package.el: Improve transaction y-or-n prompt

(package-menu--prompt-transaction-p): Prompt for "Delete" first,
"Upgrade" last, and use capitalized instead of all-caps.

9 years ago* lisp/emacs-lisp/package.el: Completely silence async operations
Artur Malabarba [Sun, 12 Apr 2015 14:03:45 +0000 (15:03 +0100)]
* lisp/emacs-lisp/package.el: Completely silence async operations

(package--make-autoloads-and-stuff): Silence autoloads.

(package--save-selected-packages): New function, silences
`customize-save-variable'.
(package--user-selected-p, package-install-from-buffer)
(package-delete, package-install): Use it.

(package-install-from-archive)
(package-menu--perform-transaction): Silence.

(package-menu-execute): Feedback when operation starts.

9 years agoUse delay-mode-hooks when visiting the init-file
Artur Malabarba [Sun, 12 Apr 2015 13:37:45 +0000 (14:37 +0100)]
Use delay-mode-hooks when visiting the init-file

* lisp/emacs-lisp/package.el (package--ensure-init-file):
delay-mode-hooks

* lisp/cus-edit.el (custom-save-all): delay-mode-hooks

9 years ago* lisp/files.el: Only message when saving if save-silently is nil
Artur Malabarba [Sun, 12 Apr 2015 13:36:54 +0000 (14:36 +0100)]
* lisp/files.el: Only message when saving if save-silently is nil

(save-silently): New variable.
(files--message): New function.

(find-file-noselect, save-buffer, basic-save-buffer)
(basic-save-buffer-2, save-some-buffers, not-modified)
(append-to-file): Use them.

9 years agoSupport debug declarations in pcase macros
Johan Bockgård [Sun, 12 Apr 2015 14:26:52 +0000 (16:26 +0200)]
Support debug declarations in pcase macros

* lisp/emacs-lisp/pcase.el (pcase-MACRO): New edebug spec.
(pcase-UPAT): Use it.  Remove "`".
(pcase--edebug-match-macro): New function.
(pcase-defmacro): Support debug declarations.

* lisp/emacs-lisp/cl-macs.el (cl-struct) <pcase-defmacro>:
* lisp/emacs-lisp/eieio.el (eieio) <pcase-defmacro>:
* lisp/emacs-lisp/pcase.el (\`): <pcase-defmacro>: Add debug declaration.

9 years agopcase.el: Edebug support for `app' and vector patterns
Johan Bockgård [Sun, 12 Apr 2015 14:26:51 +0000 (16:26 +0200)]
pcase.el: Edebug support for `app' and vector patterns

* lisp/emacs-lisp/pcase.el (pcase-FUN): New edebug spec.
(pcase-UPAT): Use it. Support `app' patterns.
(pcase-QPAT): Support vector patterns.

9 years agoedebug.el: Disambiguate vector specifications
Johan Bockgård [Sun, 12 Apr 2015 14:26:51 +0000 (16:26 +0200)]
edebug.el: Disambiguate vector specifications

* lisp/emacs-lisp/edebug.el (edebug-match-list): Always treat
`(vector ...)' as a vector specification, not as a sublist.

9 years ago(gnus-summary-refer-thread): Don't clobber unread articles
Johan Bockgård [Sun, 12 Apr 2015 14:13:08 +0000 (16:13 +0200)]
(gnus-summary-refer-thread): Don't clobber unread articles

This fixes a bug where `A T' causes "random" articles to become marked
as read.

* lisp/gnus/gnus-sum.el (gnus-summary-refer-thread): Make sure
gnus-newsgroup-unreads remains sorted.

9 years agomouse-sel.el: Fix mouse-sel-get-selection-function
Johan Bockgård [Sun, 12 Apr 2015 13:55:32 +0000 (15:55 +0200)]
mouse-sel.el: Fix mouse-sel-get-selection-function

* lisp/obsolete/mouse-sel.el (mouse-sel-get-selection-function):
Use gui--last-selected-text-primary instead of no longer existing
gui-last-selected-text.

9 years ago* lisp/rect.el (delete-whitespace-rectangle-line): Don't cross EOL.
Johan Bockgård [Sun, 12 Apr 2015 13:50:02 +0000 (15:50 +0200)]
* lisp/rect.el (delete-whitespace-rectangle-line): Don't cross EOL.

9 years ago* lisp/net/nsm.el (nsm-query-user): Use cursor-in-echo-area.
Johan Bockgård [Sun, 12 Apr 2015 13:37:50 +0000 (15:37 +0200)]
* lisp/net/nsm.el (nsm-query-user): Use cursor-in-echo-area.

9 years ago* lisp/emacs-lisp/package.el (list-packages): Avoid redundant generate
Artur Malabarba [Sun, 12 Apr 2015 12:47:58 +0000 (13:47 +0100)]
* lisp/emacs-lisp/package.el (list-packages): Avoid redundant generate

9 years ago* lisp/emacs-lisp/package.el (list-packages): Call refresh in right buffer
Artur Malabarba [Sun, 12 Apr 2015 12:44:43 +0000 (13:44 +0100)]
* lisp/emacs-lisp/package.el (list-packages): Call refresh in right buffer

9 years ago* lisp/emacs-lisp/bytecomp.el: Silence noninteractive compilations
Artur Malabarba [Sun, 12 Apr 2015 11:05:13 +0000 (12:05 +0100)]
* lisp/emacs-lisp/bytecomp.el: Silence noninteractive compilations

(byte-compile--interactive): New var.
(byte-compile--message): New function.
(byte-compile-log-1, byte-force-recompile)
(byte-recompile-directory, byte-recompile-file)
(byte-compile-file, compile-defun)
(byte-compile-file-form-defmumble, byte-compile)
(byte-compile-file-form-defalias, display-call-tree): Use it.

9 years ago* lisp/files.el: Don't message when nothing happened
Artur Malabarba [Sun, 12 Apr 2015 11:01:24 +0000 (12:01 +0100)]
* lisp/files.el: Don't message when nothing happened

(save-some-buffers, basic-save-buffer): Before messaging to say
"nothing was saved" check if (called-interactively-p 'any).

9 years agoSummary: Improve sexp-based movement in message-mode
João Távora [Sun, 12 Apr 2015 12:12:27 +0000 (13:12 +0100)]
Summary: Improve sexp-based movement in message-mode

Works by giving citations and smileys a different syntax.  This helps
modes like `show-paren-mode', `electric-pair-mode', and C-M-*
sexp-based movement.

* lisp/gnus/message.el (message--syntax-propertize): New function.
(message-mode): Set syntax-related vars.
(message-smileys): New variable.

* test/automated/message-mode-tests.el: New file

9 years agoUse bool for boolean in window.c
Paul Eggert [Sun, 12 Apr 2015 03:45:08 +0000 (20:45 -0700)]
Use bool for boolean in window.c

* src/window.c: Omit unnecessary static function decls.
(adjust_window_count, select_window, Fselect_window)
(window_body_width, Fwindow_body_height, Fwindow_body_width)
(set_window_hscroll, check_window_containing, Fwindow_at)
(Fwindow_end, Fset_window_start, Fpos_visible_in_window_p)
(unshow_buffer, replace_window, recombine_windows)
(add_window_to_list, candidate_window_p, next_window)
(Fnext_window, Fprevious_window, window_loop, check_all_windows)
(Fget_buffer_window, Fdelete_other_windows_internal)
(replace_buffer_in_windows_safely, set_window_buffer)
(Fset_window_buffer, Fforce_window_update)
(temp_output_buffer_show, make_parent_window)
(window_resize_check, window_resize_apply, Fwindow_resize_apply)
(resize_frame_windows, Fsplit_window_internal)
(Fdelete_window_internal, grow_mini_window, shrink_mini_window)
(Fresize_mini_window_internal, mark_window_cursors_off)
(window_scroll, window_scroll_pixel_based)
(window_scroll_line_based, scroll_command, Fscroll_other_window)
(Fscroll_left, Fscroll_right, displayed_window_lines, Frecenter)
(Fmove_to_window_line, Fset_window_configuration)
(delete_all_child_windows, apply_window_adjustment)
(set_window_fringes, set_window_scroll_bars)
(Fset_window_vscroll, foreach_window, foreach_window_1)
(compare_window_configurations, Fcompare_window_configurations):
Prefer 'bool', 'true', and 'false' for booleans.
* src/window.h (WINDOW_MODE_LINE_LINES)
(WINDOW_HEADER_LINE_LINES): Omit unnecessary "!!" on bool value.

9 years agoSpeed up byte-compilation and autoload generation by avoiding mode-hooks
Artur Malabarba [Sun, 12 Apr 2015 02:23:35 +0000 (03:23 +0100)]
Speed up byte-compilation and autoload generation by avoiding mode-hooks

This prevents emacs-lisp-mode-hook from being run everytime an
autoload file is generated, which can account for a fraction of
package installation time depending on the hooks the user has
configured.

* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Use delay-mode-hooks.

* lisp/emacs-lisp/autoload.el (autoload-find-file)
(autoload-find-generated-file): Use delay-mode-hooks.

9 years ago* lisp/emacs-lisp/package.el: Improve `package-menu-refresh'
Artur Malabarba [Sun, 12 Apr 2015 02:55:21 +0000 (03:55 +0100)]
* lisp/emacs-lisp/package.el: Improve `package-menu-refresh'

(package-menu-refresh): Respect async and do new package checking.
(list-packages): Use `package-menu-refresh' instead of repeating code.

9 years ago* lisp/emacs-lisp/package.el: Improve package-menu-quick-help
Artur Malabarba [Sun, 12 Apr 2015 02:08:21 +0000 (03:08 +0100)]
* lisp/emacs-lisp/package.el: Improve package-menu-quick-help

(package--quick-help-keys): New variable.
(package--prettify-quick-help-key): New function.
(package-menu-quick-help): Use it.

9 years ago* lisp/emacs-lisp/package.el: Fix initially wrong compat table
Artur Malabarba [Sun, 12 Apr 2015 01:33:29 +0000 (02:33 +0100)]
* lisp/emacs-lisp/package.el: Fix initially wrong compat table

(package--build-compatibility-table): require finder

9 years ago* test/automated/package-test.el: Fix new test
Artur Malabarba [Sun, 12 Apr 2015 01:14:03 +0000 (02:14 +0100)]
* test/automated/package-test.el: Fix new test

9 years ago* lisp/emacs-lisp/package.el: Silence async operations
Artur Malabarba [Sun, 12 Apr 2015 00:52:43 +0000 (01:52 +0100)]
* lisp/emacs-lisp/package.el: Silence async operations

(package--silence): New variable.
(package--message): New function.

(package-import-keyring, package-refresh-contents)
(package-compute-transaction, package-install, package-delete)
(package-menu--perform-transaction, package-menu-execute): Use it.

9 years ago* test/automated/package-test.el: Test async functionality
Artur Malabarba [Sun, 12 Apr 2015 00:10:35 +0000 (01:10 +0100)]
* test/automated/package-test.el: Test async functionality

(package-test-update-archives-async): New test

9 years agoUtilize `make-process' in epg.el
Daiki Ueno [Sat, 11 Apr 2015 07:31:59 +0000 (16:31 +0900)]
Utilize `make-process' in epg.el

* lisp/epg.el (epg-error-output): Abolish.
(epg-context): New slot `error-buffer'.
(epg--start): Use `make-process' and `make-pipe-process'.
(epg--process-filter): Remove code separating stderr from stdout.
(epg-wait-for-completion): Simplify `error-output' handling.
(epg-reset): Dispose error buffer.

9 years ago* .gitignore: Ignore doc temps and outputs.
Paul Eggert [Sat, 11 Apr 2015 20:49:08 +0000 (13:49 -0700)]
* .gitignore: Ignore doc temps and outputs.

9 years agoPort commit-msg to MSYS Bash+Gawk
Paul Eggert [Sat, 11 Apr 2015 20:04:37 +0000 (13:04 -0700)]
Port commit-msg to MSYS Bash+Gawk

See Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00610.html
* build-aux/git-hooks/commit-msg (cent_sign_utf8_format)
(cent_sign, print_at_sign, at_sign): Revert previous change.
(print_at_sign): Prepend "BEGIN".
(at_sign): Redirect from /dev/null to be safer with pre-POSIX awk.

9 years agoPort commit-msg to broken MS-Windows shell
Paul Eggert [Sat, 11 Apr 2015 15:19:13 +0000 (08:19 -0700)]
Port commit-msg to broken MS-Windows shell

* build-aux/git-hooks/commit-msg (cent_sign):
Just use UTF-8 here rather than ASCII + printf, as the latter fails
on a broken MS-Windows shell.  Reported by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00592.html

9 years agoSupport GnuTLS v3.4 and later on MS-Windows
Chris Zheng [Sat, 11 Apr 2015 15:06:52 +0000 (18:06 +0300)]
Support GnuTLS v3.4 and later on MS-Windows

* src/gnutls.c (syms_of_gnutls) <libgnutls-version>: New DEFSYM.
* lisp/term/w32-win.el (dynamic-library-alist): Determine which
GnuTLS DLL to load according to value of libgnutls-version.

Fixes: bug#20294
Copyright-paperwork-exempt: yes

9 years agoMinor quoting etc. fixes to misc manuals
Paul Eggert [Sat, 11 Apr 2015 14:47:25 +0000 (07:47 -0700)]
Minor quoting etc. fixes to misc manuals

Fix some minor quoting and spacing issues.  Distinguish more
clearly among grave accent and apostrophe (which are ASCII) and
single quote (which is not).  Prefer the standard terms
"apostrophe" and "grave accent" to alternative names that can be
confusing.  Use apostrophes to single-quote ASCII text.
* doc/misc/remember.texi: Spell the mystic's pseudonym in UTF-8
rather than approximating it in ASCII with grave accent.

9 years agoRespect more keyword args in `make-process'
Daiki Ueno [Sat, 11 Apr 2015 07:01:18 +0000 (16:01 +0900)]
Respect more keyword args in `make-process'

* process.c (Fmake_process): Respect `:sentinel' and `:filter'
keywords as documented.

9 years agoExtract ChangeLog entries when committing a directory
Dmitry Gutov [Sat, 11 Apr 2015 04:09:28 +0000 (07:09 +0300)]
Extract ChangeLog entries when committing a directory

* lisp/vc/vc-dispatcher.el (vc-log-edit): Update FIXME comment.

* lisp/vc/log-edit.el (log-edit-changelog-insert-entries):
Add a FIXME comment.
(log-edit-changelog-entries): Extract from
`log-edit-changelog-entries', handle FILE being a directory
(http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00555.html).

9 years agoFix problems found by --enable-gcc-warnings
Paul Eggert [Sat, 11 Apr 2015 02:36:29 +0000 (19:36 -0700)]
Fix problems found by --enable-gcc-warnings

* src/process.c (create_process, Fmake_pipe_process)
(Fmake_network_process): Omit unused locals.

9 years agoFix commit-msg to handle scissors lines
Paul Eggert [Sat, 11 Apr 2015 02:12:16 +0000 (19:12 -0700)]
Fix commit-msg to handle scissors lines

* build-aux/git-hooks/commit-msg:
Ignore every line after a scissors line, such as a line generated
by 'git commit -v'.  Problem reported by Johan Bockgård in:
http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00580.html

9 years agoport commit-msg to Gawk 3.0.4 (1999)
Paul Eggert [Sat, 11 Apr 2015 02:12:16 +0000 (19:12 -0700)]
port commit-msg to Gawk 3.0.4 (1999)

* build-aux/git-hooks/commit-msg (cent_sign_utf8_format, cent_sign)
(print_at_sign, at_sign): New vars.  Use them to avoid problems
Eli Zaretskii encountered with Gawk 3.0.4 (1999) on MSYS.  See:
http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00566.html

9 years agoHave commit-msg report commit failure
Paul Eggert [Sat, 11 Apr 2015 02:12:16 +0000 (19:12 -0700)]
Have commit-msg report commit failure

* build-aux/git-hooks/commit-msg: If the commit is aborted,
say so.  Simplify by doing this at the end.  Problem reported
by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00566.html

9 years agoClean up LDAP Configuration section of EUDC manual
Thomas Fitzsimmons [Sat, 11 Apr 2015 01:55:40 +0000 (21:55 -0400)]
Clean up LDAP Configuration section of EUDC manual

* doc/misc/eudc.texi: Combine indices.
(LDAP Configuration): Use command markup.  Add index entries.
Change formatting.  Wrap long lines.  Add noindent markup.

9 years agoAdd facility to collect stderr of async subprocess
Daiki Ueno [Tue, 7 Apr 2015 08:42:09 +0000 (17:42 +0900)]
Add facility to collect stderr of async subprocess

* src/w32.h (register_aux_fd): New function declaration.
* src/w32.c (register_aux_fd): New function.
* src/process.h (struct Lisp_Process): New member stderrproc.
* src/process.c (PIPECONN_P): New macro.
(PIPECONN1_P): New macro.
(Fdelete_process, Fprocess_status, Fset_process_buffer)
(Fset_process_filter, Fset_process_sentinel, Fstop_process)
(Fcontinue_process): Handle pipe process specially.
(create_process): Respect p->stderrproc.
(Fmake_pipe_process): New function.
(Fmake_process): Add new keyword argument :stderr.
(wait_reading_process_output): Specially handle a pipe process when
it gets an EOF.
(syms_of_process): Register Qpipe and Smake_pipe_process.

* doc/lispref/processes.texi (Asynchronous Processes): Document
`make-pipe-process' and `:stderr' keyword of `make-process'.

* lisp/subr.el (start-process): Suggest to use `make-process' handle
standard error separately.

* test/automated/process-tests.el (process-test-stderr-buffer)
(process-test-stderr-filter): New tests.

* etc/NEWS: Mention new process type `pipe' and its usage with the
`:stderr' keyword of `make-process'.

9 years agoMinor quoting etc. fixes to lispref manual
Paul Eggert [Fri, 10 Apr 2015 18:27:21 +0000 (11:27 -0700)]
Minor quoting etc. fixes to lispref manual

* doc/lispref/tips.texi (Documentation Tips):
Distinguish more clearly among grave accent, apostrophe,
and single quote.
* doc/lispref/README, doc/lispref/buffers.texi:
* doc/lispref/commands.texi, doc/lispref/control.texi:
* doc/lispref/customize.texi, doc/lispref/display.texi:
* doc/lispref/elisp.texi, doc/lispref/files.texi:
* doc/lispref/frames.texi, doc/lispref/hash.texi:
* doc/lispref/help.texi, doc/lispref/internals.texi:
* doc/lispref/loading.texi, doc/lispref/makefile.w32-in:
* doc/lispref/markers.texi, doc/lispref/modes.texi:
* doc/lispref/nonascii.texi, doc/lispref/objects.texi:
* doc/lispref/os.texi, doc/lispref/positions.texi:
* doc/lispref/strings.texi, doc/lispref/syntax.texi:
* doc/lispref/text.texi, doc/lispref/tips.texi:
* doc/lispref/two-volume-cross-refs.txt, doc/lispref/windows.texi:
Use American-style double quoting in ordinary text,
and quote 'like this' when single-quoting in ASCII text.
Also, fix some minor spacing issues.

9 years agoHandle symlinked test directory in tramp-tests.el
Michael Albinus [Fri, 10 Apr 2015 10:53:01 +0000 (12:53 +0200)]
Handle symlinked test directory in tramp-tests.el

* test/automated/tramp-tests.el (tramp-test18-file-attributes)
(tramp--test-check-files): Use `file-truename' for directories.

9 years agoFix 'recenter' when visual-line-mode is turned on
Eli Zaretskii [Fri, 10 Apr 2015 10:09:42 +0000 (13:09 +0300)]
Fix 'recenter' when visual-line-mode is turned on

* src/window.c (Frecenter): Use the same code for GUI and TTY
frames alike; use vmotion only for "initial" frames.  This is
because vmotion doesn't support visual-line-mode.  Rewrite the
'iarg >= 0' case to use move_it_* functions instead of using
vmotion, for the same reason.  Fix the clipping of the argument
value to support scroll-margin in all cases and avoid unwarranted
recentering.  Reported by Milan Stanojević <milanst@gmail.com> in
http://lists.gnu.org/archive/html/help-gnu-emacs/2015-04/msg00092.html,
which see.

9 years ago* abbrev.el (define-abbrev-table): Refine last change.
Stefan Monnier [Fri, 10 Apr 2015 06:47:44 +0000 (02:47 -0400)]
* abbrev.el (define-abbrev-table): Refine last change.

9 years agocl-lib.el: Partial revert of "2015-04-05 Rationalize c[ad]+r"
Stefan Monnier [Fri, 10 Apr 2015 05:50:22 +0000 (01:50 -0400)]
cl-lib.el: Partial revert of "2015-04-05 Rationalize c[ad]+r"

* lisp/emacs-lisp/cl-lib.el: Partial revert of "2015-04-05 Rationalize
use of c[ad]+r", so as to keep the "cl-" prefix on all
cl-lib definitions.

9 years ago* vhdl-mode.el (vhdl-prepare-search-2): Use inhibit-point-motion-hooks
Stefan Monnier [Fri, 10 Apr 2015 04:20:54 +0000 (00:20 -0400)]
* vhdl-mode.el (vhdl-prepare-search-2): Use inhibit-point-motion-hooks

9 years ago* lisp/cedet/semantic: Remove some dead code
Stefan Monnier [Fri, 10 Apr 2015 04:17:19 +0000 (00:17 -0400)]
* lisp/cedet/semantic: Remove some dead code

* lisp/cedet/semantic/util-modes.el
(semantic-stickyfunc-header-line-format): Emacs<22 is not supported
any more.
* lisp/cedet/semantic/fw.el (semantic-buffer-local-value): Emacs<21 is
not supported any more.
(semantic-safe): Use `declare'.
* lisp/cedet/semantic/decorate.el (semantic-set-tag-intangible)
(semantic-tag-intangible-p): Remove unused functions.
* lisp/cedet/semantic/complete.el (semantic-displayor-window-edges):
Remove unused function.

9 years ago* lisp/gnus/gnus-art.el (gnus-hidden-properties): Simplify.
Stefan Monnier [Fri, 10 Apr 2015 04:11:04 +0000 (00:11 -0400)]
* lisp/gnus/gnus-art.el (gnus-hidden-properties): Simplify.

(gnus-article-hide-text, gnus-article-unhide-text)
(gnus-article-unhide-text-type): Remove special handling of
`intangible' since that property is not used any more.
(gnus-article-treat-body-boundary): Use gnus-hidden-properties.

9 years ago; Add asterisks and periods
Dmitry Gutov [Fri, 10 Apr 2015 01:10:56 +0000 (04:10 +0300)]
; Add asterisks and periods

9 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Jay Belanger [Fri, 10 Apr 2015 00:07:15 +0000 (19:07 -0500)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

9 years agoUse the VC root in `log-edit-listfun'
Dmitry Gutov [Fri, 10 Apr 2015 00:54:55 +0000 (03:54 +0300)]
Use the VC root in `log-edit-listfun'

* lisp/vc/vc-dispatcher.el (vc-log-edit): Use the VC root in
`log-edit-listfun'.

9 years agoFix description of Unix time, mention new function.
Jay Belanger [Fri, 10 Apr 2015 00:03:19 +0000 (19:03 -0500)]
Fix description of Unix time, mention new function.

* lisp/calc/calc-forms.el (calcFunc-unixtime): Fix adjustment for
Unix time.
* doc/misc/calc.texi (Date Forms): Fix description of Unix time.
(Basic Operations on Units): Mention `calc-convert-exact-units'.

9 years ago* lisp/emacs-lisp/package.el: Use mode-line-process for notification
Artur Malabarba [Wed, 8 Apr 2015 21:59:55 +0000 (22:59 +0100)]
* lisp/emacs-lisp/package.el: Use mode-line-process for notification

9 years ago(log-edit-insert-changelog-entries): Don't add newline after the last entry
Dmitry Gutov [Thu, 9 Apr 2015 23:26:58 +0000 (02:26 +0300)]
(log-edit-insert-changelog-entries): Don't add newline after the last entry

* lisp/vc/log-edit.el (log-edit-insert-changelog-entries):
Don't add newline after the last entry.

9 years agocss-mode.el: Add "not" pseudo-class
Simen Heggestøyl [Thu, 9 Apr 2015 18:58:53 +0000 (20:58 +0200)]
css-mode.el: Add "not" pseudo-class

Fixes: debbugs:20267
* textmodes/css-mode.el (css-pseudo-class-ids): Add "not" to list
of CSS pseudo-classes.

9 years agoetc/NEWS: Add missing entry for "Stop messing with the EMACS env var"
Stefan Monnier [Thu, 9 Apr 2015 18:45:42 +0000 (14:45 -0400)]
etc/NEWS: Add missing entry for "Stop messing with the EMACS env var"

9 years agoStop messing with the EMACS env var
Michael Albinus [Thu, 9 Apr 2015 18:07:20 +0000 (20:07 +0200)]
Stop messing with the EMACS env var

* misc.texi (Interactive Shell): Remove description of EMACS env var.

9 years ago; Add missing (tiny change) and minor cleanup
Paul Eggert [Thu, 9 Apr 2015 17:21:07 +0000 (10:21 -0700)]
; Add missing (tiny change) and minor cleanup

9 years ago; make change-history-commit
Paul Eggert [Thu, 9 Apr 2015 17:16:26 +0000 (10:16 -0700)]
; make change-history-commit

9 years agoAdapt 'make change-history' to coding cookie
Paul Eggert [Thu, 9 Apr 2015 17:16:08 +0000 (10:16 -0700)]
Adapt 'make change-history' to coding cookie

* Makefile.in (change-history): Adjust to change of format of
ChangeLog file, which now has a coding cookie before an indented
copyright notice.

9 years agogitlog-to-changelog coding cookie and mv -i
Paul Eggert [Thu, 9 Apr 2015 16:50:48 +0000 (09:50 -0700)]
gitlog-to-changelog coding cookie and mv -i

* build-aux/gitlog-to-emacslog: Use ChangeLog.1, not Makefile.in,
for copyright notice prototype, so that we get a proper "coding:"
cookie.  Use 'mv -i' to avoid unconditionally overwriting an
existing ChangeLog.  Problems reported by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00504.html

9 years agoMerge from gnulib
Paul Eggert [Thu, 9 Apr 2015 16:31:31 +0000 (09:31 -0700)]
Merge from gnulib

* build-aux/gitlog-to-changelog: Update from gnulib, incorporating:
2015-04-09 gitlog-to-changelog: port to MS-Windows

9 years ago* lisp/bookmark.el (bookmark-bmenu-goto-bookmark): Don't inf-loop.
Boruch Baum [Thu, 9 Apr 2015 15:07:15 +0000 (11:07 -0400)]
* lisp/bookmark.el (bookmark-bmenu-goto-bookmark): Don't inf-loop.

Fixes: debbugs:20212
9 years agoStop messing with the EMACS env var
Stefan Monnier [Thu, 9 Apr 2015 15:01:04 +0000 (11:01 -0400)]
Stop messing with the EMACS env var

Fixes: debbugs:20202
* lisp/net/tramp-sh.el (tramp-remote-process-environment):
* lisp/comint.el (comint-exec-1):
* lisp/term.el (term-exec-1): Don't set EMACS envvar.
* lisp/progmodes/compile.el (compilation-start): Same and bring
INSIDE_EMACS's format in line with other users.

9 years agocss-mode.el (css-smie-rules): Fix indentation after complex selectors
Stefan Monnier [Thu, 9 Apr 2015 14:51:23 +0000 (10:51 -0400)]
css-mode.el (css-smie-rules): Fix indentation after complex selectors

Fixes: debbugs:20282
* lisp/textmodes/css-mode.el (css-smie-rules): Don't get confused by
inner structure of selectors.

9 years agopython.el: Indent docstring lines to base-indent
Fabián Ezequiel Gallina [Thu, 9 Apr 2015 04:41:55 +0000 (01:41 -0300)]
python.el: Indent docstring lines to base-indent

Fixes: debbugs:19595
Thanks to immerrr <immerrr@gmail.com> for reporting and providing
an initial patch.

* lisp/progmodes/python.el
(python-indent-context): Add :inside-docstring context.
(python-indent--calculate-indentation): Handle :inside-docstring.
(python-indent-region): Re-indent docstrings.

* test/automated/python-tests.el (python-indent-region-5)
(python-indent-inside-string-2): Fix tests.

9 years agopython.el: Increase native completion robustness
Fabián Ezequiel Gallina [Thu, 9 Apr 2015 03:53:18 +0000 (00:53 -0300)]
python.el: Increase native completion robustness

Fixes: debbugs:19755
Thanks to Carlos Pita <carlosjosepita@gmail.com> for reporting
this and providing useful ideas.

* lisp/progmodes/python.el
(python-shell-completion-native-output-timeout): Increase value.
(python-shell-completion-native-try-output-timeout): New var.
(python-shell-completion-native-try): Use it.
(python-shell-completion-native-setup): New readline setup avoids
polluting current context, ensures output when no-completions are
available and includes output end marker.
(python-shell-completion-native-get-completions): Trigger with one
tab only.  Call accept-process-output until output end is found or
python-shell-completion-native-output-timeout is exceeded.

9 years ago* lisp/eshell: Make backslash a no-op in front of normal chars
Samer Masterson [Thu, 9 Apr 2015 02:31:51 +0000 (22:31 -0400)]
* lisp/eshell: Make backslash a no-op in front of normal chars

Fixes: debbugs:8531
* lisp/eshell/esh-arg.el (eshell-parse-argument-hook): Update comment.
(eshell-parse-backslash): Return escaped character after backslash
if it is special.  Otherwise, if the backslash is not in a quoted
string, ignore the backslash and return the character after; if
the backslash is in a quoted string, return the backslash and the
character after.

* test/automated/eshell.el (eshell-test/escape-nonspecial)
(eshell-test/escape-nonspecial-unicode)
(eshell-test/escape-nonspecial-quoted)
(eshell-test/escape-special-quoted): Add tests for new
`eshell-parse-backslash' behavior.

9 years ago(diff-hunk-file-names): Don't require a TAB after the file name
Gustav Hållberg [Thu, 9 Apr 2015 01:47:50 +0000 (21:47 -0400)]
(diff-hunk-file-names): Don't require a TAB after the file name

Fixes: debbugs:20276
9 years ago(diff-hunk-file-names): Don't require a TAB after the file name
Gustav Hållberg [Thu, 9 Apr 2015 01:46:28 +0000 (21:46 -0400)]
(diff-hunk-file-names): Don't require a TAB  after the file name

* lisp/vc/diff-mode.el (diff-hunk-file-names): Don't require a TAB
after the file name (bug#20276).

9 years agoMinor quoting etc. fixes to Emacs manual
Paul Eggert [Thu, 9 Apr 2015 01:03:06 +0000 (18:03 -0700)]
Minor quoting etc. fixes to Emacs manual

* doc/emacs/Makefile.in, doc/emacs/ack.texi, doc/emacs/building.texi:
* doc/emacs/calendar.texi, doc/emacs/cmdargs.texi:
* doc/emacs/custom.texi, doc/emacs/dired.texi, doc/emacs/emacs.texi:
* doc/emacs/files.texi, doc/emacs/glossary.texi, doc/emacs/gnu.texi:
* doc/emacs/indent.texi, doc/emacs/macos.texi:
* doc/emacs/maintaining.texi, doc/emacs/makefile.w32-in:
* doc/emacs/programs.texi, doc/emacs/rmail.texi:
* doc/emacs/search.texi, doc/emacs/trouble.texi:
* doc/emacs/vc1-xtra.texi:
Use American-style double quoting in ordinary text,
and quote 'like this' when single-quoting in ASCII text.
Also, fix some minor spacing issues.

9 years agoMinor quoting etc. fixes to elisp intro
Paul Eggert [Thu, 9 Apr 2015 00:40:14 +0000 (17:40 -0700)]
Minor quoting etc. fixes to elisp intro

* doc/lispintro/emacs-lisp-intro.texi: Consistently use
American-style double quoting in ordinary text.  In ASCII text,
consistently quote 'like this' instead of `like this', unless
Emacs requires the latter.

9 years agoCONTRIBUTE: Mention log-edit-insert-changelog
Dmitry Gutov [Thu, 9 Apr 2015 00:36:30 +0000 (03:36 +0300)]
CONTRIBUTE: Mention log-edit-insert-changelog

9 years agoCONTRIBUTE: Emphasize creating the top-level ChangeLog file manually
Dmitry Gutov [Thu, 9 Apr 2015 00:30:42 +0000 (03:30 +0300)]
CONTRIBUTE: Emphasize creating the top-level ChangeLog file manually

9 years ago* doc/misc/calc.texi (Summary): Avoid '@:' when usurped.
Paul Eggert [Thu, 9 Apr 2015 00:19:15 +0000 (17:19 -0700)]
* doc/misc/calc.texi (Summary): Avoid '@:' when usurped.

9 years ago(eieio-copy-parents-into-subclass): Fix inheritance of initargs
Stefan Monnier [Wed, 8 Apr 2015 21:23:50 +0000 (17:23 -0400)]
(eieio-copy-parents-into-subclass): Fix inheritance of initargs

Fixes: debbugs:20270
* lisp/emacs-lisp/eieio-core.el (eieio-copy-parents-into-subclass):
Fix inheritance of initargs.

9 years ago* lisp/emacs-lisp/package.el (package-menu-mode): Mode-line notification
Artur Malabarba [Wed, 8 Apr 2015 18:27:45 +0000 (19:27 +0100)]
* lisp/emacs-lisp/package.el (package-menu-mode): Mode-line notification

while dowloading information.

9 years ago* lisp/emacs-lisp/package.el: More conservative `ensure-init-file'
Artur Malabarba [Tue, 7 Apr 2015 17:59:40 +0000 (18:59 +0100)]
* lisp/emacs-lisp/package.el: More conservative `ensure-init-file'

(package--ensure-init-file): Check file contents before visiting.
(package-initialize): Call it.
(package-install-from-buffer, package-install): Don't call it.

9 years ago* src/eval.c (init_eval_once): Bump max_lisp_eval_depth to 800
Eli Zaretskii [Wed, 8 Apr 2015 15:24:04 +0000 (18:24 +0300)]
* src/eval.c (init_eval_once): Bump max_lisp_eval_depth to 800

Fixes: bug#17517
9 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Wed, 8 Apr 2015 09:52:12 +0000 (11:52 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

9 years agoFix nasty scoping bug in tramp-cache.el
Michael Albinus [Wed, 8 Apr 2015 09:51:22 +0000 (11:51 +0200)]
Fix nasty scoping bug in tramp-cache.el

* lisp/net/tramp-cache.el (tramp-flush-file-property): Fix nasty scoping bug.

9 years agoAdd notice to visual commands section
Tassilo Horn [Wed, 8 Apr 2015 07:57:58 +0000 (09:57 +0200)]
Add notice to visual commands section

* doc/misc/eshell.texi (Input/Output): Add notice that some tools
such as git call less with its -F option which omits pagination if
the contents is less than one page long.  This interferes with
eshell's visual (sub-)commands.

9 years agoffap: Support environment variable expansion in file names
Dmitry Gutov [Wed, 8 Apr 2015 00:18:38 +0000 (03:18 +0300)]
ffap: Support environment variable expansion in file names

Fixes: debbugs:19839
* lisp/ffap.el (ffap-string-at-point-mode-alist): Support
environment variable expansion in file names.

9 years agoPrefer double-quote to accent-grave in man pages
Paul Eggert [Tue, 7 Apr 2015 18:58:47 +0000 (11:58 -0700)]
Prefer double-quote to accent-grave in man pages

9 years agoFixes: debbugs:20257
Stefan Monnier [Tue, 7 Apr 2015 18:56:54 +0000 (14:56 -0400)]
Fixes: debbugs:20257
* lisp/files.el (set-visited-file-name): Clear auto-save if nil.

9 years agoUpdate etc/PROBLEMS.
Ivan Shmakov [Tue, 7 Apr 2015 17:42:28 +0000 (17:42 +0000)]
Update etc/PROBLEMS.

* etc/PROBLEMS: Mention visible-cursor; a few more mentions of
~/.Xresources and xrdb(1); refer to 'GNU Coreutils' and
'X Window System' or 'X' (were: 'GNU Fileutils' and 'X Windows',
respectively); other minor updates and tweaks.  (Bug#20011)

9 years agoAdd doc strings for some Isearch state vars
Paul Eggert [Tue, 7 Apr 2015 17:13:06 +0000 (10:13 -0700)]
Add doc strings for some Isearch state vars

* lisp/misearch.el (multi-isearch-buffer-list)
(multi-isearch-file-list): Add doc strings.
Fixes: bug#20232
9 years agoAlways mark "<" and ">" in #include directives with text properties.
Alan Mackenzie [Tue, 7 Apr 2015 11:01:43 +0000 (11:01 +0000)]
Always mark "<" and ">" in #include directives with text properties.

* lisp/progmodes/c-fonts.el (c-cpp-matchers): Replace a font-lock "anchored
matcher" with an invocation of c-make-font-lock-search-function to allow
fontification when there's no trailing space on an "#include <..>" line.

9 years agoGenerate a ChangeLog file from commit logs
Paul Eggert [Tue, 7 Apr 2015 07:00:55 +0000 (00:00 -0700)]
Generate a ChangeLog file from commit logs

* .gitignore: Add 'ChangeLog'.
* build-aux/gitlog-to-changelog: New file, from Gnulib.
* build-aux/gitlog-to-emacslog: New file.
* CONTRIBUTE: Document the revised workflow.
* Makefile.in (clean): Remove *.tmp and etc/*.tmp*
instead of just special cases.
(CHANGELOG_HISTORY_INDEX_MAX, CHANGELOG_N, gen_origin): New vars.
(ChangeLog, unchanged-history-files, change-history)
(change-history-commit): New rules.
* admin/admin.el (make-manuals-dist--1):
Don't worry about doc/ChangeLog.
* admin/authors.el: Add a FIXME.
* admin/make-tarball.txt:
* lisp/calendar/icalendar.el:
* lisp/gnus/deuglify.el:
* lisp/obsolete/gulp.el:
* lwlib/README:
Adjust to renamed ChangeLog history files.
* admin/merge-gnulib (GNULIB_MODULES): Add gitlog-to-changelog.
* admin/notes/repo: Call it 'master' a la Git, not 'trunk' a la Bzr.
Remove obsolete discussion of merging ChangeLog files.
New section "Maintaining ChangeLog history".
* build-aux/git-hooks/pre-commit:
Reject attempts to commit files named 'ChangeLog'.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* make-dist: Make and distribute top-level ChangeLog if there's a
.git directory.  Distribute the new ChangeLog history files
instead of scattered ChangeLog files.  Distribute the new files
gitlog-to-changelog and gitlog-to-emacslog.
Fixes: bug#19113
9 years agoRename ChangeLogs for gitlog-to-changelog
Paul Eggert [Tue, 7 Apr 2015 07:00:06 +0000 (00:00 -0700)]
Rename ChangeLogs for gitlog-to-changelog

This patch was implemented via the following shell commands:
find * -name ChangeLog |
sed 's,.*,git mv & &.1,
s, lisp/ChangeLog\.1$, lisp/ChangeLog.17,
s, lisp/erc/ChangeLog\.1$, lisp/erc/ChangeLog.09,
s, lisp/gnus/ChangeLog\.1$, lisp/gnus/ChangeLog.3,
s, lisp/mh-e/ChangeLog\.1$, lisp/mh-e/ChangeLog.2,
s, src/ChangeLog\.1$, src/ChangeLog.13,' |
sh
git commit -am"[this commit message]"

9 years agoMerge from gnulib
Paul Eggert [Tue, 7 Apr 2015 04:47:08 +0000 (21:47 -0700)]
Merge from gnulib

* lib/stddef.in.h: Update from gnulib, incorporating:
2015-04-02 stddef: port to pre-C11 GCC on x86

9 years agoFix miscellaneous glitches in cc-mode.el. Fixes debbugs#20245.
Alan Mackenzie [Mon, 6 Apr 2015 22:20:16 +0000 (22:20 +0000)]
Fix miscellaneous glitches in cc-mode.el.  Fixes debbugs#20245.

* progmodes/cc-mode.el (c-common-init): bind
\(before\|after\)-change-functions to nil around invocations of
c-get-state-before-change-functions and
c-before-font-lock-functions to prevent recursive invocations.
(c-neutralize-syntax-in-and-mark-CPP): On c-beginning-of-macro,
check that point has actually moved back.
(c-fl-decl-start): Check whether c-beginning-of-decl-1 has
actually found a boundary (as contrasted with hitting a search
limit).

9 years agoCC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669.
Alan Mackenzie [Sun, 1 Feb 2015 21:20:35 +0000 (21:20 +0000)]
CC Mode: Stop Font Lock forcing fontification from BOL.  Fixes debbugs#19669.

cc-mode.el (c-font-lock-init): Setq font-lock-extend-region-functions to
nil.

9 years agopython.el: Do not break IPython magic completions.
Fabián Ezequiel Gallina [Mon, 6 Apr 2015 22:18:46 +0000 (19:18 -0300)]
python.el: Do not break IPython magic completions.

Fixes: debbugs:19736
* lisp/progmodes/python.el (python-shell-completion-setup-code):
Cleaner setup; import rlcompleter as last resource.