]> git.eshelyaron.com Git - emacs.git/log
emacs.git
9 years agoMore-conservative ‘format’ quote restyling
Paul Eggert [Mon, 24 Aug 2015 05:38:02 +0000 (22:38 -0700)]
More-conservative ‘format’ quote restyling

Instead of restyling curved quotes for every call to ‘format’,
create a new function ‘format-message’ that does the restyling,
and using the new function instead of ‘format’ only in contexts
where this seems appropriate.
Problem reported by Dmitry Gutov and Andreas Schwab in:
http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00826.html
http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00827.html
* doc/lispref/commands.texi (Using Interactive):
* doc/lispref/control.texi (Signaling Errors, Signaling Errors):
* doc/lispref/display.texi (Displaying Messages, Progress):
* doc/lispref/elisp.texi:
* doc/lispref/help.texi (Keys in Documentation):
* doc/lispref/minibuf.texi (Minibuffer Misc):
* doc/lispref/strings.texi (Formatting Strings):
* etc/NEWS:
Document the changes.
* lisp/abbrev.el (expand-region-abbrevs):
* lisp/apropos.el (apropos-library):
* lisp/calc/calc-ext.el (calc-record-message)
(calc-user-function-list):
* lisp/calc/calc-help.el (calc-describe-key, calc-full-help):
* lisp/calc/calc-lang.el (math-read-big-balance):
* lisp/calc/calc-store.el (calc-edit-variable):
* lisp/calc/calc-units.el (math-build-units-table-buffer):
* lisp/calc/calc-yank.el (calc-edit-mode):
* lisp/calendar/icalendar.el (icalendar-export-region)
(icalendar--add-diary-entry):
* lisp/cedet/mode-local.el (mode-local-print-binding)
(mode-local-describe-bindings-2):
* lisp/cedet/semantic/complete.el (semantic-completion-message):
* lisp/cedet/semantic/edit.el (semantic-parse-changes-failed):
* lisp/cedet/semantic/wisent/comp.el (wisent-log):
* lisp/cedet/srecode/insert.el (srecode-insert-show-error-report):
* lisp/descr-text.el (describe-text-properties-1, describe-char):
* lisp/dframe.el (dframe-message):
* lisp/dired-aux.el (dired-query):
* lisp/emacs-lisp/byte-opt.el (byte-compile-log-lap-1):
* lisp/emacs-lisp/bytecomp.el (byte-compile-log)
(byte-compile-log-file, byte-compile-warn, byte-compile-form):
* lisp/emacs-lisp/cconv.el (cconv-convert, cconv--analyze-use)
(cconv-analyze-form):
* lisp/emacs-lisp/check-declare.el (check-declare-warn):
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
* lisp/emacs-lisp/cl-macs.el (cl-symbol-macrolet):
* lisp/emacs-lisp/edebug.el (edebug-format):
* lisp/emacs-lisp/eieio-core.el (eieio-oref):
* lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message)
(eldoc-message):
* lisp/emacs-lisp/elint.el (elint-file, elint-log):
* lisp/emacs-lisp/find-func.el (find-function-library):
* lisp/emacs-lisp/macroexp.el (macroexp--obsolete-warning):
* lisp/emacs-lisp/map-ynp.el (map-y-or-n-p):
* lisp/emacs-lisp/nadvice.el (advice--make-docstring):
* lisp/emacs-lisp/package.el (package-compute-transaction)
(package-install-button-action, package-delete-button-action)
(package-menu--list-to-prompt):
* lisp/emacs-lisp/timer.el (timer-event-handler):
* lisp/emacs-lisp/warnings.el (lwarn, warn):
* lisp/emulation/viper-cmd.el:
(viper-toggle-parse-sexp-ignore-comments)
(viper-kill-buffer, viper-brac-function):
* lisp/emulation/viper-macs.el (viper-record-kbd-macro):
* lisp/facemenu.el (facemenu-add-new-face):
* lisp/faces.el (face-documentation, read-face-name)
(face-read-string, read-face-font, describe-face):
* lisp/files.el (find-alternate-file, hack-local-variables)
(hack-one-local-variable--obsolete, write-file)
(basic-save-buffer, delete-directory):
* lisp/format.el (format-write-file, format-find-file)
(format-insert-file):
* lisp/help-fns.el (help-fns--key-bindings)
(help-fns--compiler-macro, help-fns--obsolete)
(help-fns--interactive-only, describe-function-1)
(describe-variable):
* lisp/help.el (describe-mode):
* lisp/info-xref.el (info-xref-output):
* lisp/info.el (Info-virtual-index-find-node)
(Info-virtual-index, info-apropos):
* lisp/international/kkc.el (kkc-error):
* lisp/international/mule-cmds.el:
(select-safe-coding-system-interactively)
(select-safe-coding-system, describe-input-method):
* lisp/international/mule-conf.el (code-offset):
* lisp/international/mule-diag.el (describe-character-set)
(list-input-methods-1):
* lisp/international/quail.el (quail-error):
* lisp/minibuffer.el (minibuffer-message):
* lisp/mpc.el (mpc--debug):
* lisp/msb.el (msb--choose-menu):
* lisp/net/ange-ftp.el (ange-ftp-message):
* lisp/net/gnutls.el (gnutls-message-maybe):
* lisp/net/newst-backend.el (newsticker--sentinel-work):
* lisp/net/newst-treeview.el (newsticker--treeview-load):
* lisp/net/nsm.el (nsm-query-user):
* lisp/net/rlogin.el (rlogin):
* lisp/net/soap-client.el (soap-warning):
* lisp/net/tramp.el (tramp-debug-message):
* lisp/nxml/nxml-outln.el (nxml-report-outline-error):
* lisp/nxml/nxml-parse.el (nxml-parse-error):
* lisp/nxml/rng-cmpct.el (rng-c-error):
* lisp/nxml/rng-match.el (rng-compile-error):
* lisp/nxml/rng-uri.el (rng-uri-error):
* lisp/obsolete/iswitchb.el (iswitchb-possible-new-buffer):
* lisp/org/org-ctags.el:
(org-ctags-ask-rebuild-tags-file-then-find-tag):
* lisp/proced.el (proced-log):
* lisp/progmodes/ebnf2ps.el (ebnf-log):
* lisp/progmodes/flymake.el (flymake-log):
* lisp/progmodes/vhdl-mode.el (vhdl-warning-when-idle):
* lisp/replace.el (occur-1):
* lisp/simple.el (execute-extended-command)
(undo-outer-limit-truncate, define-alternatives):
* lisp/startup.el (command-line):
* lisp/subr.el (error, user-error, add-to-list):
* lisp/tutorial.el (tutorial--describe-nonstandard-key)
(tutorial--find-changed-keys):
* src/callint.c (Fcall_interactively):
* src/editfns.c (Fmessage, Fmessage_box):
Restyle the quotes of format strings intended for use as a
diagnostic, when restyling seems appropriate.
* lisp/subr.el (format-message): New function.
* src/doc.c (Finternal__text_restyle): New function.
(syms_of_doc): Define it.

9 years ago* etc/NEWS: The new ‘q’ flag is not an incompatible change.
Paul Eggert [Mon, 24 Aug 2015 00:29:09 +0000 (17:29 -0700)]
* etc/NEWS: The new ‘q’ flag is not an incompatible change.

9 years agopython.el: Fix python-shell-buffer-substring on indented code
Fabián Ezequiel Gallina [Sun, 23 Aug 2015 22:55:54 +0000 (19:55 -0300)]
python.el: Fix python-shell-buffer-substring on indented code

Fixes: debbugs:21086
* lisp/progmodes/python.el (python-shell-buffer-substring):
Respect current line indentation when calculating string.

* test/automated/python-tests.el
(python-shell-buffer-substring-10)
(python-shell-buffer-substring-11)
(python-shell-buffer-substring-12): New tests.

9 years agoFix minor glitches from ‘format’ reversion
Paul Eggert [Sun, 23 Aug 2015 20:50:59 +0000 (13:50 -0700)]
Fix minor glitches from ‘format’ reversion

* doc/lispref/strings.texi (Formatting Strings):
After reversion, ‘text-quoting-style’ is documented in ‘Keys in
Documentation’, not below.
* src/syntax.c (Finternal_describe_syntax_value):
Prefer AUTO_STRING to build_string where either will do, as
AUTO_STRING is a bit faster.

