]> git.eshelyaron.com Git - emacs.git/log
emacs.git
9 years ago* doc/misc/dbus.texi (Type Conversion): Check for subfeature. scratch/dbusbind-type
Michael Albinus [Sun, 30 Aug 2015 13:51:36 +0000 (15:51 +0200)]
* doc/misc/dbus.texi (Type Conversion): Check for subfeature.

* src/dbusbind.c (syms_of_dbusbind):
* lisp/net/dbus.el (top): Provide proper subfeature.

9 years agodbusbind: Add alternative form of compound argument
Daiki Ueno [Fri, 28 Aug 2015 01:53:35 +0000 (10:53 +0900)]
dbusbind: Add alternative form of compound argument

* src/dbusbind.c (xd_append_basic_arg): New function, split from
xd_append_arg.
(xd_append_arg): Use xd_append_arg.
(xd_type_spec_to_signature): New function.
(xd_append_arg_with_type_spec): New function.
(Fdbus_message_internal): Use xd_append_arg_with_type_spec,
instead of xd_append_arg.
(syms_of_dbusbind): Provide subfeature `:type'.
* doc/misc/dbus.texi (Type Conversion): Mention `:type' keyword.

Fixes: debbugs:20193
9 years ago; Fix a typo in the EPA docs
Wieland Hoffmann [Wed, 26 Aug 2015 08:31:19 +0000 (10:31 +0200)]
; Fix a typo in the EPA docs

* doc/misc/epa.texi: Fix a typo

9 years agoTweak startup screen quoting
Paul Eggert [Thu, 27 Aug 2015 18:34:45 +0000 (11:34 -0700)]
Tweak startup screen quoting

* lisp/startup.el (normal-splash-screen): Use standard
"M-" abbrevation rather than a confusingly-different one.
(normal-no-mouse-startup-screen): Follow ‘text-quoting-style’.

9 years agoAdd test case for ‘format’ bug and refactor
Paul Eggert [Thu, 27 Aug 2015 15:50:22 +0000 (08:50 -0700)]
Add test case for ‘format’ bug and refactor

* src/editfns.c (styled_format): Refactor internally, mostly by
moving declarations closer to uses.  This should not affect behavior.
* test/automated/textprop-tests.el (textprop-tests-format): New test.

9 years agoFix ‘format’ bug with property offsets
Paul Eggert [Thu, 27 Aug 2015 11:09:11 +0000 (04:09 -0700)]
Fix ‘format’ bug with property offsets

