bpt/emacs.git
11 years ago* term/xterm.el (xterm--query): Stop after first matching handler. (Bug#14615)
Glenn Morris [Fri, 14 Jun 2013 18:37:38 +0000 (14:37 -0400)]
* term/xterm.el (xterm--query): Stop after first matching handler.  (Bug#14615)

11 years agolisp/gnus/eww.el (eww-submit): Get submit button logic right when hitting RET on...
Lars Magne Ingebrigtsen [Fri, 14 Jun 2013 11:16:26 +0000 (11:16 +0000)]
lisp/gnus/eww.el (eww-submit): Get submit button logic right when hitting RET on non-submit buttons
lisp/gnus/shr.el: Remove shr-preliminary-table-render, since that can't really be used for anything in practice

11 years agoFix date in ChangeLog
Ivan Kanis [Fri, 14 Jun 2013 09:59:14 +0000 (11:59 +0200)]
Fix date in ChangeLog

11 years agolisp/gnus/sieve.el: Rebind q to (sieve-bury-buffer), bind Q to (sieve-manage-quit)
Albert Krewinkel [Fri, 14 Jun 2013 09:48:49 +0000 (09:48 +0000)]
lisp/gnus/sieve.el: Rebind q to (sieve-bury-buffer), bind Q to (sieve-manage-quit)

doc/misc/sieve.texi: (Managing Sieve): Fix port in example, fix documentation for keys q and Q
(Standards): Reference RFC5804 as the defining document of the managesieve protocol

11 years agoAdd support for dired in saveplace.
Ivan Kanis [Fri, 14 Jun 2013 09:32:01 +0000 (11:32 +0200)]
Add support for dired in saveplace.

11 years agoNew defcustoms need :version tags
Glenn Morris [Fri, 14 Jun 2013 06:51:56 +0000 (23:51 -0700)]
New defcustoms need :version tags

11 years ago* lisp/subr.el (eval-after-load, set-temporary-overlay-map): Use indirection
Stefan Monnier [Fri, 14 Jun 2013 04:11:00 +0000 (00:11 -0400)]
* lisp/subr.el (eval-after-load, set-temporary-overlay-map): Use indirection
through a symbol rather than letrec.

11 years agolisp/gnus/eww.el: Fix indentation
Katsumi Yamaoka [Fri, 14 Jun 2013 03:26:34 +0000 (03:26 +0000)]
lisp/gnus/eww.el: Fix indentation

11 years agolisp/gnus/mml2015.el (mml2015-maximum-key-image-dimension): New user option to contro...
David Edmondson [Fri, 14 Jun 2013 03:24:05 +0000 (03:24 +0000)]
lisp/gnus/mml2015.el (mml2015-maximum-key-image-dimension): New user option to control the maximum size of photo ID image
(mml2015-epg-key-image-to-string): Respect it

11 years agolisp/gnus/shr.el (shr-tag-table-1): Mark the preliminary table renderings instead...
Lars Magne Ingebrigtsen [Fri, 14 Jun 2013 03:22:26 +0000 (03:22 +0000)]
lisp/gnus/shr.el (shr-tag-table-1): Mark the preliminary table renderings instead of the final one so that we can more easily distinguish them
lisp/gnus/eww.el (eww-submit): Compute the submission URL correctly

11 years ago* lisp/emacs-lisp/package.el: Don't recompute dir. Use pkg-descs more.
Stefan Monnier [Fri, 14 Jun 2013 03:20:18 +0000 (23:20 -0400)]
* lisp/emacs-lisp/package.el: Don't recompute dir.  Use pkg-descs more.
(package-desc): Add `dir' field.
(package-desc-full-name): New function.
(package-load-descriptor): Combine the two arguments.  Don't use `load'.
(package-maybe-load-descriptor): Remove.
(package-load-all-descriptors): Just call package-load-descriptor.
(package--disabled-p): New function.
(package-desc-vers, package-desc-doc): Remove aliases.
(package--dir): Remove function.
(package-activate): Check if a package is disabled.
(package-process-define-package): New function, extracted from
define-package.
(define-package): Turn into a place holder.
(package-unpack-single, package-tar-file-info):
Use package--description-file.
(package-compute-transaction): Use package--disabled-p.
(package-download-transaction): Don't call
package-maybe-load-descriptor since they're all loaded anyway.
(package-install): Change argument to be a pkg-desc.
(package-delete): Use a single pkg-desc argument.
(describe-package-1): Use package-desc-dir instead of package--dir.
Use package-desc property instead of package-symbol.
(package-install-button-action): Adjust accordingly.
(package--push): Rewrite.
(package-menu--print-info): Adjust accordingly.  Change the ID format
to be a pkg-desc.
(package-menu-describe-package, package-menu-get-status)
(package-menu--find-upgrades, package-menu-mark-upgrades)
(package-menu-execute, package-menu--name-predicate):
Adjust accordingly.
* lisp/startup.el (package--description-file): New function.
(command-line): Use it.
* lisp/emacs-lisp/package-x.el (package-upload-buffer-internal):
Use package-desc-version.

11 years ago* lisp/emacs-lisp/bytecomp.el (byte-compile-force-lexical-warnings): New var.
Stefan Monnier [Fri, 14 Jun 2013 02:31:28 +0000 (22:31 -0400)]
* lisp/emacs-lisp/bytecomp.el (byte-compile-force-lexical-warnings): New var.
(byte-compile-preprocess): Use it.
(byte-compile-file-form-defalias): Try a bit harder to use macros we
can't quite recognize.
(byte-compile-add-to-list): Remove.
* lisp/emacs-lisp/cconv.el (cconv-warnings-only): New function.
(cconv-closure-convert): Add assertion.

* lisp/emacs-lisp/map-ynp.el: Use lexical-binding.
(map-y-or-n-p): Remove unused vars `tail' and `object'.
Factor out some repeated code.
* etc/NEWS (utf-8 for el): Move to the incompatible section.

11 years agoChangeLog fix.
Xue Fuqiao [Thu, 13 Jun 2013 22:43:33 +0000 (06:43 +0800)]
ChangeLog fix.

11 years agoChangeLog fix.
Xue Fuqiao [Thu, 13 Jun 2013 22:33:43 +0000 (06:33 +0800)]
ChangeLog fix.

11 years ago* lisp/subr.el (with-eval-after-load): New macro.
Stefan Monnier [Thu, 13 Jun 2013 22:24:52 +0000 (18:24 -0400)]
* lisp/subr.el (with-eval-after-load): New macro.
(eval-after-load): Allow form to be a function.
take advantage of lexical-binding.
(do-after-load-evaluation): Use dolist and adjust to new format.
* lisp/simple.el (bad-packages-alist): Use dolist and with-eval-after-load.
* doc/lispref/loading.texi (Hooks for Loading): Document with-eval-after-load
instead of eval-after-load.  Don't document after-load-alist.
* src/lread.c (syms_of_lread):
* src/fns.c (Fprovide): Adjust to new format of after-load-alist.

11 years ago* lisp/isearch.el (isearch-query-replace): Add " symbol" and other
Juri Linkov [Thu, 13 Jun 2013 22:08:45 +0000 (01:08 +0300)]
* lisp/isearch.el (isearch-query-replace): Add " symbol" and other
possible search modes from `isearch-message-prefix' to the prompt.
(isearch-occur): Use `with-isearch-suspended' to not exit Isearch
when reading a regexp to collect.

* lisp/replace.el (perform-replace): Display "symbol " and other search
modes from `isearch-message-prefix' in the *Help* buffer.

11 years ago* lisp/isearch.el (word-search-regexp): Match whitespace if the search
Juri Linkov [Thu, 13 Jun 2013 21:49:10 +0000 (00:49 +0300)]
* lisp/isearch.el (word-search-regexp): Match whitespace if the search
string begins or ends in whitespace.  The LAX arg is applied to
both ends of the search string.  Use `regexp-quote' and explicit
\< and \> instead of \b.  Use \` and \' instead of ^ and $.
(isearch-symbol-regexp): Sync with `word-search-regexp' where word
boundaries are replaced with symbol boundaries, and characters
between symbols match non-word non-symbol syntax.

Fixes: debbugs:14602

11 years ago* lisp/isearch.el (isearch-del-char): Don't exceed the length of `isearch-string'
Juri Linkov [Thu, 13 Jun 2013 21:11:42 +0000 (00:11 +0300)]
* lisp/isearch.el (isearch-del-char): Don't exceed the length of `isearch-string'
by the prefix arg.

Fixes: debbugs:14563

11 years agoAdd prefix arg to more isearch commands.
Juri Linkov [Thu, 13 Jun 2013 20:50:51 +0000 (23:50 +0300)]
Add prefix arg to more isearch commands.

* lisp/isearch.el (isearch-yank-word, isearch-yank-line)
(isearch-char-by-name, isearch-quote-char)
(isearch-printing-char, isearch-process-search-char):
Add optional count prefix arg.

* lisp/international/isearch-x.el (isearch-process-search-multibyte-characters):
Add optional count prefix arg.

Fixes: debbugs:14563

11 years ago* lisp/subr.el (internal-push-keymap, internal-pop-keymap): New functions.
Vitalie Spinu [Thu, 13 Jun 2013 20:43:53 +0000 (16:43 -0400)]
* lisp/subr.el (internal-push-keymap, internal-pop-keymap): New functions.
(set-temporary-overlay-map): Use them; and take advantage of
lexical-binding.

Fixes: debbugs:14095

11 years agotty-handle-args fix for bug#14608
Glenn Morris [Thu, 13 Jun 2013 17:59:10 +0000 (13:59 -0400)]
tty-handle-args fix for bug#14608

* startup.el (tty-handle-args): Don't just discard "--" and anything after.

11 years ago* DEBUG: Document -fno-omit-frame-pointer.
Paul Eggert [Thu, 13 Jun 2013 17:52:21 +0000 (10:52 -0700)]
* DEBUG: Document -fno-omit-frame-pointer.

11 years ago* lisp/gnus/sieve-manage.el (sieve-manage-open-server): Don't quote lambda.
Stefan Monnier [Thu, 13 Jun 2013 17:05:22 +0000 (13:05 -0400)]
* lisp/gnus/sieve-manage.el (sieve-manage-open-server): Don't quote lambda.
Use plist-get rather than CL's getf.
(sieve-manage-parse-capability): Avoid CL's remove-if.

11 years ago* DEBUG: Document -Og.
Paul Eggert [Thu, 13 Jun 2013 17:04:08 +0000 (10:04 -0700)]
* DEBUG: Document -Og.

11 years ago* emacs-lisp/lisp.el (forward-sexp, backward-sexp): Doc fixes.
Glenn Morris [Thu, 13 Jun 2013 16:44:26 +0000 (09:44 -0700)]
* emacs-lisp/lisp.el (forward-sexp, backward-sexp): Doc fixes.

11 years agolisp/gnus/shr.el (shr-expand-url): Expansion should chop off the bits after the last...
Lars Magne Ingebrigtsen [Thu, 13 Jun 2013 14:31:52 +0000 (14:31 +0000)]
lisp/gnus/shr.el (shr-expand-url): Expansion should chop off the bits after the last slash
lisp/gnus/eww.el (eww-tag-select): Use the first value as the default value

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 13 Jun 2013 10:21:04 +0000 (06:21 -0400)]
Auto-commit of loaddefs files.

11 years agoImplement changes in Secret Service API. Make it backward compatible.
Michael Albinus [Thu, 13 Jun 2013 10:12:34 +0000 (12:12 +0200)]
Implement changes in Secret Service API.  Make it backward compatible.
* net/secrets.el (secrets-struct-secret-content-type): New defonst.
(secrets-create-item): Use it.  Prefix properties with interface.

11 years ago* etc/NEWS: Mention term-suppress-hard-newline
Glenn Morris [Thu, 13 Jun 2013 06:35:32 +0000 (23:35 -0700)]
* etc/NEWS: Mention term-suppress-hard-newline

11 years agoFix typo in comment.
Michael Albinus [Thu, 13 Jun 2013 06:28:05 +0000 (08:28 +0200)]
Fix typo in comment.

11 years ago* admin/admin.el (manual-style-string): Use new file manual.css.
Glenn Morris [Thu, 13 Jun 2013 06:18:57 +0000 (23:18 -0700)]
* admin/admin.el (manual-style-string): Use new file manual.css.

11 years agolisp/gnus/eww.el (eww): Prepend urls with http:// if scheme is missing
Gnus developers [Thu, 13 Jun 2013 06:07:43 +0000 (06:07 +0000)]
lisp/gnus/eww.el (eww): Prepend urls with  if scheme is missing
(eww-mode): Use `define-derived-mode'
(eww-parse-headers): Parse headers from beginning of buffer so that file:// links work
(eww-detect-charset): Detect charset from the <meta> tag

11 years ago* term.el (term-suppress-hard-newline): New option (tiny change)
Michael Hoffman [Thu, 13 Jun 2013 05:27:05 +0000 (22:27 -0700)]
* term.el (term-suppress-hard-newline): New option (tiny change)
(term-emulate-terminal): Respect term-suppress-hard-newline.

Fixes: debbugs:12017

11 years ago* etc/NEWS: Add entry about utf-8 for elisp files
Glenn Morris [Thu, 13 Jun 2013 05:19:59 +0000 (22:19 -0700)]
* etc/NEWS: Add entry about utf-8 for elisp files

11 years ago* src/fileio.c (Fdo_auto_save): Trap errors in auto-save-hook (tiny change)
Kelly Dean [Thu, 13 Jun 2013 05:13:05 +0000 (22:13 -0700)]
* src/fileio.c (Fdo_auto_save): Trap errors in auto-save-hook (tiny change)

Fixes: debbugs:14479

11 years agoimage-dired-dired-toggle-marked-thumbs tiny change
E Sabof [Thu, 13 Jun 2013 05:10:48 +0000 (22:10 -0700)]
image-dired-dired-toggle-marked-thumbs tiny change

* lisp/image-dired.el (image-dired-dired-toggle-marked-thumbs):
Only remove a `thumb-file' overlay.

Fixes: debbugs:14548

11 years agolisp/gnus/shr.el (shr-tag-svg): Ignore <svg>
Lars Magne Ingebrigtsen [Wed, 12 Jun 2013 22:32:33 +0000 (22:32 +0000)]
lisp/gnus/shr.el (shr-tag-svg): Ignore <svg>

11 years ago* mail/reporter.el (reporter-submit-bug-report): Handle missing package-name.
Grégoire Jadi [Wed, 12 Jun 2013 16:08:17 +0000 (09:08 -0700)]
* mail/reporter.el (reporter-submit-bug-report): Handle missing package-name.

Fixes: debbugs:14600

11 years ago* automated/reftex-tests.el (reftex-parse-from-file-test): Fix
Tassilo Horn [Wed, 12 Jun 2013 14:43:46 +0000 (16:43 +0200)]
* automated/reftex-tests.el (reftex-parse-from-file-test): Fix
test.

11 years ago* automated/reftex-tests.el: New test suite for reftex.
Tassilo Horn [Wed, 12 Jun 2013 12:49:25 +0000 (14:49 +0200)]
* automated/reftex-tests.el: New test suite for reftex.

11 years ago* textmodes/reftex-cite.el (reftex-cite-regexp-hist)
Tassilo Horn [Wed, 12 Jun 2013 12:42:35 +0000 (14:42 +0200)]
* textmodes/reftex-cite.el (reftex-cite-regexp-hist)
(reftex-citation-prompt, reftex-default-bibliography)
(reftex-bib-or-thebib, reftex-get-bibfile-list)
(reftex-pop-to-bibtex-entry, reftex-extract-bib-entries)
(reftex-bib-sort-author, reftex-bib-sort-year)
(reftex-bib-sort-year-reverse, reftex-get-crossref-alist)
(reftex-extract-bib-entries-from-thebibliography)
(reftex-get-bibkey-default, reftex-get-bib-names)
(reftex-parse-bibtex-entry, reftex-get-bib-field)
(reftex-format-bib-entry, reftex-parse-bibitem)
(reftex-format-bibitem, reftex-do-citation)
(reftex-figure-out-cite-format, reftex-offer-bib-menu)
(reftex-restrict-bib-matches, reftex-extract-bib-file)
(reftex-insert-bib-matches, reftex-format-citation)
(reftex-make-cite-echo-string, reftex-bibtex-selection-callback)
(reftex-create-bibtex-file): Add docstrings, mostly by converting
existing comments into docstrings.

11 years agoMerge from mainline.
Xue Fuqiao [Wed, 12 Jun 2013 12:12:47 +0000 (20:12 +0800)]
Merge from mainline.

11 years ago* lisp/ibuf-ext.el (ibuffer-mark-help-buffers): Doc fix.
Xue Fuqiao [Wed, 12 Jun 2013 11:42:12 +0000 (19:42 +0800)]
* lisp/ibuf-ext.el (ibuffer-mark-help-buffers): Doc fix.

11 years agoAdd TAGS and leim/ja-dic to .gitignore
Andreas Schwab [Wed, 12 Jun 2013 10:31:24 +0000 (12:31 +0200)]
Add TAGS and leim/ja-dic to .gitignore

11 years ago* international/mule.el (auto-coding-alist): Use utf-8-emacs-unix
Andreas Schwab [Wed, 12 Jun 2013 10:31:24 +0000 (12:31 +0200)]
* international/mule.el (auto-coding-alist): Use utf-8-emacs-unix
for auto-save files.

11 years agoAuto-commit of generated files.
Glenn Morris [Wed, 12 Jun 2013 10:17:38 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years ago* lisp/ido.el: Convert some function comments to basic doc strings
Glenn Morris [Wed, 12 Jun 2013 07:54:57 +0000 (00:54 -0700)]
* lisp/ido.el: Convert some function comments to basic doc strings

11 years ago* lisp/ido.el (ido-delete-ignored-files): Remove.
Glenn Morris [Wed, 12 Jun 2013 07:46:01 +0000 (00:46 -0700)]
* lisp/ido.el (ido-delete-ignored-files): Remove.
(ido-wide-find-dirs-or-files, ido-make-file-list-1):
Go back to calling ido-ignore-item-p directly.

Doesn't seem worth looping over files twice in ido-make-file-list-1.

11 years ago* ido.el (ido-wide-find-dirs-or-files): Respect ido-case-fold (tiny change)
Eyal Lotem [Wed, 12 Jun 2013 07:25:05 +0000 (00:25 -0700)]
* ido.el (ido-wide-find-dirs-or-files): Respect ido-case-fold (tiny change)

Fixes: debbugs:13003

11 years ago* lisp/ido.el (ido-delete-ignored-files): Rewrite to avoid cl-lib.
Glenn Morris [Wed, 12 Jun 2013 07:22:20 +0000 (00:22 -0700)]
* lisp/ido.el (ido-delete-ignored-files): Rewrite to avoid cl-lib.

11 years agoRespect ido-ignore-item-p in ido-wide-find-dirs-or-files (tiny change)
Eyal Lotem [Wed, 12 Jun 2013 07:18:49 +0000 (00:18 -0700)]
Respect ido-ignore-item-p in ido-wide-find-dirs-or-files (tiny change)

* lisp/ido.el (ido-delete-ignored-files): New function,
split from ido-make-file-list-1.
(ido-wide-find-dirs-or-files): Maybe ignore files.
(ido-make-file-list-1): Use ido-delete-ignored-files.

Fixes: debbugs:13003

11 years agoFix last change to octave.el
Leo Liu [Wed, 12 Jun 2013 02:58:03 +0000 (10:58 +0800)]
Fix last change to octave.el

11 years ago* progmodes/octave.el (inferior-octave-startup)
Leo Liu [Wed, 12 Jun 2013 02:37:38 +0000 (10:37 +0800)]
* progmodes/octave.el (inferior-octave-startup)
(inferior-octave-completion-table)
(inferior-octave-track-window-width-change)
(octave-eldoc-function-signatures, octave-help)
(octave-find-definition): Use single quoted strings.
(inferior-octave-startup-args): Change default value.
(inferior-octave-startup): Do not hard code "-i" and
"--no-line-editing".
(inferior-octave-resync-dirs): Add optional arg NOERROR.
(inferior-octave-directory-tracker): Use it.
(octave-goto-function-definition): Robustify.
(octave-help): Support highlighting operators in 'See also'.
(octave-find-definition): Find subfunctions only in Octave mode.

11 years ago* lisp/help-fns.el (help-fns--compiler-macro): If the handler function is
Stefan Monnier [Wed, 12 Jun 2013 02:16:02 +0000 (22:16 -0400)]
* lisp/help-fns.el (help-fns--compiler-macro): If the handler function is
named, then put a link to it.
* lisp/help-mode.el (help-function-cmacro): Adjust regexp for cl-lib names.
* lisp/emacs-lisp/cl-macs.el (cl--compiler-macro-typep): New function.
(cl-typep): Use it.
(cl-eval-when): Simplify debug spec.
(cl-define-compiler-macro): Use eval-and-compile.  Give a name to the
compiler-macro function instead of setting `compiler-macro-file'.

11 years agolisp/gnus/eww.el (eww-convert-widgets): Make widgets from non-tabular layouts work...
Lars Magne Ingebrigtsen [Wed, 12 Jun 2013 01:38:23 +0000 (01:38 +0000)]
lisp/gnus/eww.el (eww-convert-widgets): Make widgets from non-tabular layouts work, too
(eww-tag-select): Implement <select>

11 years ago* src/fileio.c (expand_file_name): Doc fix.
Xue Fuqiao [Wed, 12 Jun 2013 01:12:59 +0000 (09:12 +0800)]
* src/fileio.c (expand_file_name): Doc fix.

11 years agoFirst part of Daniel Hackney's patch to package.el.
Stefan Monnier [Wed, 12 Jun 2013 00:49:33 +0000 (20:49 -0400)]
First part of Daniel Hackney's patch to package.el.
* lisp/emacs-lisp/package.el: Use defstruct.
(package-desc): New, main struct.
(package--bi-desc, package--ac-desc): New structs, used to describe the
format in external files.
(package-desc-vers): Replace with package-desc-version accessor.
(package-desc-doc): Replace with package-desc-summary accessor.
(package-activate-1): Remove `package' arg since the pkg-vec now
includes the name.
(define-package): Use package-desc-from-define.
(package-unpack-single): Change file-name arg to be a symbol.
(package--add-to-archive-contents): Use package-desc-create and new
accessor functions to package--ac-desc.
(package-buffer-info, package-tar-file-info): Return a package-desc.
(package-install-from-buffer): Remove `type' argument.  Change pkg-info
arg to be a package-desc.
(package-install-file): Adjust accordingly.  Use \' to match EOS.
(package--from-builtin): New function.
(describe-package-1, package-menu--generate): Use it.
(package--make-autoloads-and-compile): Change name arg to be a symbol.
(package-generate-autoloads): Idem and return the name of the file.
* lisp/emacs-lisp/package-x.el (package-upload-buffer-internal):
Change pkg-info arg to be a package-desc.
Use package-make-ac-desc.
(package-upload-file): Use \' to match EOS.
* lisp/finder.el (finder-compile-keywords): Use package-make-builtin.

11 years ago* lisp/vc/vc.el (vc-deduce-fileset): Change error message.
Stefan Monnier [Tue, 11 Jun 2013 22:14:30 +0000 (18:14 -0400)]
* lisp/vc/vc.el (vc-deduce-fileset): Change error message.
(vc-read-backend): New function.
(vc-next-action): Use it.

11 years ago* lisp/subr.el (function-arity): Remove (mistakenly added).
Stefan Monnier [Tue, 11 Jun 2013 21:53:40 +0000 (17:53 -0400)]
* lisp/subr.el (function-arity): Remove (mistakenly added).

Fixes: debbugs:14590

11 years ago* lisp/progmodes/prolog.el (prolog-make-keywords-regexp): Remove.
Stefan Monnier [Tue, 11 Jun 2013 21:38:35 +0000 (17:38 -0400)]
* lisp/progmodes/prolog.el (prolog-make-keywords-regexp): Remove.
(prolog-font-lock-keywords): Use regexp-opt instead.
Don't manually highlight strings.
(prolog-mode-variables): Simplify comment-start-skip.
(prolog-consult-compile): Use display-buffer.  Remove unused old-filter.

11 years ago* lisp/emacs-lisp/generic.el (generic--normalise-comments)
Stefan Monnier [Tue, 11 Jun 2013 21:26:00 +0000 (17:26 -0400)]
* lisp/emacs-lisp/generic.el (generic--normalise-comments)
(generic-set-comment-syntax, generic-set-comment-vars): New functions.
(generic-mode-set-comments): Use them.
(generic-bracket-support): Use setq-local.
(generic-make-keywords-list): Declare obsolete.

11 years agoTickle glib by waiting for Emacs itself, not for process 0.
Paul Eggert [Tue, 11 Jun 2013 18:34:06 +0000 (11:34 -0700)]
Tickle glib by waiting for Emacs itself, not for process 0.

* process.c (init_process_emacs) [HAVE_GLIB && !WINDOWSNT]:
Wait for self, not for 0.  This can't hurt on GNU or similar
system, and may help with Cygwin.

Fixes: debbugs:14569

11 years ago--without-all should imply --with-file-notification=no.
Paul Eggert [Tue, 11 Jun 2013 18:05:05 +0000 (11:05 -0700)]
--without-all should imply --with-file-notification=no.

* configure.ac (with_file_notification): Default to $with_features.

Fixes: debbugs:14569

11 years agolisp-mode font-lock fox for bug#14574
Glenn Morris [Tue, 11 Jun 2013 18:00:27 +0000 (14:00 -0400)]
lisp-mode font-lock fox for bug#14574

* lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables):
Prettify after setting font-lock-defaults.

11 years agoFix typos.
Juanma Barranquero [Tue, 11 Jun 2013 16:51:12 +0000 (18:51 +0200)]
Fix typos.

* lisp/replace.el (query-replace, occur-read-regexp-defaults-function)
  (replace-search):
* lisp/subr.el (declare-function, number-sequence, local-set-key)
  (substitute-key-definition, locate-user-emacs-file)
  (with-silent-modifications, split-string, eval-after-load):
  Fix typos, remove unneeded backslashes and reflow some docstrings.

11 years ago* lisp/international/mule-conf.el (file-coding-system-alist): Use utf-8 as
Stefan Monnier [Tue, 11 Jun 2013 12:51:18 +0000 (08:51 -0400)]
* lisp/international/mule-conf.el (file-coding-system-alist): Use utf-8 as
default for Elisp files.

11 years agoMake the example more intuitive.
Xue Fuqiao [Tue, 11 Jun 2013 11:37:56 +0000 (19:37 +0800)]
Make the example more intuitive.

* doc/lispref/files.texi (File Name Expansion): Make the example more
  intuitive.

11 years agolisp/gnus/sievel-manage.el: fully support STARTTLS, fix bit rot
Albert Krewinkel [Tue, 11 Jun 2013 07:32:25 +0000 (07:32 +0000)]
lisp/gnus/sievel-manage.el: fully support STARTTLS, fix bit rot

* Make sieve-manage-open work with STARTTLS: shorten stream managing
  functions by using open-protocol-stream to do most of the work.  Has
  the nice benefit of enabling STARTTLS.

* Remove unneeded functions and options: the following functions and
  options are neither in the API, nor called by any other function, so
  they are deleted:
  - sieve-manage-network-p
  - sieve-manage-network-open
  - sieve-manage-starttls-p
  - sieve-manage-starttls-open
  - sieve-manage-forward
  - sieve-manage-streams
  - sieve-manage-stream-alist

  The options could not be applied in a meaningful way anymore; they
  didn't happen to have much effect before.

* Cosmetic changes and code clean-up

* Enable Multibyte for SieveManage buffers: The parser won't properly
  handle umlauts and line endings unless multibyte is turned on in the
  process buffer.

* Wait for capabilities after STARTTLS: following RFC5804, the server
  sends new capabilities after successfully establishing a TLS
  connection with the client.  The client should update the cached list
  of capabilities, but we just ignore the answer for now.

11 years ago* doc/emacs/maintaining.texi (VC Directory Commands): Copyedit.
Glenn Morris [Tue, 11 Jun 2013 06:42:15 +0000 (23:42 -0700)]
* doc/emacs/maintaining.texi (VC Directory Commands): Copyedit.
(Branches): Put back milder version of pre 2013-06-07 text.

11 years ago* vc/log-view.el (log-view-mode-map): Inherit from special-mode-map,
Glenn Morris [Tue, 11 Jun 2013 06:36:06 +0000 (23:36 -0700)]
* vc/log-view.el (log-view-mode-map): Inherit from special-mode-map,
although define-derived-mode was doing this anyway.

Fixes: debbugs:14583

11 years ago* keyboard.c: Don't use PROP (...) as an lvalue.
Paul Eggert [Tue, 11 Jun 2013 04:15:49 +0000 (21:15 -0700)]
* keyboard.c: Don't use PROP (...) as an lvalue.

(parse_tool_bar_item) [!USE_GTK && !HAVE_NS]:
Use set_prop (A, B), not PROP (A) = B.

11 years agolisp/gnus/eww.el (eww-tag-input): Support password fields
Lars Magne Ingebrigtsen [Tue, 11 Jun 2013 03:09:59 +0000 (03:09 +0000)]
lisp/gnus/eww.el (eww-tag-input): Support password fields
(eww-submit): Support POST

11 years agoSpelling fixes.
Paul Eggert [Mon, 10 Jun 2013 23:02:33 +0000 (16:02 -0700)]
Spelling fixes.

11 years agolisp/gnus/eww.el (eww-tag-form): Protect against degenerate forms
Lars Magne Ingebrigtsen [Mon, 10 Jun 2013 22:28:35 +0000 (22:28 +0000)]
lisp/gnus/eww.el (eww-tag-form): Protect against degenerate forms

11 years agolisp/gnus/eww.el (eww-tag-input): Implement submit buttons
Lars Magne Ingebrigtsen [Mon, 10 Jun 2013 22:12:47 +0000 (22:12 +0000)]
lisp/gnus/eww.el (eww-tag-input): Implement submit buttons
(eww-click-radio): Implement radio and checkboxes
(eww-submit): Handle hidden elements
(eww-submit): Get submit button logic right
lisp/gnus/shr.el (shr-expand-url): Expand URLs that start with a slash correctly

11 years agoDocumentation fix for 'ls' and hard links.
Paul Eggert [Mon, 10 Jun 2013 20:26:20 +0000 (13:26 -0700)]
Documentation fix for 'ls' and hard links.

* compile.texi (Compilation Functions):
* files.texi (File Attributes, Changing Files):
Use current format for GNU 'ls' output.
(File Attributes): Fix problem introduced in previous change:
the link count is the number of hard links, not the number
of hard links + 1.

11 years agoFix ChangeLog typos and whitespace.
Juanma Barranquero [Mon, 10 Jun 2013 14:58:52 +0000 (16:58 +0200)]
Fix ChangeLog typos and whitespace.

11 years agolisp/allout.el: Fix make-variable-buffer-local call.
Juanma Barranquero [Mon, 10 Jun 2013 14:37:02 +0000 (16:37 +0200)]
lisp/allout.el: Fix make-variable-buffer-local call.

11 years agolisp/gnus/eww.el: Add form support; Make form submission work; Support POST
Lars Magne Ingebrigtsen [Mon, 10 Jun 2013 14:11:01 +0000 (14:11 +0000)]
lisp/gnus/eww.el: Add form support; Make form submission work; Support POST

11 years agolisp/gnus/sieve.el: Fix handling of PORT parameter, quitting
Albert Krewinkel [Mon, 10 Jun 2013 11:46:27 +0000 (11:46 +0000)]
lisp/gnus/sieve.el: Fix handling of PORT parameter, quitting

11 years ago* doc/lispref/files.texi (File Attributes): Fix typo.
Xue Fuqiao [Mon, 10 Jun 2013 11:19:12 +0000 (19:19 +0800)]
* doc/lispref/files.texi (File Attributes): Fix typo.

11 years agodoc/misc/epa.texi: Revert last bogus change
Katsumi Yamaoka [Mon, 10 Jun 2013 05:22:52 +0000 (05:22 +0000)]
doc/misc/epa.texi: Revert last bogus change

11 years agolisp/gnus/mm-view.el (mm-pkcs7-signed-magic, mm-pkcs7-enveloped-magic): Correct PKCS7...
Roy Hashimoto [Mon, 10 Jun 2013 05:17:51 +0000 (05:17 +0000)]
lisp/gnus/mm-view.el (mm-pkcs7-signed-magic, mm-pkcs7-enveloped-magic): Correct PKCS7 regexps to match messages with 0x0a bytes

11 years agoMinor cleanup in last commit in get_it_property.
Eli Zaretskii [Mon, 10 Jun 2013 04:36:06 +0000 (07:36 +0300)]
Minor cleanup in last commit in get_it_property.

 src/xdisp.c (get_it_property): Use it->window instead of generating
 a Lisp object from it->w.

11 years agoUpdate Ehsell visual-commands documentation
Aidan Gauland [Mon, 10 Jun 2013 02:41:49 +0000 (14:41 +1200)]
Update Ehsell visual-commands documentation

* eshell.texi (Input/Output): Expand to cover new visual-command
options, eshell-visual-subcommands and eshell-visual-options.
Divide into separate Visual Commands and Redirection sections.
* eshell/em-term.el (eshell-visual-commands)
(eshell-visual-subcommands)
(eshell-visual-options): Add summary line to docstrings.  Add
cross-references.

11 years agoWrap long line from previous commit.
Aidan Gauland [Mon, 10 Jun 2013 02:35:58 +0000 (14:35 +1200)]
Wrap long line from previous commit.

11 years ago* lisp/epa.el (epa-read-file-name): New function.
Glenn Morris [Mon, 10 Jun 2013 00:32:49 +0000 (17:32 -0700)]
* lisp/epa.el (epa-read-file-name): New function.
(epa-decrypt-file): Make plain-file optional.  Use epa-read-file-name.

* doc/misc/epa.texi (Cryptographic operations on files): Update epa-decrypt-file.

Fixes: debbugs:14510

11 years agoFix current-bidi-paragraph-direction wrt window pointer.
Eli Zaretskii [Sun, 9 Jun 2013 16:49:07 +0000 (19:49 +0300)]
Fix current-bidi-paragraph-direction wrt window pointer.

 src/xdisp.c (compute_display_string_pos): When W is NULL, use the current
 buffer as the object to pass to get-char-property.
 (Fcurrent_bidi_paragraph_direction): Assign NULL to the window
 pointer member of the bidi iterator, since no window is pertinent
 to this function.

11 years agoFix bug #14575 with window-specific overlays with line-prefix or wrap-prefix.
Eli Zaretskii [Sun, 9 Jun 2013 16:37:22 +0000 (19:37 +0300)]
Fix bug #14575 with window-specific overlays with line-prefix or wrap-prefix.

 src/xdisp.c (get_it_property): If it->object is a buffer, pass to
 get-char-property the window that is being rendered, instead of
 the buffer, to support window-specific overlays.

11 years agoMerge from gnulib.
Paul Eggert [Sun, 9 Jun 2013 15:59:30 +0000 (08:59 -0700)]
Merge from gnulib.

This incorporates:
2013-06-02 sig2str: port to C++
2013-05-29 c-ctype, regex, verify: port to gcc -std=c90 -pedantic

11 years agoMinor doc fix.
Xue Fuqiao [Sun, 9 Jun 2013 11:15:54 +0000 (19:15 +0800)]
Minor doc fix.

* lisp/vc/vc-cvs.el (vc-cvs-stay-local): Doc fix.
* lisp/vc/vc-hooks.el (vc-stay-local): Doc fix.
* doc/emacs/vc1-xtra.texi (CVS Options): Fix the default value of
  `vc-cvs-stay-local'.

11 years agoAuto-commit of generated files.
Glenn Morris [Sun, 9 Jun 2013 10:19:08 +0000 (06:19 -0400)]
Auto-commit of generated files.

11 years ago* doc/emacs/vc1-xtra.texi (Revision Tags): Add a cross reference.
Xue Fuqiao [Sun, 9 Jun 2013 09:20:49 +0000 (17:20 +0800)]
* doc/emacs/vc1-xtra.texi (Revision Tags): Add a cross reference.

11 years agoFix Eshell bug
Aidan Gauland [Sun, 9 Jun 2013 06:44:47 +0000 (18:44 +1200)]
Fix Eshell bug

* eshell/em-term.el (eshell-visual-command-p): Fix bug that
  causedoutput redirection to be ignored with visual commands.

11 years agoTidy module initialisation functions
Aidan Gauland [Sun, 9 Jun 2013 06:39:40 +0000 (18:39 +1200)]
Tidy module initialisation functions
* eshell/em-term.el (eshell-visual-command-p): New function.
(eshell-term-initialize): Move long lambda to separate function eshell-visual-command-p.
* eshell/em-dirs.el (eshell-dirs-initialise): Add missing #' to lambda.
* eshell/em-script.el (eshell-script-initialize): Add missing #' to lambda.

11 years agoFix bug #14575 with window-specific overlays with display props.
Eli Zaretskii [Sat, 8 Jun 2013 18:28:36 +0000 (21:28 +0300)]
Fix bug #14575 with window-specific overlays with display props.

 src/bidi.c (bidi_fetch_char): Accept additional argument, the window
 being displayed, and pass it to compute_display_string_pos.
 (bidi_level_of_next_char, bidi_resolve_explicit_1)
 (bidi_paragraph_init): All callers changed.
 src/xdisp.c (init_from_display_pos, init_iterator)
 (handle_single_display_spec, next_overlay_string)
 (get_overlay_strings_1, reseat_1, reseat_to_string)
 (push_prefix_prop, Fcurrent_bidi_paragraph_direction): Set
 bidi_it.w member from it->w.
 (compute_display_string_pos): Accept additional argument, the
 window being displayed, and pass it to Fget_char_property.
 src/dispextern.h (struct bidi_it): New member w, the window being
 displayed.
 (compute_display_string_pos): Adjust prototype.

11 years agoFix compilation issues for GNUStep and GLIB conflicts.
Jan Djärv [Sat, 8 Jun 2013 18:13:24 +0000 (20:13 +0200)]
Fix compilation issues for GNUStep and GLIB conflicts.

* configure.ac (HAVE_GLIB): Only set XGSELOBJ if HAVE_NS = no.
(with_file_notification): Don't set to gfile if with_ns = yes.

* src/process.c (wait_reading_process_output): Check for NS before GLIB.
GLIB may be linked in due to rsvg, but ns_select must be called.

* src/xgselect.c (xg_select): Remove call to window_system_available
and g_main_context_pending at the top, so Gdk events (i.e. file
notify) are processed when Emacs is started with -nw.

* src/xgselect.c: Remove unneeded include xterm.h

11 years agoDon't advertise unsupported features in nt/INSTALL.MSYS.
Eli Zaretskii [Sat, 8 Jun 2013 15:01:45 +0000 (18:01 +0300)]
Don't advertise unsupported features in nt/INSTALL.MSYS.

11 years ago* progmodes/octave.el (octave-add-log-current-defun): New function.
Leo Liu [Sat, 8 Jun 2013 13:35:55 +0000 (21:35 +0800)]
* progmodes/octave.el (octave-add-log-current-defun): New function.
(octave-mode): Set add-log-current-defun-function.
(octave-goto-function-definition): Do not move point if not found.
(octave-find-definition): Enhance to try subfunctions first.

11 years ago* xgselect.c (xg_select): Remove call to window_system_available
Jan Djärv [Sat, 8 Jun 2013 08:48:52 +0000 (10:48 +0200)]
* xgselect.c (xg_select): Remove call to window_system_available
and g_main_context_pending at the top, so Gdk events (i.e. file
notify) are processed when Emacs is started with -nw.