9 years agopython.el: Defer shell setup code until first interactive prompt
Fabián Ezequiel Gallina [Sun, 23 Aug 2015 19:53:02 +0000 (16:53 -0300)]
python.el: Defer shell setup code until first interactive prompt

* lisp/progmodes/python.el
(python-shell-comint-watch-for-first-prompt-output-filter): New
function.
(inferior-python-mode): Use it.
(python-shell-first-prompt-hook): New hook.
(python-shell-send-setup-code)
(python-shell-completion-native-turn-on-maybe-with-msg): Attach to
this hook instead of inferior-python-hook.

9 years agoRemove the calls to `seq-into` from `seq-concatenate`
Nicolas Petton [Sun, 23 Aug 2015 19:09:01 +0000 (21:09 +0200)]
Remove the calls to `seq-into` from `seq-concatenate`

Since most new types of seq would have to be defined as sequences (cons
cells or CL structs, mostly), there is no need to convert the seqs to
sequences (which can be a fairly expensive operation).

* lisp/emacs-lisp/seq.el (seq-concatenate): Do not ensure that seqs are
sequences.

9 years ago; Fix a typo in description of 'C-x r i'
Eli Zaretskii [Sun, 23 Aug 2015 17:57:53 +0000 (20:57 +0300)]
; Fix a typo in description of 'C-x r i'

* doc/emacs/regs.texi (Text Registers): Fix a typo.  Reported by
Lubos Pintes <lubos.pintes@gmail.com>.  (Bug#21332)

9 years agopython.el: Fix completion for pdb interactions
Fabián Ezequiel Gallina [Sun, 23 Aug 2015 17:54:56 +0000 (14:54 -0300)]
python.el: Fix completion for pdb interactions

* lisp/progmodes/python.el (python-shell-completion-setup-code):
Simplify.  Toggle print_mode for native wrapped completer.
(python-shell-completion-native-setup): Ensure process buffer.
Add print_mode attribute to completer wrapper to toggle returning
or printing candidates.
(python-shell-completion-native-get-completions): Cleanup.
(python-shell-completion-get-completions): Cleanup.
(python-shell-completion-at-point): Perform prompt checks.  Force
fallback completion in pdb interactions.

9 years agoMake seq.el more extensible by using cl-defmethod
Nicolas Petton [Fri, 14 Aug 2015 20:33:10 +0000 (22:33 +0200)]
Make seq.el more extensible by using cl-defmethod

* lisp/emacs-lisp/seq.el: Define seq.el functions using cl-defmethod to
make it easier to extend seq.el with new "seq types".
* test/automated/seq-tests.el (test-setf-seq-elt): New test.
* lisp/emacs-lisp/cl-extra.el (cl-subseq): Move back the definition of
subseq in cl-extra.el, and use it in seq.el.

9 years agopython.el: Fix prompt detection with user overridden interpreter
Fabián Ezequiel Gallina [Sun, 23 Aug 2015 16:58:17 +0000 (13:58 -0300)]
python.el: Fix prompt detection with user overridden interpreter

* lisp/progmodes/python.el (python-shell-prompt-detect): Honor
buffer local python-shell-interpreter and
python-shell-interpreter-interactive-arg.

9 years ago; Fix author address
Michael Albinus [Sun, 23 Aug 2015 15:58:16 +0000 (17:58 +0200)]
; Fix author address

9 years agoSupport exec-directory with non-ASCII characters on Windows
Eli Zaretskii [Sun, 23 Aug 2015 15:01:35 +0000 (18:01 +0300)]
Support exec-directory with non-ASCII characters on Windows

* src/w32proc.c (sys_spawnve): Make sure exec-directory is encoded
in the system's ANSI codepage, when it is used for invoking
cmdproxy.

9 years agoRevert "Extend ‘format’ to translate curved quotes"
Andreas Schwab [Sun, 23 Aug 2015 11:43:34 +0000 (13:43 +0200)]
Revert "Extend ‘format’ to translate curved quotes"

This reverts commit 244c801689d2f7a80480d83cd7d092d4762ebe08.

9 years agoRevert "Prefer ‘format’ to ‘substitute-command-keys’"
Andreas Schwab [Sun, 23 Aug 2015 11:42:04 +0000 (13:42 +0200)]
Revert "Prefer ‘format’ to ‘substitute-command-keys’"

This reverts commit 6af5aad26411ffe21c3fe4bc5438347110910111.

9 years ago; * doc/lispintro/emacs-lisp-intro.texi (Buffer Size & Locations):
Xue Fuqiao [Sun, 23 Aug 2015 11:45:54 +0000 (19:45 +0800)]
; * doc/lispintro/emacs-lisp-intro.texi (Buffer Size & Locations):
; Markup fix.  ("point" is not a variable, so "@code{point}" should
; be either "point" or @code{(point)} here.)

9 years ago* doc/lispintro/emacs-lisp-intro.texi (Switching Buffers): Clarify
Xue Fuqiao [Sun, 23 Aug 2015 11:21:33 +0000 (19:21 +0800)]
* doc/lispintro/emacs-lisp-intro.texi (Switching Buffers): Clarify
"invisible window".

9 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 23 Aug 2015 10:24:06 +0000 (06:24 -0400)]
; Auto-commit of ChangeLog files.

9 years ago* doc/emacs/modes.texi (Choosing Modes): Minor doc fix for
Xue Fuqiao [Sun, 23 Aug 2015 08:57:56 +0000 (16:57 +0800)]
* doc/emacs/modes.texi (Choosing Modes): Minor doc fix for
magic-fallback-mode-alist.

9 years agopython.el: fallback completion, ffap and eldoc setup enhancements
Fabián Ezequiel Gallina [Sat, 22 Aug 2015 23:42:04 +0000 (20:42 -0300)]
python.el: fallback completion, ffap and eldoc setup enhancements

Setup codes are now sent continuously so that the current frame is
always taken into account.  This allows working within debuggers
and always keeping a fresh version of setup codes that will return
proper results.

* lisp/progmodes/python.el (python-shell-setup-codes): Cleanup.
(python-shell-send-setup-code): Send code only when
python-shell-setup-codes is non-nil.
(python-shell-completion-string-code): Cleanup trailing newline.
(python-shell-completion-get-completions): Always use
python-shell-completion-setup-code.
(python-ffap-setup-code): Work with any object, not only modules.
(python-ffap-string-code): Cleanup trailing newline.
(python-ffap-module-path): Always use python-ffap-setup-code.
(python-eldoc-string-code): Cleanup trailing newline.
(python-eldoc--get-doc-at-point): Always use
python-eldoc-setup-code.  Return non-nil only if docstring is
found.

9 years ago; python.el: Fix typo for previous commit
Fabián Ezequiel Gallina [Sat, 22 Aug 2015 22:05:31 +0000 (19:05 -0300)]
; python.el: Fix typo for previous commit

9 years agopython.el: Increase native completion robustness.
Fabián Ezequiel Gallina [Sat, 22 Aug 2015 21:07:26 +0000 (18:07 -0300)]
python.el: Increase native completion robustness.

* lisp/progmodes/python.el (python-shell-completion-native-setup):
Make completer print real candidates and just return dummy ones to
avoid input modification.
(python-shell-completion-native-get-completions): Set
comint-redirect-insert-matching-regexp to non-nil and make
comint-redirect-finished-regexp match the last dummy candidate.
Use python-shell-accept-process-output to wait for the full list
of candidates.

9 years agoFix invocation of programs via cmdproxy.exe
Eli Zaretskii [Sat, 22 Aug 2015 19:14:56 +0000 (22:14 +0300)]
Fix invocation of programs via cmdproxy.exe