* src/editfns.c (styled_format): Fix recently-introduced ‘format’
bug in calculating string property offsets (Bug#21351).

9 years agoUse straight quotes in lib-src diagnostics
Paul Eggert [Thu, 27 Aug 2015 09:36:56 +0000 (02:36 -0700)]
Use straight quotes in lib-src diagnostics

These auxiliary programs can’t use Emacs’s text-quoting-style,
and it’s too much trouble to redo that mechanism by hand.
So just use straight quotes for now.
* lib-src/ebrowse.c (main):
* lib-src/emacsclient.c (decode_options, main):
* lib-src/etags.c (Ada_help, default_C_help, Cplusplus_help)
(Forth_help, HTML_help, Lisp_help, Makefile_help, Objc_help)
(Perl_help, PHP_help, Python_help, Scheme_help, TeX_help, auto_help)
(none_help, print_language_names, print_help, add_regex)
(suggest_asking_for_help):
* lib-src/make-docfile.c (write_c_args, scan_c_stream):
Use straight quotes in diagnostics.

9 years ago‘text-quoting-style’ fixes for admin
Paul Eggert [Thu, 27 Aug 2015 09:24:48 +0000 (02:24 -0700)]
‘text-quoting-style’ fixes for admin

* admin/admin.el (cusver-scan, cusver-check):
* admin/authors.el (authors-canonical-file-name):
* admin/bzrmerge.el (bzrmerge-missing):
Respect ‘text-quoting-style’ in diagnostics.

9 years agoAssume GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS
Paul Eggert [Thu, 27 Aug 2015 02:24:28 +0000 (19:24 -0700)]
Assume GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS

This removes the need for GCPRO1 etc.  Suggested by Stefan Monnier in:
http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00918.html
* doc/lispref/internals.texi (Writing Emacs Primitives):
* etc/NEWS:
Document the change.
* src/alloc.c (gcprolist, dump_zombies, MAX_ZOMBIES, zombies)
(nzombies, ngcs, avg_zombies, max_live, max_zombies, avg_live)
(Fgc_status, check_gcpros, relocatable_string_data_p, gc-precise):
* src/bytecode.c (mark_byte_stack) [BYTE_MARK_STACK]:
* src/eval.c (gcpro_level) [DEBUG_GCPRO]:
* src/lisp.h (struct handler.gcpro, struct gcpro, GC_MARK_STACK)
(GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
(GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
(BYTE_MARK_STACK, GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6)
(GCPRO7, UNGCPRO, RETURN_UNGCPRO):
Remove.  All uses removed.  The code now assumes
GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS.
* src/bytecode.c (relocate_byte_stack):
Rename from unmark_byte_stack, since it now only relocates.
All callers changed.
* src/frame.c (make_frame): Add an IF_LINT to pacify GCC 5.2
with GCPROs removed.
* src/systime.h: Use EMACS_LISP_H as the canary instead of GCPRO1.
* test/automated/finalizer-tests.el (finalizer-basic)
(finalizer-circular-reference, finalizer-cross-reference)
(finalizer-error):
* test/automated/generator-tests.el (cps-test-iter-close-finalizer):
Remove tests, as they depend on gc-precise.

9 years agoImprove seq-concatenate for new sequence types
Nicolas Petton [Wed, 26 Aug 2015 22:21:38 +0000 (00:21 +0200)]
Improve seq-concatenate for new sequence types

Use the new `seq-into-sequence' in seqs passed to `seq-concatenate' to
ensure that concatenation happens on sequences only.  This makes it
possible to use `seq-concatenate' for new types of seqs.

* lisp/emacs-lisp/seq.el (seq-into-sequence, seq-concatenate): New
function used in `seq-concatenate'.
* test/automated/seq-tests.el (test-seq-into-sequence): New unit test
for seq-into-sequence.

9 years agoAdd mode local overrides to xref-find-definitions
Stephen Leake [Wed, 26 Aug 2015 21:43:29 +0000 (16:43 -0500)]
Add mode local overrides to xref-find-definitions

* lisp/cedet/mode-local.el (xref-mode-local--override-present,
xref-mode-local-overload): New; add mode local overrides to
xref-find-definitions.

* test/automated/elisp-mode-tests.el: Add mode local override tests.
(xref-elisp-test-run): Handle indented defuns.
(xref-elisp-generic-*): Improve doc strings.

* lisp/progmodes/elisp-mode.el (elisp-xref-find-def-functions): New.
(elisp--xref-find-definitions): Use it.

9 years agoAdd mode local overrides to describe-function
Stephen Leake [Wed, 26 Aug 2015 20:33:41 +0000 (15:33 -0500)]
Add mode local overrides to describe-function

* lisp/cedet/mode-local.el (describe-mode-local-overload): New; add mode
local overrides to describe-function.

* etc/NEWS: Document change.

9 years agoPrefer straight quoting in some etc text files
Paul Eggert [Wed, 26 Aug 2015 21:05:43 +0000 (14:05 -0700)]
Prefer straight quoting in some etc text files

These files are plain text and might be used by non-Emacs apps.
They’re mostly ASCII, so just use straight quotes.

9 years agoFix quoting in ‘message_with_string’
Paul Eggert [Wed, 26 Aug 2015 20:11:57 +0000 (13:11 -0700)]
Fix quoting in ‘message_with_string’

* src/nsfont.m (nsfont_open): Use directed quotes in format; they
should work now.
* src/xdisp.c (message_to_stderr): New function, refactored from
part of ‘message3_nolog’.
(message3_nolog): Use it.
(message_with_string): Use it.  Don’t mishandle NUL bytes when
noninteractive.  Prefer AUTO_STRING when it’s most likely faster.
Use ‘format-message’, not ‘format’, so that quotes are translated.

9 years agoMention false positives of file-accessible-directory on w32
Eli Zaretskii [Wed, 26 Aug 2015 15:44:09 +0000 (18:44 +0300)]
Mention false positives of file-accessible-directory on w32

* src/fileio.c (Ffile_accessible_directory_p): Doc fix.
(Bug#21346)

9 years agoTreat error strings as help
Paul Eggert [Wed, 26 Aug 2015 15:25:56 +0000 (08:25 -0700)]
Treat error strings as help

* src/print.c (print_error_message): Translate quotes and command
keys in errmsg so that users see, e.g., "Symbol’s value as
variable is void: foo" when text-quoting-style is curved.

9 years ago; Auto-commit of loaddefs files.
Glenn Morris [Wed, 26 Aug 2015 10:20:57 +0000 (06:20 -0400)]
; Auto-commit of loaddefs files.

9 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Wed, 26 Aug 2015 08:33:29 +0000 (10:33 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

9 years ago; * tramp-compat.el: Remove superfluous comment; formatting
Michael Albinus [Wed, 26 Aug 2015 08:33:11 +0000 (10:33 +0200)]
; * tramp-compat.el: Remove superfluous comment; formatting

9 years ago* lisp/net/tramp-cache.el (top): Use `message' but `format-message'.
Michael Albinus [Wed, 26 Aug 2015 08:32:02 +0000 (10:32 +0200)]
* lisp/net/tramp-cache.el (top): Use `message' but `format-message'.

9 years agoTop-level elisp files respect ‘text-quoting-style’
Paul Eggert [Wed, 26 Aug 2015 08:30:29 +0000 (01:30 -0700)]
Top-level elisp files respect ‘text-quoting-style’

In top-level elisp files, use format-message in diagnostic formats,
so that they follow user preference as per ‘text-quoting-style’
rather than being hard-coded to quote `like this'.
* lisp/allout.el (allout-get-configvar-values):
* lisp/apropos.el (apropos-symbols-internal):
* lisp/dired-aux.el (dired-do-shell-command, dired-create-files)
(dired-do-create-files-regexp, dired-create-files-non-directory):
* lisp/dired-x.el (dired-do-run-mail):
* lisp/dired.el (dired-log, dired-dnd-handle-local-file):
* lisp/disp-table.el (standard-display-european):
* lisp/find-dired.el (find-dired):
* lisp/forms.el (forms-mode):
* lisp/ido.el (ido-buffer-internal):
* lisp/info.el (Info-index-next):
* lisp/outline.el (outline-invent-heading):
* lisp/printing.el (pr-ps-outfile-preprint, pr-i-ps-send):
* lisp/proced.el (proced-log):
* lisp/ps-print.el (ps-print-preprint, ps-get-size):
* lisp/recentf.el (recentf-open-files, recentf-save-list):
* lisp/savehist.el (savehist-save):
* lisp/server.el (server-ensure-safe-dir):
* lisp/ses.el (ses-rename-cell):
* lisp/simple.el (list-processes--refresh):
* lisp/startup.el (command-line):
* lisp/strokes.el (strokes-unset-last-stroke)
(strokes-execute-stroke):
Use format-message so that quotes are restyled.
* lisp/cus-edit.el (custom-raised-buttons, customize-browse):
Don’t quote ‘raised’.
* lisp/descr-text.el (describe-char):
* lisp/dirtrack.el (dirtrack-debug-message):
* lisp/hexl.el (hexl-insert-multibyte-char):
Apply substitute-command-keys to help string.
* lisp/wdired.el (wdired-do-renames, wdired-do-symlink-changes)
(wdired-do-perm-changes):
Let dired-log do the formatting.

9 years agoGo back to grave quoting in Tramp
Paul Eggert [Wed, 26 Aug 2015 01:58:54 +0000 (18:58 -0700)]
Go back to grave quoting in Tramp

* lisp/net/tramp-adb.el:
* lisp/net/tramp-cache.el:
* lisp/net/tramp-compat.el:
* lisp/net/tramp-gvfs.el:
* lisp/net/tramp-gw.el:
* lisp/net/tramp-sh.el:
* lisp/net/tramp-smb.el:
* lisp/net/tramp.el:
Stick with grave quoting in diagnostics strings.  This is more
portable to older Emacs, desirable for Tramp.
* lisp/net/tramp-cache.el: Use ‘format-message’, not ‘format’,
for diagnostic that needs requoting.
* lisp/net/tramp-compat.el (format-message):
Fall back on simple ‘format’, since that’s good enough now.

9 years agoGo back to grave quoting in Gnus
Paul Eggert [Wed, 26 Aug 2015 01:50:26 +0000 (18:50 -0700)]
Go back to grave quoting in Gnus

* lisp/gnus/auth-source.el (auth-source-netrc-parse-entries):
* lisp/gnus/gnus-agent.el (gnus-agent-check-overview-buffer)
(gnus-agent-fetch-headers):
* lisp/gnus/gnus-int.el (gnus-start-news-server):
* lisp/gnus/gnus-registry.el:
(gnus-registry--split-fancy-with-parent-internal)
(gnus-registry-post-process-groups):
* lisp/gnus/gnus-score.el (gnus-summary-increase-score):
* lisp/gnus/gnus-start.el (gnus-convert-old-newsrc):
* lisp/gnus/gnus-topic.el (gnus-topic-rename):
* lisp/gnus/legacy-gnus-agent.el (gnus-agent-unlist-expire-days):
* lisp/gnus/spam.el (spam-check-blackholes):
Stick with grave quoting in diagnostics strings.  This is more
portable to older Emacs, desirable for Gnus.

9 years agoFix customization of text-quoting-style
Paul Eggert [Wed, 26 Aug 2015 01:46:18 +0000 (18:46 -0700)]
Fix customization of text-quoting-style

* lisp/cus-edit.el (custom-guess-type, custom-variable-documentation):
* lisp/wid-edit.el (widget-docstring):
Get raw docstring here since it’s cooked later and should not be
cooked twice.
* lisp/cus-edit.el (custom-group-value-create):
Cook the docstring before inserting it.
* lisp/cus-start.el (text-quoting-style): Quote the customization
docstrings according to the new rules.  Give curved examples.

9 years agoformat-message now curves ` and '
Paul Eggert [Wed, 26 Aug 2015 01:41:31 +0000 (18:41 -0700)]
format-message now curves ` and '

That way, the caller doesn’t have to use curved quotes to
get diagnostics that match the text-quoting-style preferences.
Suggested by Dmitry Gutov in:
http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00893.html
This means we no longer need %qs, so remove that format.
While we’re at it, fix an unlikely bug and lessen the pressure
on the garbage collector by processing the string once rather
than twice in the usual case.
* doc/lispref/strings.texi (Formatting Strings):
* etc/NEWS: Document this.
* lisp/subr.el (format-message): Remove; now done in C.
* src/callint.c (Fcall_interactively):
* src/editfns.c (Fmessage, Fmessage_box):
Use Fformat_message instead of Finternal__text_restyle
followed by Fformat.
* src/doc.c (LSQM, RSQM): Remove; all uses changed to use
uLSQM and uRSQM.
(Fsubstitute_command_keys): Prefer AUTO_STRING to build_string
when pure ASCII now suffices.  Fix unlikely bug when parsing
unibyte string containing non-ASCII bytes.  Use inline code
rather than memcpy, as it’s a tiny number of bytes.
(Finternal__text_restyle): Remove; no longer used.
(syms_of_doc): Don’t declare it.
* src/editfns.c (Fformat): Rewrite in terms of new function
‘styled_format’.
(Fformat_message): New function, moved here from subr.el.
(styled_format): New function, with the old guts of Fformat,
except it now optionally transliterates quotes, and it transliterates
traditional grave accent and apostrophe quoting as well.
Remove recently-added q flag; no longer needed or used.
(syms_of_editfns): Define format-message.
* src/lisp.h (uLSQM0, uLSQM1, uLSQM2, uRSQM0, uRSQM1, uRSQM2):
Remove; no longer need to be global symbols.
* src/xdisp.c (vadd_to_log): Use Fformat_message, not Fformat,
so that callers can use `%s'.
* src/image.c (image_size_error, xbm_load_image, xbm_load)
(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 `%s' instead of %qs in formats.

9 years agoMinor fixes in doc/emacs/search.texi
Eli Zaretskii [Tue, 25 Aug 2015 17:27:35 +0000 (20:27 +0300)]
Minor fixes in doc/emacs/search.texi

* doc/emacs/search.texi (Basic Isearch): Fix a typo.
(Special Isearch): Use @w{} to generate several consecutive spaces
with Texinfo 6.  (Bug#21345)

9 years ago* lisp/net/tramp-sh.el (tramp-awk-encode, tramp-awk-decode)
Michael Albinus [Tue, 25 Aug 2015 14:05:21 +0000 (16:05 +0200)]
* lisp/net/tramp-sh.el (tramp-awk-encode, tramp-awk-decode)

(tramp-awk-coding-test): New defconsts.
(tramp-remote-coding-commands): Use them.
(tramp-find-inline-encoding): Check for Perl only if necessary.

9 years ago; Auto-commit of loaddefs files.
Glenn Morris [Tue, 25 Aug 2015 10:18:40 +0000 (06:18 -0400)]
; Auto-commit of loaddefs files.

9 years ago* doc/lispintro/emacs-lisp-intro.texi (Run a Program): Add some
Xue Fuqiao [Tue, 25 Aug 2015 09:21:03 +0000 (17:21 +0800)]
* doc/lispintro/emacs-lisp-intro.texi (Run a Program): Add some
index entries for the special form `quote'.

9 years agoSpelling fixes
Paul Eggert [Tue, 25 Aug 2015 07:42:17 +0000 (00:42 -0700)]
Spelling fixes

9 years agoGnus format-message typo fix
Paul Eggert [Tue, 25 Aug 2015 07:04:42 +0000 (00:04 -0700)]
Gnus format-message typo fix

* lisp/gnus/gnus-util.el (gnus-format-message):
Fix typo when running in older Emacs.

9 years agoPrefer directed to neutral quotes
Paul Eggert [Tue, 25 Aug 2015 06:39:33 +0000 (23:39 -0700)]
Prefer directed to neutral quotes

Prefer directed to neutral quotes in docstings and diagnostics.
In docstrings, escape apostrophes that would otherwise be translated
to curved quotes using the newer, simpler rules.
* admin/unidata/unidata-gen.el (unidata-gen-table):
* lisp/align.el (align-region):
* lisp/allout.el (allout-mode, allout-solicit-alternate-bullet):
* lisp/bookmark.el (bookmark-default-annotation-text):
* lisp/calc/calc-aent.el (math-read-if, math-read-factor):
* lisp/calc/calc-lang.el (math-read-giac-subscr)
(math-read-math-subscr):
* lisp/calc/calc-misc.el (report-calc-bug):
* lisp/calc/calc-prog.el (calc-fix-token-name)
(calc-read-parse-table-part):
* lisp/cedet/ede/pmake.el (ede-proj-makefile-insert-dist-rules):
* lisp/cedet/semantic/complete.el (semantic-displayor-show-request):
* lisp/dabbrev.el (dabbrev-expand):
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
* lisp/emacs-lisp/elint.el (elint-get-top-forms):
* lisp/emacs-lisp/lisp-mnt.el (lm-verify):
* lisp/emulation/viper-cmd.el (viper-toggle-search-style):
* lisp/erc/erc-button.el (erc-nick-popup):
* lisp/erc/erc.el (erc-cmd-LOAD, erc-handle-login):
* lisp/eshell/em-dirs.el (eshell/cd):
* lisp/eshell/em-glob.el (eshell-glob-regexp):
* lisp/eshell/em-pred.el (eshell-parse-modifiers):
* lisp/eshell/esh-arg.el (eshell-parse-arguments):
* lisp/eshell/esh-opt.el (eshell-show-usage):
* lisp/files-x.el (modify-file-local-variable):
* lisp/filesets.el (filesets-add-buffer, filesets-remove-buffer)
(filesets-update-pre010505):
* lisp/find-cmd.el (find-generic, find-to-string):
* lisp/gnus/auth-source.el (auth-source-netrc-parse-entries):
* lisp/gnus/gnus-agent.el (gnus-agent-check-overview-buffer)
(gnus-agent-fetch-headers):
* lisp/gnus/gnus-int.el (gnus-start-news-server):
* lisp/gnus/gnus-registry.el:
(gnus-registry--split-fancy-with-parent-internal):
* lisp/gnus/gnus-score.el (gnus-summary-increase-score):
* lisp/gnus/gnus-start.el (gnus-convert-old-newsrc):
* lisp/gnus/gnus-topic.el (gnus-topic-rename):
* lisp/gnus/legacy-gnus-agent.el (gnus-agent-unlist-expire-days):
* lisp/gnus/nnmairix.el (nnmairix-widget-create-query):
* lisp/gnus/spam.el (spam-check-blackholes):
* lisp/mail/feedmail.el (feedmail-run-the-queue):
* lisp/mpc.el (mpc-playlist-rename):
* lisp/net/ange-ftp.el (ange-ftp-shell-command):
* lisp/net/mairix.el (mairix-widget-create-query):
* lisp/net/tramp-cache.el:
* lisp/obsolete/otodo-mode.el (todo-more-important-p):
* lisp/obsolete/pgg-gpg.el (pgg-gpg-process-region):
* lisp/obsolete/pgg-pgp.el (pgg-pgp-process-region):
* lisp/obsolete/pgg-pgp5.el (pgg-pgp5-process-region):
* lisp/org/ob-core.el (org-babel-goto-named-src-block)
(org-babel-goto-named-result):
* lisp/org/ob-fortran.el (org-babel-fortran-ensure-main-wrap):
* lisp/org/ob-ref.el (org-babel-ref-resolve):
* lisp/org/org-agenda.el (org-agenda-prepare):
* lisp/org/org-bibtex.el (org-bibtex-fields):
* lisp/org/org-clock.el (org-clock-notify-once-if-expired)
(org-clock-resolve):
* lisp/org/org-feed.el (org-feed-parse-atom-entry):
* lisp/org/org-habit.el (org-habit-parse-todo):
* lisp/org/org-mouse.el (org-mouse-popup-global-menu)
(org-mouse-context-menu):
* lisp/org/org-table.el (org-table-edit-formulas):
* lisp/org/ox.el (org-export-async-start):
* lisp/play/dunnet.el (dun-score, dun-help, dun-endgame-question)
(dun-rooms, dun-endgame-questions):
* lisp/progmodes/ada-mode.el (ada-goto-matching-start):
* lisp/progmodes/ada-xref.el (ada-find-executable):
* lisp/progmodes/antlr-mode.el (antlr-options-alists):
* lisp/progmodes/flymake.el (flymake-parse-err-lines)
(flymake-start-syntax-check-process):
* lisp/progmodes/python.el (python-define-auxiliary-skeleton):
* lisp/progmodes/sql.el (sql-comint):
* lisp/progmodes/verilog-mode.el (verilog-load-file-at-point):
* lisp/server.el (server-get-auth-key):
* lisp/subr.el (version-to-list):
* lisp/textmodes/reftex-ref.el (reftex-label):
* lisp/textmodes/reftex-toc.el (reftex-toc-rename-label):
* lisp/vc/ediff-diff.el (ediff-same-contents):
* lisp/vc/vc-cvs.el (vc-cvs-mode-line-string):
* test/automated/tramp-tests.el (tramp-test33-asynchronous-requests):
Use directed rather than neutral quotes in diagnostics.

9 years agoTreat ' like ’ even when not matching `
Paul Eggert [Tue, 25 Aug 2015 06:37:18 +0000 (23:37 -0700)]
Treat ' like ’ even when not matching `

This is simpler and easier to explain, and should encourage better
typography.  Do this in Electric Quote mode and when translating
quotes in docstrings.  Inspired by a suggestion by Dmitry Gutov in:
https://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00806.html
* doc/emacs/text.texi (Quotation Marks):
* doc/lispref/help.texi (Keys in Documentation):
* etc/NEWS:
Document this.
* lisp/electric.el (electric-quote-post-self-insert-function):
* src/doc.c (Fsubstitute_command_keys):
Always treat ' like ’ even when not matched by an open quote.

9 years ago* doc/emacs/cal-xtra.texi (Holiday Customizing): Fix typo in example.
Glenn Morris [Tue, 25 Aug 2015 05:13:31 +0000 (22:13 -0700)]
* doc/emacs/cal-xtra.texi (Holiday Customizing): Fix typo in example.

* lisp/calendar/holidays.el (calendar-holidays): Fix doc typo.

9 years ago* src/macfont.m (macfont_create_family_with_symbol): Accept localized names.
YAMAMOTO Mitsuharu [Tue, 25 Aug 2015 02:06:27 +0000 (11:06 +0900)]
* src/macfont.m (macfont_create_family_with_symbol): Accept localized names.

9 years agoTramp diagnostics as per ‘text-quoting-style’
Paul Eggert [Tue, 25 Aug 2015 00:59:12 +0000 (17:59 -0700)]
Tramp diagnostics as per ‘text-quoting-style’

* lisp/net/tramp-adb.el (tramp-adb-handle-file-truename)
(tramp-adb-get-ls-command, tramp-adb-handle-make-directory)
(tramp-adb-handle-delete-directory)
(tramp-adb-handle-delete-file)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-copy-file)
(tramp-adb-send-command-and-check, tramp-adb-wait-for-output)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el:
* lisp/net/tramp-compat.el (tramp-compat-temporary-file-directory)
(tramp-compat-octal-to-decimal)
(tramp-compat-coding-system-change-eol-conversion):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler)
(tramp-gvfs-do-copy-or-rename-file)
(tramp-gvfs-handle-delete-directory)
(tramp-gvfs-handle-delete-file)
(tramp-gvfs-handle-expand-file-name)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-handle-make-directory)
(tramp-gvfs-handle-write-region, tramp-gvfs-url-file-name):
* lisp/net/tramp-gw.el (tramp-gw-gw-proc-sentinel)
(tramp-gw-aux-proc-sentinel, tramp-gw-open-connection):
* lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-set-file-modes)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-add-name-to-file, tramp-do-copy-or-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-sh-handle-make-directory)
(tramp-sh-handle-delete-directory, tramp-sh-handle-delete-file)
(tramp-sh-handle-insert-directory, tramp-process-sentinel)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch, tramp-maybe-send-script)
(tramp-find-file-exists-command, tramp-open-shell)
(tramp-find-shell)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-find-inline-compress)
(tramp-compute-multi-hops, tramp-maybe-open-connection)
(tramp-wait-for-output, tramp-send-command-and-check)
(tramp-send-command-and-read, tramp-get-remote-path)
(tramp-get-ls-command, tramp-get-ls-command-with-dired)
(tramp-get-ls-command-with-quoting-style)
(tramp-get-test-command, tramp-get-remote-ln)
(tramp-get-remote-perl, tramp-get-remote-stat)
(tramp-get-remote-readlink, tramp-get-remote-trash)
(tramp-get-remote-touch, tramp-get-remote-gvfs-monitor-dir)
(tramp-get-remote-inotifywait, tramp-get-remote-id)
(tramp-get-remote-python):
* lisp/net/tramp-smb.el (tramp-smb-errors)
(tramp-smb-handle-add-name-to-file, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-delete-file)
(tramp-smb-handle-file-local-copy)
(tramp-smb-handle-make-directory)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-make-symbolic-link)
(tramp-smb-handle-rename-file, tramp-smb-handle-set-file-acl)
(tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries):
* lisp/net/tramp.el (tramp-debug-message, tramp-error)
(tramp-process-actions):
Generate diagnostics according to ‘text-quoting-style’, by
using curved quotes in format strings and ‘format-message’
when appropriate.
* lisp/net/tramp-compat.el (format-message):
Define a replacement, if it’s an older version of Emacs
that doesn’t have it already.