* src/w32proc.c (sys_spawnve): Use exec-directory, not
invocation-directory, for finding cmdproxy.exe.  When Emacs is
run from the source tree, look for cmdproxy.exe in the same source
tree.  (Bug#21323)

9 years agoHandle comments inside unquoted URIs in css-mode
Simen Heggestøyl [Sat, 22 Aug 2015 17:13:10 +0000 (19:13 +0200)]
Handle comments inside unquoted URIs in css-mode

* lisp/textmodes/css-mode.el (css--uri-re): New defconst.
(css-syntax-propertize-function): New defconst.
(css--font-lock-keywords): Handle parens around unquoted URIs.
(css-mode): Set `syntax-propertize-function'.

9 years agoSupport invocation of Hunspell with multiple dictionaries
Eli Zaretskii [Sat, 22 Aug 2015 14:16:58 +0000 (17:16 +0300)]
Support invocation of Hunspell with multiple dictionaries

* lisp/textmodes/ispell.el (ispell-parse-hunspell-affix-file): Support
lists of dictionaries of the form "DICT1,DICT2,...".
(ispell-hunspell-add-multi-dic): New command.  (Bug#20495)

9 years agoMinor formatting changes in ispell.el
Eli Zaretskii [Sat, 22 Aug 2015 10:38:51 +0000 (13:38 +0300)]
Minor formatting changes in ispell.el

* lisp/textmodes/ispell.el (ispell-create-debug-buffer)
(ispell-print-if-debug, ispell-aspell-find-dictionary)
(ispell-aspell-add-aliases, ispell-hunspell-dict-paths-alist)
(ispell-hunspell-dictionary-alist)
(ispell-hunspell-fill-dictionary-entry)
(ispell-find-hunspell-dictionaries, ispell-send-replacement)
(ispell-buffer-with-debug, ispell-complete-word)
(ispell-current-dictionary, ispell-current-personal-dictionary)
(ispell-accept-output, ispell-minor-mode)
(ispell-personal-dictionary, ispell-dictionary-alist)
(ispell-really-aspell, ispell-really-hunspell)
(ispell-encoding8-command, ispell-aspell-supports-utf8)
(ispell-aspell-dictionary-alist, ispell-set-spellchecker-params):
Fix whitespace, inconsistent capitalization, and arguments in doc
strings.

9 years agoIn ‘adjust-window-trailing-edge’ fix bug with size-preserved windows.
Martin Rudalics [Sat, 22 Aug 2015 08:22:26 +0000 (10:22 +0200)]
In ‘adjust-window-trailing-edge’ fix bug with size-preserved windows.

* lisp/window.el (adjust-window-trailing-edge): Fix bug where this
function refused to resize a size-preserved window.

9 years agoImprove documentation of 'window-use-time'
Eli Zaretskii [Sat, 22 Aug 2015 07:57:16 +0000 (10:57 +0300)]
Improve documentation of 'window-use-time'

* doc/lispref/windows.texi (Selecting Windows): Improve
documentation and indexing of 'window-use-time'.

9 years ago* lisp/progmodes/cc-*.el: Fix up commenting style
Stefan Monnier [Sat, 22 Aug 2015 03:46:21 +0000 (23:46 -0400)]
* lisp/progmodes/cc-*.el: Fix up commenting style

* lisp/progmodes/cc-vars.el, lisp/progmodes/cc-styles.el:
* lisp/progmodes/cc-mode.el, lisp/progmodes/cc-menus.el:
* lisp/progmodes/cc-langs.el, lisp/progmodes/cc-guess.el:
* lisp/progmodes/cc-fonts.el, lisp/progmodes/cc-engine.el:
* lisp/progmodes/cc-defs.el, lisp/progmodes/cc-cmds.el:
* lisp/progmodes/cc-bytecomp.el, lisp/progmodes/cc-awk.el:
* lisp/progmodes/cc-align.el, lisp/net/soap-client.el:
Fix up commenting style.

9 years agotext-quoting-style in emacs-lisp diagnostics
Paul Eggert [Sat, 22 Aug 2015 03:19:46 +0000 (20:19 -0700)]
text-quoting-style in emacs-lisp diagnostics

* lisp/emacs-lisp/advice.el (ad-read-advised-function)
(ad-read-advice-class, ad-read-advice-name, ad-enable-advice)
(ad-disable-advice, ad-remove-advice, ad-set-argument)
(ad-set-arguments):
* lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand)
(byte-compile-unfold-lambda, byte-optimize-form-code-walker)
(byte-optimize-while, byte-optimize-apply):
* lisp/emacs-lisp/bytecomp.el (byte-compile-lapcode)
(byte-compile-log-file, byte-compile-format-warn)
(byte-compile-nogroup-warn, byte-compile-arglist-warn)
(byte-compile-cl-warn)
(byte-compile-warn-about-unresolved-functions)
(byte-compile-file, byte-compile-fix-header)
(byte-compile--declare-var, byte-compile-file-form-defmumble)
(byte-compile-form, byte-compile-normal-call)
(byte-compile-variable-ref, byte-compile-variable-set)
(byte-compile-subr-wrong-args, byte-compile-setq-default)
(byte-compile-negation-optimizer)
(byte-compile-condition-case--old)
(byte-compile-condition-case--new, byte-compile-save-excursion)
(byte-compile-defvar, byte-compile-autoload)
(byte-compile-lambda-form)
(byte-compile-make-variable-buffer-local, display-call-tree)
(batch-byte-compile):
* lisp/emacs-lisp/cconv.el (cconv-convert, cconv--analyze-use)
(cconv-analyze-form):
* lisp/emacs-lisp/chart.el (chart-space-usage):
* lisp/emacs-lisp/check-declare.el (check-declare-scan)
(check-declare-warn, check-declare-file)
(check-declare-directory):
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine)
(checkdoc-message-text-engine):
* lisp/emacs-lisp/cl-extra.el (cl-parse-integer):
* lisp/emacs-lisp/cl-macs.el (cl--parse-loop-clause, cl-tagbody)
(cl-symbol-macrolet):
* lisp/emacs-lisp/cl.el (cl-unload-function, flet):
* lisp/emacs-lisp/copyright.el (copyright)
(copyright-update-directory):
* lisp/emacs-lisp/edebug.el (edebug-read-list):
* lisp/emacs-lisp/eieio-base.el (eieio-persistent-read):
* lisp/emacs-lisp/eieio-core.el (eieio--slot-override)
(eieio-oref, eieio-oset-default):
* lisp/emacs-lisp/eieio-speedbar.el:
(eieio-speedbar-child-make-tag-lines)
(eieio-speedbar-child-description):
* lisp/emacs-lisp/eieio.el (defclass, change-class):
* lisp/emacs-lisp/elint.el (elint-file, elint-get-top-forms)
(elint-init-form, elint-check-defalias-form)
(elint-check-let-form):
* lisp/emacs-lisp/ert.el (ert-get-test):
* lisp/emacs-lisp/find-func.el (find-function-search-for-symbol)
(find-function-library):
* lisp/emacs-lisp/generator.el (iter-yield):
* lisp/emacs-lisp/gv.el (gv-define-simple-setter):
* lisp/emacs-lisp/lisp-mnt.el (lm-verify):
* lisp/emacs-lisp/package-x.el (package-upload-file):
* lisp/emacs-lisp/package.el (package-version-join)
(package-disabled-p, package-activate-1, package-activate)
(package--download-one-archive)
(package--download-and-read-archives)
(package-compute-transaction, package-install-from-archive)
(package-install, package-install-selected-packages)
(package-delete, package-autoremove)
(package-install-button-action, package-delete-button-action)
(package-menu-hide-package, package-menu--list-to-prompt)
(package-menu--perform-transaction)
(package-menu--find-and-notify-upgrades):
* lisp/emacs-lisp/pcase.el (pcase-exhaustive, pcase--u1):
* lisp/emacs-lisp/re-builder.el (reb-enter-subexp-mode):
* lisp/emacs-lisp/ring.el (ring-next, ring-previous):
* lisp/emacs-lisp/rx.el (rx-check, rx-anything):
* lisp/emacs-lisp/smie.el (smie-config-save):
* lisp/emacs-lisp/subr-x.el (internal--check-binding):
* lisp/emacs-lisp/testcover.el (testcover-1value):
Use curved quotes in diagnostic format strings.

9 years ago; python.el: Fix previous commit for Emacs<24.3 compatibility
Fabián Ezequiel Gallina [Sat, 22 Aug 2015 02:42:01 +0000 (23:42 -0300)]
; python.el: Fix previous commit for Emacs<24.3 compatibility

9 years ago; python.el: Fix previous commit for Emacs<24.3 compatibility
Fabián Ezequiel Gallina [Sat, 22 Aug 2015 02:26:44 +0000 (23:26 -0300)]
; python.el: Fix previous commit for Emacs<24.3 compatibility

9 years agopython.el: Ensure remote process-environment on non-interactive processes
Fabián Ezequiel Gallina [Sat, 22 Aug 2015 01:34:39 +0000 (22:34 -0300)]
python.el: Ensure remote process-environment on non-interactive processes

* lisp/progmodes/python.el
(python-shell-tramp-refresh-process-environment): New function.
(python-shell-with-environment): Use it.

* test/automated/python-tests.el (python-shell-with-environment-2): Update.

9 years ago; python.el: Bump version to 25.1
Fabián Ezequiel Gallina [Fri, 21 Aug 2015 22:36:01 +0000 (19:36 -0300)]
; python.el: Bump version to 25.1

Also update author email and add Package-Require header to allow
installation from Emacs 24.x.

9 years agopython.el: Enhancements to process environment setup.
Fabián Ezequiel Gallina [Fri, 21 Aug 2015 22:06:57 +0000 (19:06 -0300)]
python.el: Enhancements to process environment setup.

* lisp/progmodes/python.el (python-shell-process-environment)
(python-shell-extra-pythonpaths, python-shell-exec-path)
(python-shell-virtualenv-root): Update docstring.  Remove :safe.
(python-shell-setup-codes): Remove :safe.
(python-shell-remote-exec-path): New defcustom.
(python-shell--add-to-path-with-priority): New macro.
(python-shell-calculate-pythonpath): Give priority to
python-shell-extra-pythonpaths.  Update docstring.
(python-shell-calculate-process-environment): Give priority to
python-shell-process-environment.  Update docstring.
(python-shell-calculate-exec-path): Give priority to
python-shell-exec-path and calculated virtualenv bin directory.
Update docstring.
(python-shell-tramp-refresh-remote-path): New function.
(python-shell-with-environment): Use it when working remotely and
do not modify tramp-remote-path.  Allow nesting.
(python-shell-calculate-command): Remove useless
python-shell-with-environment call.

* test/automated/python-tests.el (python-shell-calculate-pythonpath-1)
(python-shell-calculate-pythonpath-2)
(python-shell-calculate-process-environment-6)
(python-shell-calculate-process-environment-7)
(python-shell-calculate-process-environment-8)
(python-shell-calculate-exec-path-3)
(python-shell-calculate-exec-path-4)
(python-shell-calculate-exec-path-5)
(python-shell-calculate-exec-path-6)
(python-shell-with-environment-3): New tests.
(python-shell-calculate-process-environment-2)
(python-shell-calculate-process-environment-3)
(python-shell-calculate-process-environment-4)
(python-shell-calculate-process-environment-5)
(python-shell-calculate-exec-path-1)
(python-shell-calculate-exec-path-2)
(python-shell-with-environment-1)
(python-shell-with-environment-2): Update and simplify.

9 years agoAvoid hard-coding "M-x command" in docstrings
Paul Eggert [Fri, 21 Aug 2015 21:08:47 +0000 (14:08 -0700)]
Avoid hard-coding "M-x command" in docstrings

* lisp/calendar/todo-mode.el (todo-mode):
* lisp/desktop.el (desktop-save-mode):
* lisp/edmacro.el (edit-kbd-macro):
* lisp/emacs-lisp/package.el (package-menu-execute):
* lisp/emulation/viper-cmd.el (viper-ask-level):
* lisp/emulation/viper-init.el (viper-expert-level):
* lisp/filesets.el (filesets-add-buffer):
* lisp/follow.el (follow-mode):
* lisp/gnus/auth-source.el (auth-sources):
* lisp/international/ogonek.el (ogonek-informacja)
(ogonek-information):
* lisp/net/tramp.el (tramp-process-actions):
* lisp/org/org-gnus.el (org-gnus-no-new-news):
* lisp/org/org.el (org-ellipsis):
* lisp/progmodes/python.el (python-shell-get-process-or-error):
* lisp/progmodes/vhdl-mode.el (vhdl-mode):
* lisp/server.el (server-start):
* lisp/type-break.el (type-break-noninteractive-query):
* lisp/userlock.el (ask-user-about-supersession-help):
* lisp/whitespace.el (whitespace-report-region):
Prefer (substitute-command-keys "`\\[foo-command]'")
to "`M-x foo-command'" in docstrings and the like.

9 years ago; Fix minor typo in Elisp manual
Simen Heggestøyl [Fri, 21 Aug 2015 18:54:49 +0000 (20:54 +0200)]
; Fix minor typo in Elisp manual

9 years agoUse add-function for prettify-symbols-compose-predicate
Tassilo Horn [Fri, 21 Aug 2015 18:18:34 +0000 (20:18 +0200)]
Use add-function for prettify-symbols-compose-predicate

* lisp/textmodes/tex-mode.el (tex-common-initialization): Set
prettify-symbols-compose-predicate in terms of add-function.

* etc/NEWS: Mention prettify-symbols-compose-predicate and
prettify-symbols-mode support in tex-mode.

9 years ago* lisp/emacs-lisp/smie.el (smie-indent-current-column): New fun
Stefan Monnier [Fri, 21 Aug 2015 18:13:05 +0000 (14:13 -0400)]
* lisp/emacs-lisp/smie.el (smie-indent-current-column): New fun

(smie-indent-exps, smie-indent-keyword): Use it.

* test/indent/css-mode.css: Test alignment with leading comment.

9 years agoRespect text-quoting-style in (*Finder*) menus
Paul Eggert [Fri, 21 Aug 2015 16:46:15 +0000 (09:46 -0700)]
Respect text-quoting-style in (*Finder*) menus

* lisp/info.el (info--prettify-description):
Treat description as a docstring, so that it's requoted as
per text-quoting-style.

9 years agoDocument `window-use-time' in Elisp manual
Martin Rudalics [Fri, 21 Aug 2015 15:54:10 +0000 (17:54 +0200)]
Document `window-use-time' in Elisp manual

* doc/lispref/windows.texi (Selecting Windows): Document `window-use-time'.

9 years agoA better fix for bug#21303
Eli Zaretskii [Fri, 21 Aug 2015 14:45:41 +0000 (17:45 +0300)]
A better fix for bug#21303

* src/w32uniscribe.c (_WIN32_WINNT): Define to 0x0600.  This is a
cleaner fix for Bug#21260 than the previous change.

9 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Fri, 21 Aug 2015 13:33:46 +0000 (16:33 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

9 years agoRespect text-quoting-style in calc
Paul Eggert [Fri, 21 Aug 2015 13:31:54 +0000 (06:31 -0700)]
Respect text-quoting-style in calc

In calc, tespect text-quoting-style preference in diagnostic
formats and fix a few similar problems in docstrings.
* lisp/calc/calc-aent.el (math-read-factor):
* lisp/calc/calc-embed.el (calc-do-embedded):
* lisp/calc/calc-ext.el (calc-user-function-list)
* lisp/calc/calc-graph.el (calc-graph-show-dumb):
* lisp/calc/calc-help.el (calc-describe-key)
(calc-describe-thing):
* lisp/calc/calc-lang.el (calc-c-language)
(math-parse-fortran-vector-end, math-parse-tex-sum)
(math-parse-eqn-matrix, math-parse-eqn-prime)
(calc-yacas-language, calc-maxima-language, calc-giac-language)
(math-read-big-rec, math-read-big-balance):
* lisp/calc/calc-mode.el (calc-auto-why, calc-save-modes)
(calc-auto-recompute):
* lisp/calc/calc-prog.el (calc-user-define-invocation)
(math-do-arg-check):
* lisp/calc/calc-store.el (calc-edit-variable):
* lisp/calc/calc-units.el (math-build-units-table-buffer):
* lisp/calc/calc-vec.el (math-read-brackets):
* lisp/calc/calc-yank.el (calc-edit-mode):
* lisp/calc/calc.el (calc, calc-do, calc-user-invocation):
Use curved quotes in diagnostic format strings.
* lisp/calc/calc-help.el (calc-describe-thing):
Format docstrings with substitute-command-keys.
* lisp/calc/calc-help.el (calc-j-prefix-help):
* lisp/calc/calc-misc.el (calc-help):
* lisp/calc/calc-ext.el (calc-shift-Z-prefix-help):
Escape a docstring "`".

9 years agoFix documentation of 'menu-set-font' and 'set-frame-font'
Eli Zaretskii [Fri, 21 Aug 2015 13:32:29 +0000 (16:32 +0300)]
Fix documentation of 'menu-set-font' and 'set-frame-font'

* lisp/menu-bar.el (menu-set-font): Doc fix.  (Bug#21303)

* doc/lispref/frames.texi (Frame Font): Document that
set-frame-font with the last argument 't' will also make the font
the default for the future GUI frames.

9 years agoDocument '--create-frame' option to emacsclient
Eli Zaretskii [Fri, 21 Aug 2015 13:17:47 +0000 (16:17 +0300)]
Document '--create-frame' option to emacsclient

* doc/emacs/misc.texi (emacsclient Options): Document the
'--create-frame' option.  (Bug#21308)

9 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Fri, 21 Aug 2015 13:06:21 +0000 (16:06 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

9 years ago* lisp/progmodes/js.el (js-mode): Don't eagerly syntax propertize.
Stefan Monnier [Fri, 21 Aug 2015 13:03:52 +0000 (09:03 -0400)]
* lisp/progmodes/js.el (js-mode): Don't eagerly syntax propertize.

9 years agoDocument 'get-mru-window' in the ELisp manual
Eli Zaretskii [Fri, 21 Aug 2015 13:03:18 +0000 (16:03 +0300)]
Document 'get-mru-window' in the ELisp manual

* doc/lispref/windows.texi (Cyclic Window Ordering): Document
'get-mru-window'.  (Bug#21306)

9 years agoClarify documentation of 'get-buffer-window-list'
Eli Zaretskii [Fri, 21 Aug 2015 12:55:05 +0000 (15:55 +0300)]
Clarify documentation of 'get-buffer-window-list'

* doc/lispref/windows.texi (Buffers and Windows): Mention that the
current window, if relevant, will be the first in the list
returned by 'get-buffer-window-list'.

* lisp/window.el (get-buffer-window-list): Doc fix.  (Bug#21305)

9 years agoIn `ielm' use `pop-to-buffer-same-window' instead of `switch-to-buffer'
Vasilij Schneidermann [Fri, 21 Aug 2015 12:19:49 +0000 (14:19 +0200)]
In `ielm' use `pop-to-buffer-same-window' instead of `switch-to-buffer'

* lisp/ielm.el (ielm): Use `pop-to-buffer-same-window' instead of
`switch-to-buffer'.

9 years agoIn woman.el use `display-buffer' instead of `switch-to-buffer'
Kaushal [Fri, 21 Aug 2015 12:14:20 +0000 (14:14 +0200)]
In woman.el use `display-buffer' instead of `switch-to-buffer'

* lisp/woman.el (woman-really-find-file, WoMan-find-buffer): Use
`display-buffer' instead of `switch-to-buffer'.

Copyright-paperwork-exempt: yes

9 years agoFollow user preference in calendar diagnostics
Paul Eggert [Fri, 21 Aug 2015 12:02:51 +0000 (05:02 -0700)]
Follow user preference in calendar diagnostics

Respect text-quoting-style preference in diagnostic formats by
using curved quotes (which are translated as per text-quoting-style)
instead of grave accent and apostrophe (which are not).
* lisp/calendar/appt.el (appt-display-message):
* lisp/calendar/diary-lib.el (diary-check-diary-file)
(diary-mail-entries, diary-from-outlook):
* lisp/calendar/icalendar.el (icalendar-export-region)
(icalendar--convert-float-to-ical)
(icalendar--convert-date-to-ical)
(icalendar--convert-ical-to-diary)
(icalendar--convert-recurring-to-diary)
(icalendar--add-diary-entry):
* lisp/calendar/time-date.el (format-seconds):
* lisp/calendar/timeclock.el (timeclock-mode-line-display)
(timeclock-make-hours-explicit):
* lisp/calendar/todo-mode.el (todo-prefix, todo-delete-category)
(todo-item-mark, todo-check-format)
(todo-insert-item--next-param, todo-edit-item--next-key)
(todo-mode):
Use curved quotes in diagnostic format strings.
* lisp/calendar/icalendar.el (icalendar-import-format-sample):
* test/automated/icalendar-tests.el (icalendar--import-format-sample):
Just use straight quoting for simple test case.

9 years ago* src/gfilenotify.c (Fgfile_add_watch):
Michael Albinus [Fri, 21 Aug 2015 09:40:38 +0000 (11:40 +0200)]
* src/gfilenotify.c (Fgfile_add_watch):

Handle errors from g_file_monitor.

9 years agoIn frames.texi use "minibuffer-less frame" instead of "non-minibuffer frame"
Martin Rudalics [Fri, 21 Aug 2015 09:37:27 +0000 (11:37 +0200)]
In frames.texi use "minibuffer-less frame" instead of "non-minibuffer frame"

* doc/lispref/frames.texi (Frame Layout): Use "minibuffer-less
frame" instead of "non-minibuffer frame".

9 years agoFix frame geometry related text
Martin Rudalics [Fri, 21 Aug 2015 09:14:06 +0000 (11:14 +0200)]
Fix frame geometry related text

* doc/lispref/frames.texi (Frame Layout): Rename
`x-frame-geometry' to `frame-geometry'.
* doc/lispref/frames.texi (Mouse Position):
* doc/lispref/windows.texi (Coordinates and Windows): Use
`set-mouse-absolute-pixel-position' instead of
`x-set-mouse-absolute-pixel-position'.

9 years agoSanitize frame geometry related functions
Martin Rudalics [Fri, 21 Aug 2015 09:00:59 +0000 (11:00 +0200)]
Sanitize frame geometry related functions

* src/nsfns.m (Fx_frame_geometry): Rename to Fns_frame_geometry.
(Fx_frame_edges): Rename to Fns_frame_edges.
* src/w32fns.c (Fx_frame_geometry): Rename to Fw32_frame_geometry.
(Fx_frame_edges): Rename to Fw32_frame_edges.
(Fx_mouse_absolute_pixel_position): Rename to
Fw32_mouse_absolute_pixel_position.
(Fx_set_mouse_absolute_pixel_position): Rename to
Fw32_set_mouse_absolute_pixel_position.
* lisp/frame.el (x-frame-geometry, w32-frame-geometry)
(ns-frame-geometry, x-frame-edges, w32-frame-edges)
(ns-frame-edges, w32-mouse-absolute-pixel-position)
(x-mouse-absolute-pixel-position)
(w32-set-mouse-absolute-pixel-position)
(x-set-mouse-absolute-pixel-position): Declare.
(frame-geometry, mouse-absolute-pixel-position)
(set-mouse-absolute-pixel-position): New functions.
(frame-edges): Rewrite in terms of x-/w32-/ns-frame-edges.

9 years agoFix MinGW64 build broken by latest w32uniscribe.c changes
Eli Zaretskii [Fri, 21 Aug 2015 08:46:07 +0000 (11:46 +0300)]
Fix MinGW64 build broken by latest w32uniscribe.c changes

* src/w32uniscribe.c (UNISCRIBE_OPENTYPE): Define to 0x0100, for
MinGW64.  Reported by Andy Moreton <andrewjmoreton@gmail.com>.
(Bug#21260)

9 years agoAdd TeX defaults for prettify-symbol-mode
Tassilo Horn [Fri, 21 Aug 2015 07:38:01 +0000 (09:38 +0200)]
Add TeX defaults for prettify-symbol-mode

* lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Rename
from tex-prettify-symbols-alist.
(tex--prettify-symbols-compose-p): New function.
(tex-common-initialization): Use them as prettify-symbols-alist
and prettify-symbols-compose-predicate.

9 years agoGeneralize prettify-symbols to arbitrary modes
Tassilo Horn [Thu, 20 Aug 2015 07:58:28 +0000 (09:58 +0200)]
Generalize prettify-symbols to arbitrary modes

* lisp/progmodes/prog-mode.el
(prettify-symbols-default-compose-p): New function.
(prettify-symbols-compose-predicate): New variable.
(prettify-symbols--compose-symbol): Use it.

9 years agoDon't quote symbols 'like-this' in docstrings etc.
Paul Eggert [Fri, 21 Aug 2015 00:33:48 +0000 (17:33 -0700)]
Don't quote symbols 'like-this' in docstrings etc.

* admin/unidata/uvs.el (uvs-insert-fields-as-bytes):
* lisp/allout-widgets.el (allout-widgets-count-buttons-in-region):
* lisp/allout.el (allout-add-resumptions, allout-mode):
* lisp/calculator.el (calculator-operators):
* lisp/cedet/data-debug.el (dd-propertize):
* lisp/cedet/ede/proj-prog.el (ede-proj-target-makefile-program):
* lisp/cedet/semantic/analyze/debug.el:
(semantic-analyzer-debug-global-miss-text):
* lisp/cedet/semantic/lex-spp.el:
(semantic-lex-spp-replace-or-symbol-or-keyword):
* lisp/cedet/semantic/symref.el:
(semantic-symref-cleanup-recent-buffers-fcn):
* lisp/cedet/semantic/tag.el (semantic-tag-class):
* lisp/cedet/srecode/el.el (srecode-semantic-handle-:el-custom):
* lisp/gnus/nnmairix.el (nnmairix-propagate-marks-upon-close):
* lisp/gnus/pop3.el (pop3-authentication-scheme):
* lisp/help-fns.el (describe-function-orig-buffer):
* lisp/imenu.el (imenu--history-list):
* lisp/mail/feedmail.el (feedmail-confirm-outgoing)
(feedmail-display-full-frame, feedmail-deduce-bcc-where)
(feedmail-queue-default-file-slug)
(feedmail-queue-buffer-file-name):
* lisp/net/mairix.el (mairix-searches-mode-map):
* lisp/net/newst-backend.el (newsticker-retrieval-method)
(newsticker-auto-mark-filter-list):
* lisp/obsolete/vi.el (vi-mode):
* lisp/progmodes/cc-engine.el (c-literal-type):
* lisp/progmodes/cpp.el (cpp-face):
* lisp/progmodes/ebrowse.el (ebrowse-electric-list-looper):
* lisp/progmodes/elisp-mode.el (elisp--xref-make-xref):
* lisp/progmodes/pascal.el (pascal-auto-lineup):
* lisp/progmodes/prog-mode.el (prog-widen):
* lisp/progmodes/verilog-mode.el (verilog-regexp-words)
(verilog-auto-lineup, verilog-auto-reset-widths)
(verilog-auto-arg-format, verilog-auto-inst-template-numbers):
* lisp/textmodes/flyspell.el (flyspell-maybe-correct-transposition)
(flyspell-maybe-correct-doubling):
* lisp/textmodes/table.el (table-justify, table-justify-cell)
(table-justify-row, table-justify-column, table-insert-sequence)
(table--justify-cell-contents):
* lisp/url/url-auth.el (url-get-authentication):
* lisp/window.el (display-buffer-record-window):
* lisp/xml.el (xml-parse-file, xml-parse-region):
* src/gfilenotify.c (Fgfile_add_watch):
Don't quote symbols with apostrophes in doc strings.
Use asymmetric quotes instead.
* lisp/cedet/semantic/complete.el (semantic-displayor-show-request):
Likewise for symbol in diagnostic.
* lisp/image.el (image-extension-data):
* lisp/register.el (frame-configuration-to-register):
* src/buffer.c (syms_of_buffer):
Remove bogus apostrophes after symbols.
* lisp/thumbs.el (thumbs-conversion-program):
Quote Lisp string values using double-quotes, not apostrophes.

9 years ago; * etc/NEWS: Mention frame geometry related changes and additions.
Martin Rudalics [Thu, 20 Aug 2015 16:30:07 +0000 (18:30 +0200)]
; * etc/NEWS: Mention frame geometry related changes and additions.

9 years agoDescribe frame geometry and related functions in Elisp manual
Martin Rudalics [Thu, 20 Aug 2015 16:09:24 +0000 (18:09 +0200)]
Describe frame geometry and related functions in Elisp manual

* doc/lispref/display.texi (Size of Displayed Text, Line Height)
(Showing Images): Update references.
* doc/lispref/elisp.texi (Top): Update node listing.
* doc/lispref/frames.texi (Frame Geometry): New node.  Move
`Size and Position' section here.
(Size Parameters): Update references.
(Mouse Position): Update references and nomenclature.  Describe
new functions `x-mouse-absolute-pixel-position' and
`x-set-mouse-absolute-pixel-position'.
* doc/lispref/windows.texi (Window Sizes): Update references.
(Resizing Windows): Update references.  Move description of
`fit-frame-to-buffer' here.
(Coordinates and Windows): Update nomenclature and references.
Describe new arguments of `window-edges'.  Comment out
descriptions of `window-left-column', `window-top-line',
`window-pixel-left' and `window-pixel-top'.  Describe
`window-absolute-pixel-position'.

9 years agoHandling of `c-parse-state'. Fix low level bug.
Alan Mackenzie [Thu, 20 Aug 2015 10:37:24 +0000 (10:37 +0000)]
Handling of `c-parse-state'.  Fix low level bug.

progmodes/cc-engine.el (c-remove-stale-state-cache-backwards): Add
"CASE 3.5" to handle `cache-pos' being only slightly before `here'.

9 years agoIn `widget-color--choose-action' quit *Color* window instead of deleting it
Andreas Politz [Thu, 20 Aug 2015 06:54:45 +0000 (08:54 +0200)]
In `widget-color--choose-action' quit *Color* window instead of deleting it

* lisp/wid-edit.el (widget-color--choose-action): Quit *Color*
window instead of deleting it.

9 years agoIn w32fns.c's Fx_frame_geometry rewrite check whether frame has a titlebar
Martin Rudalics [Thu, 20 Aug 2015 06:22:53 +0000 (08:22 +0200)]
In w32fns.c's Fx_frame_geometry rewrite check whether frame has a titlebar

* src/w32fns.c (Fx_frame_geometry): Use title_bar.rgstate[0] to
determine whether frame has a titlebar.
Suggested by Eli Zaretskii <eliz@gnu.org>

9 years agoAdd a prettify-symbols-alist for (La)TeX
Tassilo Horn [Thu, 20 Aug 2015 05:56:09 +0000 (07:56 +0200)]
Add a prettify-symbols-alist for (La)TeX

* tex-mode.el (tex-prettify-symbols-alist): New variable holding
an alist suitable as prettify-symbols-alist in (La)TeX modes.

9 years agoMake electric-pair-mode, delete-selection-mode and CC Mode cooperate.
Alan Mackenzie [Wed, 19 Aug 2015 16:47:10 +0000 (16:47 +0000)]
Make electric-pair-mode, delete-selection-mode and CC Mode cooperate.

Fixes debbugs#21275.

In Emacs >= 25, let electric-pair-mode take precedence over
delete-selection-mode.
delsel.el (delete-selection-uses-region-p): New function, previously a
lambda expression in a property value for `self-insert-command'.
(top-level) Set the `delete-selection' property of `self-insert-command'
to `delete-selection-uses-region-p'.

progmodes/cc-cmds.el (top-level): Give the `delete-selection' property
for c-electric-\(brace\|paren\) the value `delete-selection-uses-region-p'
when the latter function exists.

9 years agoFix key binding quoting in tutorial *Help*
Paul Eggert [Wed, 19 Aug 2015 16:40:33 +0000 (09:40 -0700)]
Fix key binding quoting in tutorial *Help*

* lisp/tutorial.el (tutorial--describe-nonstandard-key):
When generating help for custom key bindings, use the user-preferred
quoting style rather than hardcoding the grave style.

9 years agoImprove and future-proof OTF fonts support in w32uniscribe.c
Eli Zaretskii [Wed, 19 Aug 2015 15:04:22 +0000 (18:04 +0300)]
Improve and future-proof OTF fonts support in w32uniscribe.c

* src/w32uniscribe.c (uniscribe_otf_capability): Add commentary
about the expected results and why the new Uniscribe APIs are not
used in this function.
(ScriptGetFontScriptTags_Proc, ScriptGetFontLanguageTags_Proc)
(ScriptGetFontFeatureTags_Proc): New function typedefs.
(uniscribe_new_apis): New static variable.
(uniscribe_check_features): New function, implements OTF features
verification while correctly accounting for features in the list
after the nil member, if any.
(uniscribe_check_otf_1): New function, retrieves the features
supported by the font for the requested script and language using
the Uniscribe APIs available from Windows Vista onwards.
(uniscribe_check_otf): If the new Uniscribe APIs are available,
use them in preference to reading the font data directly.  Call
uniscribe_check_features to verify that the requested features are
supported, replacing the original incomplete code.
(syms_of_w32uniscribe): Initialize function pointers for the new
Uniscribe APIs.  (Bug#21260)
(otf_features): Scan the script, langsys, and feature arrays back
to front, so that the result we return has them in alphabetical
order, like ftfont.c does.
* src/w32fns.c (syms_of_w32fns) <w32-disable-new-uniscribe-apis>:
New variable for debugging w32uniscribe.c code.

9 years ago* isearch.el (isearch-search-fun-default): Revert a5bdb87
Artur Malabarba [Wed, 19 Aug 2015 10:43:29 +0000 (11:43 +0100)]
* isearch.el (isearch-search-fun-default): Revert a5bdb87

Remove usage of `isearch-lax-whitespace' inside the `iearch-word'
clause of `isearch-search-fun-default'. That lax variable does not
refer to lax-whitespacing.  Related to (bug#21777).
This reverts commit a5bdb872edb9f031fe041faf9a8c0be432e5f64c.

* character-fold.el (character-fold-search): Set to nil
Default to nil for now, until someone implements proper
lax-whitespacing with char-fold searching.

9 years agoFix doc-string of `help-mode-finish'.
Martin Rudalics [Wed, 19 Aug 2015 09:33:25 +0000 (11:33 +0200)]
Fix doc-string of `help-mode-finish'.

* lisp/help-mode.el (help-mode-finish): Fix doc-string.

9 years agoIn nsimage.m include coding.h (Bug#21292)
Martin Rudalics [Wed, 19 Aug 2015 09:26:37 +0000 (11:26 +0200)]
In nsimage.m include coding.h (Bug#21292)

* src/nsimage.m (top-level): Include coding.h (Bug#21292).

9 years agoMove window edge functions to Elisp.
Martin Rudalics [Wed, 19 Aug 2015 09:20:44 +0000 (11:20 +0200)]
Move window edge functions to Elisp.

* src/window.c (Fwindow_edges, Fwindow_pixel_edges)
(Fwindow_absolute_pixel_edges, Fwindow_inside_edges)
(Fwindow_inside_pixel_edges, Fwindow_inside_absolute_pixel_edges):
Move to window.el.
(calc_absolute_offset): Remove.
* lisp/frame.el (frame-edges): New function.
* lisp/window.el (window-edges, window-pixel-edges)
(window-absolute-pixel-edges): Move here from window.c.
(window-body-edges, window-body-pixel-edges)
(window-absolute-body-pixel-edges): Move here from window.c and
rename "inside" to "body".  Keep old names as aliases.
(window-absolute-pixel-position): New function.

9 years ago[Gnus]: Use overlay functions directly
Katsumi Yamaoka [Wed, 19 Aug 2015 09:06:40 +0000 (09:06 +0000)]
[Gnus]: Use overlay functions directly

* lisp/gnus/gnus-art.el (gnus-mime-inline-part, gnus-mm-display-part)
(gnus-insert-mime-button, gnus-mime-buttonize-attachments-in-header)
(gnus-article-highlight-signature, gnus-article-extend-url-button)
(gnus-article-add-button, gnus-insert-prev-page-button)
(gnus-insert-next-page-button, gnus-insert-mime-security-button):
* lisp/gnus/gnus-cite.el (gnus-cite-delete-overlays)
(gnus-cite-add-face):
* lisp/gnus/gnus-html.el (gnus-html-wash-tags):
* lisp/gnus/gnus-salt.el (gnus-tree-read-summary-keys)
(gnus-tree-recenter, gnus-highlight-selected-tree):
* lisp/gnus/gnus-sum.el (gnus-summary-show-all-threads)
(gnus-summary-show-thread, gnus-summary-hide-thread)
(gnus-highlight-selected-summary):
* lisp/gnus/gnus-util.el (gnus-put-overlay-excluding-newlines):
* lisp/gnus/message.el (message-fix-before-sending)
(message-toggle-image-thumbnails):
* lisp/gnus/mm-decode.el (mm-convert-shr-links):
* lisp/gnus/sieve.el (sieve-highlight, sieve-insert-scripts):
Use overlay functions directly instead of using gnus-overlay-*,
message-overlay-*, and sieve-overlay-*.

* lisp/gnus/gnus-sum.el (gnus-remove-overlays):
* lisp/gnus/gnus.el (gnus-make-overlay, gnus-copy-overlay)
(gnus-delete-overlay, gnus-overlay-get, gnus-overlay-put)
(gnus-move-overlay, gnus-overlay-buffer, gnus-overlay-start)
(gnus-overlay-end, gnus-overlays-at, gnus-overlays-in):
* lisp/gnus/message.el (message-delete-overlay, message-make-overlay)
(message-overlay-get, message-overlay-put, message-overlays-in):
* lisp/gnus/sieve.el (sieve-make-overlay, sieve-overlay-put)
(sieve-overlays-at):
Remove.

9 years agoIn w32fns.c condition TITLEBAR_INFO declaration on WINDOWS version.
Martin Rudalics [Wed, 19 Aug 2015 06:49:41 +0000 (08:49 +0200)]
In w32fns.c condition TITLEBAR_INFO declaration on WINDOWS version.

* src/w32fns.c (TITLEBAR_INFO): Make it a typedef so MinGW64
builds can use the declaration from the system headers.
(GetTitleBarInfo_Proc, Fx_frame_geometry): Adapt to new
definition of TITLEBAR_INFO.
Suggested by Eli Zaretskii  <eliz@gnu.org>

9 years ago* lisp/gnus/nnmaildir.el (nnmaildir-flag-mark-mapping): Add "P".
Glenn Morris [Wed, 19 Aug 2015 06:34:16 +0000 (23:34 -0700)]
* lisp/gnus/nnmaildir.el (nnmaildir-flag-mark-mapping): Add "P".

9 years agoUse new q ‘format’ flag when fixing quotes in C
Paul Eggert [Wed, 19 Aug 2015 06:04:58 +0000 (23:04 -0700)]
Use new q ‘format’ flag when fixing quotes in C

* src/image.c (image_size_error): New function.  All uses of
image_error with "Invalid image size ..."  changed to use it.
* src/image.c (image_size_error, xbm_load_image, xbm_load)
(xpm_load, xpm_load_image, xpm_load, pbm_load, png_load_body)
(jpeg_load_body, tiff_load, gif_load, imagemagick_load_image)
(imagemagick_load, svg_load, svg_load_image, gs_load)
(x_kill_gs_process):
* src/lread.c (load_warn_old_style_backquotes):
* src/xfaces.c (load_pixmap):
* src/xselect.c (x_clipboard_manager_error_1):
Use %qs, not uLSQM and uRSQM.
* src/syntax.c (Finternal_describe_syntax_value):
Prefer Fsubstitute_command_keys to Fformat, as this lets
us use AUTO_STRING.
* src/xdisp.c (vadd_to_log): Use AUTO_STRING on the format argument,
as it's now guaranteed to be ASCII.
* src/xselect.c (x_clipboard_manager_error_2):
Avoid grave accent in low-level stderr diagnostic.

9 years agoNew q flag for ‘format’
Paul Eggert [Wed, 19 Aug 2015 06:04:58 +0000 (23:04 -0700)]
New q flag for ‘format’

* doc/lispref/processes.texi (Sentinels):
Don't hardwire grave quoting style in example.
* doc/lispref/strings.texi (Formatting Strings):
* etc/NEWS:
Document new q flag.
* src/editfns.c (Fformat): Implement it.

9 years agopinentry.el: Add debugging support
Daiki Ueno [Wed, 19 Aug 2015 02:40:17 +0000 (11:40 +0900)]
pinentry.el: Add debugging support

* lisp/net/pinentry.el (pinentry-debug): New variable.
(pinentry-debug-buffer): New variable.
(pinentry--process-filter): Send input to the debug buffer, if
`pinentry-debug' is set.

9 years agopinentry.el: Improve multiline prompt
Daiki Ueno [Wed, 19 Aug 2015 02:38:32 +0000 (11:38 +0900)]
pinentry.el: Improve multiline prompt

* lisp/net/pinentry.el (pinentry--prompt): Simplify the interface.
(pinentry--process-filter): Use `pinentry--prompt' for CONFIRM
command.

9 years agoFix multibyte confusion in diagnostics
Paul Eggert [Tue, 18 Aug 2015 23:24:27 +0000 (16:24 -0700)]
Fix multibyte confusion in diagnostics

* src/print.c (print_error_message):
Don't assume that the caller's name is unibyte.
* src/xdisp.c (vadd_to_log):
Don't assume that the formatted diagnostic is unibyte.

9 years agoFix file name encodings in diagnostics
Paul Eggert [Tue, 18 Aug 2015 23:17:30 +0000 (16:17 -0700)]
Fix file name encodings in diagnostics

Also, close some minor races when opening image files, by opening
them once instead of multiple times.
* src/gtkutil.c (xg_get_image_for_pixmap):
* src/image.c (xpm_load, tiff_load, gif_load, imagemagick_load)
(svg_load):
* src/nsimage.m (allocInitFromFile:):
* src/xfns.c (xg_set_icon):
Encode file name, since x_find_image_file no longer does that.
* src/image.c (x_find_image_fd): New function.
(x_find_image_file): Use it.  Do not encode resulting file name,
since callers sometimes need it decoded.
(slurp_file): File arg is now a fd, not a file name.
All callers changed.  This saves us having to open the file twice.
(xbm_load, xpm_load, pbm_load, png_load_body, jpeg_load_body)
(svg_load):
Use x_find_image_fd and fdopen to save a file-open.
Report file name that failed.
* src/lread.c (openp): If PREDICATE is t, open the file in binary mode.

9 years agoAllow blink-matching-paren to jump off screen
Dmitry Gutov [Tue, 18 Aug 2015 20:31:52 +0000 (23:31 +0300)]
Allow blink-matching-paren to jump off screen

* doc/emacs/programs.texi (Matching): Mention the
`blink-matching-paren' value `jump-offscreen'.

* lisp/simple.el (blink-matching-paren): New possible value.
(blink-matching-paren-on-screen): Clarify the docstring.
(blink-matching-open): Handle `jump-offscreen' (bug#21286).

9 years agoRefine the previous change
Dmitry Gutov [Tue, 18 Aug 2015 15:56:00 +0000 (18:56 +0300)]
Refine the previous change

* lisp/simple.el (blink-matching-open): Use minibuffer-message
outside of save-excursion (bug#21286).

9 years agoRewrite and add frame geometry related functions.
Martin Rudalics [Tue, 18 Aug 2015 14:45:27 +0000 (16:45 +0200)]
Rewrite and add frame geometry related functions.

* src/frame.c (Fframe_position): New function.
(Fset_frame_position): Rename parameters and rewrite doc-string.
(syms_of_frame): Remove Qframe_position, Qframe_outer_size,
Qtitle_height and Qframe_inner_size.  Add Qouter_edges,
Qouter_position, Qouter_size, Qnative_edges, Qinner_edges,
Qtitle_bar_size.
* src/nsfns.m (frame_geometry): New function.
(Fx_frame_geometry): Call frame_geometry.
(Fx_frame_edges): New function.
* src/w32fns.c (C_CHILDREN_TITLEBAR, TITLEBAR_INFO)
(GetTitleBarInfo_Proc): Define these so we can use the
GetTitleBarInfo API.
(Fw32_frame_menu_bar_size, Fw32_frame_rect): Remove.
(Fx_frame_geometry): Rewrite.
(Fx_frame_edges, Fx_mouse_absolute_pixel_position)
(Fx_set_mouse_absolute_pixel_position): New functions.
* src/xfns.c (frame_geometry): New function.
(Fx_frame_geometry): Call frame_geometry.
(Fx_frame_edges, Fx_mouse_absolute_pixel_position)
(Fx_set_mouse_absolute_pixel_position): New functions.

9 years agoImprove Tramp's compatibility
Michael Albinus [Tue, 18 Aug 2015 12:25:45 +0000 (14:25 +0200)]
Improve Tramp's compatibility

* lisp/net/tramp.el (tramp-get-method-parameter):
* lisp/net/tramp-adb.el (tramp-adb-parse-device-names)
(tramp-adb-get-device):
* lisp/net/trampver.el (tramp-repository-get-version):
Use `tramp-compat-replace-regexp-in-string'.

9 years ago* lisp/net/tramp-cmds.el (tramp-reporter-dump-variable):
Pierre Téchoueyres [Tue, 18 Aug 2015 12:24:16 +0000 (14:24 +0200)]
* lisp/net/tramp-cmds.el (tramp-reporter-dump-variable):

Encode/decode string.

Copyright-paperwork-exempt: yes

9 years ago; Remove Entry from ChangeLog.2
Phillip Lord [Tue, 18 Aug 2015 09:11:38 +0000 (10:11 +0100)]
; Remove Entry from ChangeLog.2

This entry was about a formatting change to another ChangeLog
entry and so shouldn't have been in the ChangeLog in the first place.

9 years agoClarify what happens to match data on failure
Paul Eggert [Tue, 18 Aug 2015 06:46:38 +0000 (23:46 -0700)]
Clarify what happens to match data on failure

Problem reported by Ernesto Alfonso (Bug#21279).
* doc/lispref/searching.texi (Regexp Search, Simple Match Data):
Document more carefully what happens to match data after a failed
search.
* src/search.c (Fmatch_beginning, Fmatch_end): Document that
the return value is undefined if the last search failed.
(Fmatch_data): Simplify doc string line 1.

9 years agoRevert "pinentry.el: Support external passphrase cache"
Daiki Ueno [Tue, 18 Aug 2015 06:02:41 +0000 (15:02 +0900)]
Revert "pinentry.el: Support external passphrase cache"

This reverts commit e086e55a664ec27fbca7b3231c4b32cb78a89337.
pinentry.el shouldn't directly interact with the secrets service,
but ask the caller to cache the passphrase.

9 years ago* doc/emacs/sending.texi (Mail Misc): Fix two index entries for
Xue Fuqiao [Tue, 18 Aug 2015 03:42:21 +0000 (11:42 +0800)]
* doc/emacs/sending.texi (Mail Misc): Fix two index entries for
Message mode hooks.

9 years agoepg.el: Make gpgconf output parsing future proof
Daiki Ueno [Tue, 18 Aug 2015 03:12:17 +0000 (12:12 +0900)]
epg.el: Make gpgconf output parsing future proof

* lisp/epg.el (epg--start): Count the number of fields in "gpgconf
--list-options" output.

9 years agopinentry.el: Support external passphrase cache
Daiki Ueno [Tue, 18 Aug 2015 02:55:26 +0000 (11:55 +0900)]
pinentry.el: Support external passphrase cache

* lisp/net/pinentry.el (pinentry-use-secrets): New user option.
(pinentry--allow-external-password-cache): New local variable.
(pinentry--key-info): New local variable.
(secrets-enabled, secrets-search-items, secrets-get-secret):
Declare.
(pinentry--send-passphrase): New function, split from
`pinentry--process-filter'.
(pinentry--process-filter): Use secrets.el to retrieve passphrase
from login keyring.

9 years ago; pinentry.el: Update header comment and fix typos
Daiki Ueno [Tue, 18 Aug 2015 02:19:41 +0000 (11:19 +0900)]
; pinentry.el: Update header comment and fix typos

9 years agopinentry.el: Popup window for multiline prompt
Daiki Ueno [Tue, 18 Aug 2015 02:09:29 +0000 (11:09 +0900)]
pinentry.el: Popup window for multiline prompt

* lisp/net/pinentry.el (pinentry): New custom group.
(pinentry-popup-prompt-window): New user option.
(pinentry-prompt-window-height): New user option.
(pinentry--prompt-buffer): New variable.
(pinentry-prompt-mode-map): New variable.
(pinentry-prompt-mode): New function.
(pinentry--prompt): New function.
(pinentry--process-filter): Use `pinentry--prompt' instead of
`read-passwd' and `y-or-n-p'.

9 years agomessage.el: Silent the byte compiler
Katsumi Yamaoka [Tue, 18 Aug 2015 01:31:57 +0000 (01:31 +0000)]
message.el: Silent the byte compiler

* lisp/gnus/message.el (message-overlay-put, message-make-overlay)
(message-kill-all-overlays, message-overlays-in, message-overlay-get)
(message-delete-overlay, message-window-inside-pixel-edges):
Declare before using.

9 years ago* lisp/gnus/message.el (message-overlay-get, message-overlays-in)
Katsumi Yamaoka [Mon, 17 Aug 2015 23:21:29 +0000 (23:21 +0000)]
* lisp/gnus/message.el (message-overlay-get, message-overlays-in)
(message-window-inside-pixel-edges): XEmacs compatible functions.

9 years ago* message.el (message-toggle-image-thumbnails): New command.
Lars Magne Ingebrigtsen [Mon, 17 Aug 2015 22:18:21 +0000 (22:18 +0000)]
* message.el (message-toggle-image-thumbnails): New command.

9 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Noah Friedman [Mon, 17 Aug 2015 20:00:36 +0000 (13:00 -0700)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

9 years ago(blink-matching-open): Restore point before calling minibuffer-message.
Noah Friedman [Mon, 17 Aug 2015 19:59:12 +0000 (12:59 -0700)]
(blink-matching-open): Restore point before calling minibuffer-message.