9 years ago* etc/NEWS: Clarify text-quoting-style and electric-quote-mode.
Paul Eggert [Mon, 24 Aug 2015 15:19:41 +0000 (08:19 -0700)]
* etc/NEWS: Clarify text-quoting-style and electric-quote-mode.

9 years agoFix documentation for `save-excursion'
Xue Fuqiao [Mon, 24 Aug 2015 14:04:46 +0000 (22:04 +0800)]
Fix documentation for `save-excursion'

* doc/lispref/positions.texi (Excursions):
* doc/lispintro/emacs-lisp-intro.texi (save-excursion)
(Template for save-excursion, Point and mark): `save-excursion'
does not save&restore the mark any more.

9 years ago* lisp/net/tramp-sh.el (tramp-stat-marker, tramp-stat-quoted-marker):
Michael Albinus [Mon, 24 Aug 2015 12:26:57 +0000 (14:26 +0200)]
* lisp/net/tramp-sh.el (tramp-stat-marker, tramp-stat-quoted-marker):

New defconsts.
(tramp-do-file-attributes-with-stat)
(tramp-do-directory-files-and-attributes-with-stat): Use them.
(tramp-convert-file-attributes): Remove double slashes in symlinks.

* test/automated/tramp-tests.el (tramp-test18-file-attributes):
Handle symlinks with "//" in the file name.

9 years agoRevert fbb5531fa11d13854b274d28ccd329c9b6652cfc for tramp.el.
Michael Albinus [Mon, 24 Aug 2015 11:40:05 +0000 (13:40 +0200)]
Revert fbb5531fa11d13854b274d28ccd329c9b6652cfc for tramp.el.

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

9 years agoFix cl-subseq and cl-concatenate
Nicolas Petton [Mon, 24 Aug 2015 08:12:31 +0000 (10:12 +0200)]
Fix cl-subseq and cl-concatenate

* lisp/emacs-lisp/cl-extra.el (cl-subseq, cl-concatenate): Do not use
seq functions.
* lisp/emacs-lisp/seq.el (seq-concatenate): Call cl-concatenate in
seq-concatenate.

9 years ago; Fix two entries in ChangeLog.2
Martin Rudalics [Mon, 24 Aug 2015 07:48:56 +0000 (09:48 +0200)]
; Fix two entries in ChangeLog.2

9 years agoFix full-screen code when there is no window manager (Bug#21317)
Pip Cet [Mon, 24 Aug 2015 07:41:35 +0000 (09:41 +0200)]
Fix full-screen code when there is no window manager (Bug#21317)

* src/xterm.h (x_wm_supports): Declare external.
* src/xterm.c (wm_suppports): Rename to `x_wm_supports', export.
(do_ewmh_fullscreen, x_ewmh_activate_frame): Adjust for rename.
(x_check_fullscreen): Call `x_wm_set_size_hint', restore
`fullscreen' frame parameter.
* gtkutil.c (x_wm_set_size_hint): Set size hints when running
without a window manager.

Copyright-paperwork-exempt: yes

9 years ago; * doc/lispref/intro.texi (Version Info): Shorten line for 80 column terminal.
Glenn Morris [Mon, 24 Aug 2015 07:31:52 +0000 (00:31 -0700)]
; * doc/lispref/intro.texi (Version Info): Shorten line for 80 column terminal.

9 years ago* lisp/version.el (emacs-version): No longer include build host
Glenn Morris [Mon, 24 Aug 2015 07:27:53 +0000 (00:27 -0700)]
* lisp/version.el (emacs-version): No longer include build host

* doc/lispref/intro.texi (Version Info): Update example.

9 years ago* doc/lispref/elisp.texi: Fix typo in previous change.
Paul Eggert [Mon, 24 Aug 2015 06:35:45 +0000 (23:35 -0700)]
* doc/lispref/elisp.texi: Fix typo in previous change.

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.