]> code.delx.au - gnu-emacs/log
gnu-emacs
8 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.

8 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>

8 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".

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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).

8 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).

8 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.

8 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'.

8 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

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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

8 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'.

8 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.

8 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.

8 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.

8 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

8 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.

8 years agoUpdate version number in header (now matches help)
Ronnie Schnell [Mon, 17 Aug 2015 19:30:15 +0000 (15:30 -0400)]
Update version number in header (now matches help)

8 years agoCurved quotes in --batch diagnostics in non-UTF-8
Paul Eggert [Mon, 17 Aug 2015 19:00:54 +0000 (12:00 -0700)]
Curved quotes in --batch diagnostics in non-UTF-8

When run with --batch, check that curved quotes are compatible with
the system locale before outputting them in diagnostics.
Problem reported by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00594.html
* lisp/startup.el (command-line): Set internal--text-quoting-flag
after the standard display table is initialized.
* src/doc.c (default_to_grave_quoting_style): New function.
(text_quoting_style): Use it.
(text_quoting_flag): New static var, visible to Lisp as
internal--text-quoting-flag.
* src/emacs.c: Include <wchar.h> if available.
(using_utf8): New function.
(main): Use it to initialize text_quoting_flag.
* src/regex.h (btowc) [WIDE_CHAR_SUPPORT && emacs]:
Don't define, as it's not needed and it clashes with wchar.h.

8 years ago* doc/misc/tramp.texi (Configuration): Reword to avoid warning
Glenn Morris [Mon, 17 Aug 2015 18:12:20 +0000 (14:12 -0400)]
* doc/misc/tramp.texi (Configuration): Reword to avoid warning

from makeinfo about spurious "Note:" cross-reference, and for grammar.

8 years agoMinor change in variable initialization on MS-Windows
Ilya Zakharevich [Mon, 17 Aug 2015 17:15:30 +0000 (20:15 +0300)]
Minor change in variable initialization on MS-Windows

* src/w32fns.c <after_dead_key>: Initialize to -1.
(deliver_wm_chars): If after_deadkey is zero, don't set after_dead
non-zero.

8 years agoFix a bug with LWindow key remapping on MS-Windows
Ilya Zakharevich [Mon, 17 Aug 2015 17:08:45 +0000 (20:08 +0300)]
Fix a bug with LWindow key remapping on MS-Windows

* src/w32fns.c (deliver_wm_chars): Fix a typo.  (Bug#21276)

8 years agoImprove fontset support for latest OTF script tags
Eli Zaretskii [Mon, 17 Aug 2015 16:58:28 +0000 (19:58 +0300)]
Improve fontset support for latest OTF script tags

* lisp/international/fontset.el (otf-script-alist): Add some
missing script tags.
(setup-default-fontset): Include settings for v2 versions of the
script tags used by some modern OTF/TTF fonts.

8 years agoSpelling fixes
Paul Eggert [Mon, 17 Aug 2015 06:52:30 +0000 (23:52 -0700)]
Spelling fixes

8 years ago; ChangeLog.2: Fix another Tramp commit
Michael Albinus [Sun, 16 Aug 2015 19:06:58 +0000 (21:06 +0200)]
; ChangeLog.2: Fix another Tramp commit

8 years ago; ChangeLog.2: Fix author of last Tramp commit
Michael Albinus [Sun, 16 Aug 2015 19:05:53 +0000 (21:05 +0200)]
; ChangeLog.2: Fix author of last Tramp commit

8 years agoUse curved quotes in core elisp diagnostics
Paul Eggert [Sun, 16 Aug 2015 15:59:50 +0000 (08:59 -0700)]
Use curved quotes in core elisp diagnostics

In the core elisp files, use curved quotes in diagnostic formats,
so that they follow user preference as per ‘text-quoting-style’
rather than being hard-coded to quote `like this'.
* lisp/abbrev.el (expand-region-abbrevs):
* lisp/button.el (button-category-symbol, button-put)
(make-text-button):
* lisp/cus-start.el:
* lisp/custom.el (custom-add-dependencies, custom-check-theme)
(custom--sort-vars-1, load-theme):
* lisp/emacs-lisp/byte-run.el (defun, defsubst):
* lisp/emacs-lisp/cl-generic.el (cl-defgeneric)
(cl-generic-generalizers):
* 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)
(advice--make, define-advice):
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-put-tag):
* lisp/emacs-lisp/timer.el (timer-event-handler):
* lisp/env.el (setenv):
* lisp/facemenu.el (facemenu-add-new-face)
(facemenu-add-new-color):
* lisp/faces.el (face-documentation, read-face-name)
(face-read-string, read-face-font, face-spec-set-match-display)
(read-color, x-resolve-font-name):
* lisp/files.el (locate-user-emacs-file, find-alternate-file)
(set-auto-mode, hack-local-variables)
(hack-one-local-variable--obsolete)
(dir-locals-set-directory-class, write-file)
(basic-save-buffer, delete-directory, copy-directory)
(recover-session, recover-session-finish, insert-directory)
(file-modes-char-to-who, file-modes-symbolic-to-number)
(move-file-to-trash):
* lisp/font-lock.el (font-lock-fontify-buffer):
* lisp/format.el (format-write-file, format-find-file)
(format-insert-file):
* lisp/frame.el (get-device-terminal, select-frame-by-name):
* lisp/fringe.el (fringe--check-style):
* lisp/help.el (describe-minor-mode-from-indicator):
* lisp/image.el (image-type):
* lisp/international/fontset.el (x-must-resolve-font-name):
* lisp/international/mule-cmds.el (prefer-coding-system)
(select-safe-coding-system-interactively)
(select-safe-coding-system, activate-input-method)
(toggle-input-method, describe-current-input-method):
* lisp/international/mule-conf.el (code-offset):
* lisp/mouse.el (minor-mode-menu-from-indicator):
* lisp/replace.el (query-replace-read-from)
(occur-after-change-function, occur-1):
* lisp/scroll-bar.el (scroll-bar-columns):
* lisp/simple.el (execute-extended-command)
(undo-outer-limit-truncate, compose-mail, set-variable)
(choose-completion-string, define-alternatives):
* lisp/startup.el (site-run-file, tty-handle-args, )
(command-line, command-line-1):
* lisp/subr.el (noreturn, define-error, add-to-list)
(read-char-choice):
* lisp/term/common-win.el (x-handle-xrm-switch)
(x-handle-name-switch, x-handle-args):
* lisp/term/x-win.el (x-handle-parent-id, x-handle-smid):
Use curved quotes in diagnostics.
* lisp/international/mule.el (find-auto-coding):
Use " to quote in a diagnostic, to be consistent with the rest of
this file.

8 years agoConvert lisp/term/x-win.el to UTF-8
Paul Eggert [Sun, 16 Aug 2015 15:34:44 +0000 (08:34 -0700)]
Convert lisp/term/x-win.el to UTF-8

* lisp/term/x-win.el: Convert to UTF-8.  This doesn't affect
runtime behavior, and the file is multilingual so compile-time
appearance shouldn't be an issue.
* admin/notes/unicode: Document this.

8 years ago; ChangeLog.2: Fix the entry about deleting makefile.w32-in
Eli Zaretskii [Sun, 16 Aug 2015 14:36:13 +0000 (17:36 +0300)]
; ChangeLog.2: Fix the entry about deleting makefile.w32-in

8 years agoUpdate verilog-mode.el to 2015-05-14-6232468-vpo-GNU.
Wilson Snyder [Sun, 16 Aug 2015 12:44:16 +0000 (08:44 -0400)]
Update verilog-mode.el to 2015-05-14-6232468-vpo-GNU.

    * losp/progmodes/verilog-mode.el: Fix some non-automated indent
    issues and comments, bug943.  (verilog-type-font-keywords): Cycle
    delay operators like ##1 and ##[0:$] are now highlighted in their
    entirety similarly to the # delay-control operator.  Likewise, the
    followed-by operators #-# and #=# are no longer partially
    highlighed.  (verilog-backward-syntactic-ws-quick,
    verilog-skip-backward-comments): Minor performance improvements to
    buffer traversal functions for reduced latency.  (verilog-calc-1,
    verilog-in-deferred-immediate-final-p): When the keyword 'final'
    follows 'assert/assume/cover', then it is part of a deferred
    immediate assertion item and should not be treated as a final
    construct for indentation.  Reported by Yuri Sugihara.
    (verilog-do-indent): Virtual task/function/class definition lines
    should not be considered as declarations.  Reported by Enzo Chi.
    (verilog-do-indent): Do not falsely indent to '=' of
    property/sequence operators on subsequent lines of a multi-line
    statement.  (verilog-assignment-operator-re): Fix '!==' operator
    and add support for '<->', ':/', '#-#', and '#=#' operators.
    (verilog-calculate-indent, verilog-label-be): Enable
    case-sensitive regular expression parsing when looking for
    keywords.  (verilog-calc-1): Detect 'pure virtual method'
    declarations which exist in abstract classes.  Reported by Enzo
    Chi and Kaushal Modi.  (verilog-backward-ws&directives): When
    moving back to the start of a line and the preceeding line ended
    with an escaped-newline, then jump up one line.  This properly
    consumes a multi-line pre-processor directive.  Reported by
    Kaushal Modi.  (verilog-dpi-import-export-re,
    verilog-extended-complete-re, verilog-calc-1): Teach verilog-mode
    to properly indent after a DPI import/export statement that
    resides outside of a module.  Reported by Kaushal Modi.
    (verilog-extended-complete-re): Update regexp to match both
    "DPI-C" and "DPI".  Reported by Kaushal Modi.

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

8 years agosubstitute-command-keys a few more doc strings
Paul Eggert [Sun, 16 Aug 2015 00:23:14 +0000 (17:23 -0700)]
substitute-command-keys a few more doc strings

* lisp/allout.el (outlineify-sticky):
* lisp/files.el (hack-one-local-variable--obsolete):
* lisp/help-fns.el (help-fns--obsolete, describe-variable):
Use substitute-command-keys on some doc strings so that
they don't use hard-coded key bindings or quoting styles.

8 years agoFix quoting in Fformat calls
Paul Eggert [Sun, 16 Aug 2015 00:16:28 +0000 (17:16 -0700)]
Fix quoting in Fformat calls

* src/image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load)
(xpm_load, xpm_load_image, 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):
Quote diagnostics according to user preference when calling
Fformat or its derivatives.

8 years ago* admin/admin.el (set-version, set-copyright): Remove deleted files.
Glenn Morris [Sat, 15 Aug 2015 17:40:06 +0000 (10:40 -0700)]
* admin/admin.el (set-version, set-copyright): Remove deleted files.

; * src/emacs,c, lib-src/ntlib.c: Comment updates.

8 years agoAllow describe-function helpers to access buffer-local values.
Stephen Leake [Sat, 15 Aug 2015 17:17:47 +0000 (12:17 -0500)]
Allow describe-function helpers to access buffer-local values.

This will be used by cedet/mode-local.el `describe-mode-local-override'
on `help-fns-describe-function-functions' in upstream CEDET.

* lisp/help-fns.el (describe-function-orig-buffer): New, let-bound in
`describe-function'.
(describe-function): Bind it, save it on the help xref stack.

8 years agoHandle pulse-background being nil
Stephen Leake [Sat, 15 Aug 2015 17:14:27 +0000 (12:14 -0500)]
Handle pulse-background being nil

* lisp/cedet/pulse.el (pulse-lighten-highlight): Inherit
pulse-background, handle it being nil.

8 years agoFix "\`" confusion in Lisp strings
Paul Eggert [Sat, 15 Aug 2015 15:35:02 +0000 (08:35 -0700)]
Fix "\`" confusion in Lisp strings

* admin/authors.el (authors-canonical-author-name):
Fix typo by using "\\`" not "\`" in string RE.
* lisp/obsolete/complete.el (PC-complete-as-file-name):
* lisp/obsolete/vi.el (vi-backward-blank-delimited-word):
* lisp/progmodes/verilog-mode.el (verilog-mode-map):
Use plain "`", not the equivalent-but-confusing "\`", in strings.
* lisp/textmodes/texinfmt.el: Fix comment likewise.

8 years agoRemove 'nt/zipdist.bat' (no longer used)
Dani Moncayo [Sat, 15 Aug 2015 13:36:08 +0000 (15:36 +0200)]
Remove 'nt/zipdist.bat' (no longer used)

* nt/zipdist.bat: Remove - no longer used.

8 years ago; Fix ChangeLog entries
Michael Albinus [Sat, 15 Aug 2015 11:09:41 +0000 (13:09 +0200)]
; Fix ChangeLog entries

8 years ago* lisp/net/tramp-sh.el (tramp-remote-selinux-p): Use "selinuxenabled"
Michael Albinus [Sat, 15 Aug 2015 11:00:01 +0000 (13:00 +0200)]
* lisp/net/tramp-sh.el (tramp-remote-selinux-p): Use "selinuxenabled"

rather than "getenforce".
(tramp-sh-handle-set-file-selinux-context): Do not
cache SELinux context if not all context components are given.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sat, 15 Aug 2015 10:22:39 +0000 (06:22 -0400)]
; Auto-commit of loaddefs files.

8 years agoAdd doc strings to 2 help-mode.el functions
Eli Zaretskii [Sat, 15 Aug 2015 08:26:36 +0000 (11:26 +0300)]
Add doc strings to 2 help-mode.el functions

* lisp/help-mode.el (help-mode-setup, help-mode-finish): Add doc
strings.  (Bug#21263)

8 years agoRemove files used by the old MS-Windows specific build procedure
Eli Zaretskii [Sat, 15 Aug 2015 07:56:51 +0000 (10:56 +0300)]
Remove files used by the old MS-Windows specific build procedure

* nt/configure.bat: Remove everything except the blurb about the
new build procedure.

* make-dist: Remove references to makefile.w32-in in various
directories, and to files in nt/ that were deleted.

* etc/NEWS: Mention the fact that the files were dropped.

8 years ago* doc/emacs/mule.texi (Charsets): Give fuller title for ISO-IR.
Paul Eggert [Sat, 15 Aug 2015 06:28:12 +0000 (23:28 -0700)]
* doc/emacs/mule.texi (Charsets): Give fuller title for ISO-IR.

(Bug#21248)

8 years agoDefault to inotify instead of gfile
Paul Eggert [Sat, 15 Aug 2015 01:20:35 +0000 (18:20 -0700)]
Default to inotify instead of gfile

* configure.ac (with_file_notification): Fix typo that
prevented suppression of file notification if HAVE_NS.
(NOTIFY_OBJ): Prefer inotify to gfile if both exist and
with_file_notification is 'yes' (Bug#21241).
* etc/NEWS: Mention this.

8 years agoFix broken URLs for ISO-IR
Paul Eggert [Sat, 15 Aug 2015 00:46:04 +0000 (17:46 -0700)]
Fix broken URLs for ISO-IR

* doc/emacs/mule.texi (Charsets):
* lisp/international/mule-conf.el:
Fix broken URL (Bug#21248).

8 years agoLow-level diagnostics now use ‘text-quoting-style’
Paul Eggert [Fri, 14 Aug 2015 22:50:36 +0000 (15:50 -0700)]
Low-level diagnostics now use ‘text-quoting-style’

* src/doprnt.c (doprnt):
Format ` and ' as per ‘text-quoting-style’.
* src/xdisp.c (vmessage, message): Mention that the format should
not contain ` or '.

8 years agoPrefer ‘format’ to ‘substitute-command-keys’
Paul Eggert [Fri, 14 Aug 2015 22:50:35 +0000 (15:50 -0700)]
Prefer ‘format’ to ‘substitute-command-keys’

* src/character.h (uLSQM, uRSQM): Move here ...
* src/doc.c (uLSQM, uRSQM): ... from here.
* src/doc.c (Fsubstitute_command_keys):
* src/syntax.c (Finternal_describe_syntax_value):
* lisp/cedet/mode-local.el (mode-local-print-binding)
(mode-local-describe-bindings-2):
* lisp/cedet/srecode/srt-mode.el (srecode-macro-help):
* lisp/cus-theme.el (describe-theme-1):
* lisp/descr-text.el (describe-text-properties-1, describe-char):
* lisp/emacs-lisp/cl-extra.el (cl--describe-class):
* lisp/emacs-lisp/cl-generic.el (cl--generic-describe):
* lisp/emacs-lisp/eieio-opt.el (eieio-help-constructor):
* lisp/emacs-lisp/package.el (describe-package-1):
* lisp/faces.el (describe-face):
* lisp/help-fns.el (help-fns--key-bindings)
(help-fns--compiler-macro, help-fns--parent-mode)
(help-fns--obsolete, help-fns--interactive-only)
(describe-function-1, describe-variable):
* lisp/help.el (describe-mode):
Prefer ‘format’ to ‘substitute-command-keys’ when either will do
to implement quoting style.  This generally makes the code simpler.

8 years agoExtend ‘format’ to translate curved quotes
Paul Eggert [Fri, 14 Aug 2015 22:50:35 +0000 (15:50 -0700)]
Extend ‘format’ to translate curved quotes

This is a followup to the recent doc string change, and deals with
diagnostics and the like.  This patch is more conservative than
the doc string change, in that the behavior of ‘format’ changes
only if its first arg contains curved quotes and the user prefers
straight or grave quotes.  (Come to think of it, perhaps we should
be similarly conservative with doc strings too, but that can wait.)
The upside of this conservatism is that existing usage is almost
surely unaffected.  The downside is that we'll eventually have to
change Emacs's format strings to use curved quotes in places where
the user might want curved quotes, but that's a simple and
mechanical translation that I'm willing to do later.  (Bug#21222)
* doc/lispref/help.texi (Keys in Documentation):
Move description of text-quoting-style from here ...
* doc/lispref/strings.texi (Formatting Strings):
... to here, and describe new behavior of ‘format’.
* etc/NEWS: Describe new behavior.
* lisp/calc/calc-help.el (calc-describe-thing):
* lisp/emacs-lisp/derived.el (derived-mode-make-docstring):
* lisp/info.el (Info-find-index-name):
Use ‘concat’ rather than ‘format’ to avoid misinterpretation
of recently-added curved quotes.
* src/doc.c (uLSQM0, uLSQM1, uLSQM2, uRSQM0, uRSQM1, uRSQM2):
Move from here ...
* src/lisp.h: ... to here.
* src/doc.c (text_quoting_style): New function.
(Fsubstitute_command_keys): Use it.
* src/editfns.c (Fformat): Implement new behavior.
* src/lisp.h (enum text_quoting_style): New enum.

8 years ago; Fix ChangeLog entry put into wrong file
Paul Eggert [Fri, 14 Aug 2015 22:21:23 +0000 (15:21 -0700)]
; Fix ChangeLog entry put into wrong file

8 years ago; make change-history-commit
Paul Eggert [Fri, 14 Aug 2015 22:18:02 +0000 (15:18 -0700)]
; make change-history-commit

8 years ago* src/keyboard.c: Use false/true instead of 0/1 for booleans
Stefan Monnier [Fri, 14 Aug 2015 19:29:11 +0000 (15:29 -0400)]
* src/keyboard.c: Use false/true instead of 0/1 for booleans

* src/keyboard.h (struct kboard): Mark kbd_queue_has_data as boolean.

8 years ago* tramp-sh.el (tramp-sh-handle-file-acl): Do not redirect stderr
Michael Albinus [Fri, 14 Aug 2015 19:14:15 +0000 (21:14 +0200)]
* tramp-sh.el (tramp-sh-handle-file-acl): Do not redirect stderr

to /dev/null, this is done in `tramp-send-command-and-check'.

8 years agoFlush file properties in Tramp.
Jürgen Hötzel [Fri, 14 Aug 2015 19:11:51 +0000 (21:11 +0200)]
Flush file properties in Tramp.

* lisp/net/tramp-sh.el (tramp-sh-handle-set-file-modes)
(tramp-sh-handle-set-file-times):
* lisp/net/tramp-adb.el (tramp-adb-handle-set-file-modes)
(tramp-adb-handle-set-file-times): Flush the file properties of
the directory.

8 years agoFixed typo in manual.
Ronnie Schnell [Fri, 14 Aug 2015 16:29:58 +0000 (12:29 -0400)]
Fixed typo in manual.

8 years agoFixed typo in manual.
Ronnie Schnell [Fri, 14 Aug 2015 16:29:28 +0000 (12:29 -0400)]
Fixed typo in manual.

8 years agoDon't miss warnings about removing string text properties while dumping
Eli Zaretskii [Fri, 14 Aug 2015 10:34:18 +0000 (13:34 +0300)]
Don't miss warnings about removing string text properties while dumping

* src/alloc.c (purecopy): Warn about removing a string's text
properties even when the same string was already pure-copied
earlier.

* lisp/progmodes/elisp-mode.el (elisp--xref-format)
(elisp--xref-format-extra): Fix the commentary.

8 years ago* lisp/progmodes/sh-script.el (sh-mode): Handle .cshrc (bug#21049)
Stefan Monnier [Thu, 13 Aug 2015 21:05:44 +0000 (17:05 -0400)]
* lisp/progmodes/sh-script.el (sh-mode): Handle .cshrc (bug#21049)

8 years ago* lisp/progmodes/compile.el: Assume 8-wide TABs (bug#21038)
Magnus Henoch [Thu, 13 Aug 2015 20:59:16 +0000 (16:59 -0400)]
* lisp/progmodes/compile.el: Assume 8-wide TABs (bug#21038)

* lisp/progmodes/compile.el: Use lexical-binding.
(compilation-move-to-column): Assume 8-wide TABs (bug#21038).

8 years ago(uniquify-ask-about-buffer-names-p): Remove, unused (bug#21037)
Stefan Monnier [Thu, 13 Aug 2015 20:53:49 +0000 (16:53 -0400)]
(uniquify-ask-about-buffer-names-p): Remove, unused (bug#21037)

* lisp/uniquify.el: Remove redundant `:group's.

8 years agoMake add_to_log varargs
Paul Eggert [Thu, 13 Aug 2015 20:48:28 +0000 (13:48 -0700)]
Make add_to_log varargs

* src/alloc.c (run_finalizer_handler):
* src/charset.c (load_charset_map_from_vector):
* src/nsimage.m (ns_load_image):
* src/xfaces.c (load_pixmap, load_color2):
Simplify, now that add_to_log has a variable number of args.
* src/image.c (image_error): Take a variable number of args.
Callers simplified.
* src/lisp.h (add_to_log, vadd_to_log): Adjust to new APIs.
* src/xdisp.c (format_nargs, vadd_to_log): New functions.
(add_to_log): Make varargs, and reimplement in terms of vadd_to_log.
* src/xfaces.c (merge_face_ref): Fix typo that omitted color name.

8 years agoOptional args for holiday-greek-orthodox-easter
Paul Eggert [Thu, 13 Aug 2015 19:16:25 +0000 (12:16 -0700)]
Optional args for holiday-greek-orthodox-easter

* etc/NEWS: Document this.
* lisp/calendar/holidays.el (holiday-greek-orthodox-easter):
Add optional args N and STRING, mimicking the API and code of
‘holiday-easter-etc’.  From suggestion by Foivos S. Zakkak (Bug#21256).

8 years ago; Fix caching problem in tramp-adb.el
Jürgen Hötzel [Thu, 13 Aug 2015 18:59:16 +0000 (20:59 +0200)]
; Fix caching problem in tramp-adb.el

* lisp/net/tramp-adb.el
(tramp-adb-handle-directory-files-and-attributes): Make a copy of
result to prevent modification of the tramp-cache by side effects.
Use the correct cache key.

8 years agoxref-find-definitions: Exclude more generic function items.
Stephen Leake [Thu, 13 Aug 2015 17:54:39 +0000 (12:54 -0500)]
xref-find-definitions: Exclude more generic function items.

* lisp/emacs-lisp/cl-generic.el (cl--generic-search-method): Add doc string.
(cl--generic-find-defgeneric-regexp): New.
(find-function-regexp-alist): Add it.

* lisp/emacs-lisp/find-func.el (find-feature-regexp): Move here from
elisp-mode.el, change to search for ";;; Code:"
(find-alias-regexp): Move here from elisp-mode.el, cleaned up.
(find-function-regexp-alist): Add them.

* lisp/progmodes/elisp-mode.el:
(elisp--xref-format, elisp--xref-format-extra): Change back to defvar due
to bug#21237.
(elisp--xref-find-definitions): Exclude co-located default methods for
generic functions. Also exclude implicitly declared defgeneric.
(elisp--xref-find-definitions): Handle C source properly. Exclude minor
mode variables defined by 'define-minor-mode'.

* test/automated/elisp-mode-tests.el: Declare generic functions, add
tests for them.
(xref-elisp-test-run): Fix bug.
(emacs-test-dir): Improve initial value.
(find-defs-defun-defvar-el): Don't expect defvar.
(find-defs-feature-el): Match change to find-feature-regexp.

8 years agoImprove warning about purecopy of strings with properties
Eli Zaretskii [Thu, 13 Aug 2015 14:36:38 +0000 (17:36 +0300)]
Improve warning about purecopy of strings with properties

* src/alloc.c (purecopy): Show the offending string with the
warning about removing its text properties.

8 years agoIntroduce new macros to cover Emacs's new names in cl-lib.el.
Alan Mackenzie [Wed, 12 Aug 2015 21:28:55 +0000 (21:28 +0000)]
Introduce new macros to cover Emacs's new names in cl-lib.el.

This also eliminates `mapcan' warnings in XEmacs.

progmodes/cc-defs.el (c--mapcan-status): new variable to characterise
[X]Emacs versions.
(top-level): Require either 'cl or 'cl-lib, depending on
c--mapcan-status.
Change this back to cc-external-require from an eval-when-compile
require.
(c--mapcan, c--set-difference, c--intersection, c--macroexpand-all)
(c--delete-duplicates): New macros which expand into either old or new
names.
(c-make-keywords-re, c-lang-defconst, c-lang-const) Use the new macros
rather than the old names.

progmodes/cc-engine.el (c-declare-lang-variables): Use c--mapcan rather
than mapcan.

progmodes/cc-fonts.el (c-compose-keywords-list): Use c--mapcan.

progmodes/cc-langs.el (top-level): Require either 'cl or 'cl-lib,
depending on c--mapcan-status.
(c-filter-ops, c-all-op-syntax-tokens, c-assignment-op-regexp)
(c-type-start-kwds, c-prefix-spec-kwds, c-specifier-key)
(c-not-decl-init-keywords, c-not-primitive-type-keywords)
(c-paren-any-kwds, c-<>-sexp-kwds, c-block-stmt-kwds, c-expr-kwds)
(c-decl-block-key, c-keywords, c-keywords-obarray)
(c-regular-keywords-regexp, c-primary-expr-regexp,
c-primary-expr-regexp)
(c-block-prefix-disallowed-chars, c-known-type-key,
c-nonlabel-token-key)
(c-make-init-lang-vars-fun): Use the new macros rather than the old
names.

8 years agoloadhist.el (read-feature): Conform to completing-read
Oleh Krehel [Wed, 12 Aug 2015 18:12:14 +0000 (20:12 +0200)]
loadhist.el (read-feature): Conform to completing-read

* lisp/loadhist.el (read-feature): According to `completing-read'
  documentation, if collection is a list, then it must be a list of
  strings. And not a list of symbols like before.

8 years agoDeal gracefully with up-events (Bug#19746)
David Kastrup [Wed, 28 Jan 2015 10:53:54 +0000 (11:53 +0100)]
Deal gracefully with up-events (Bug#19746)

* keyboard.c (apply_modifiers_uncached, parse_solitary_modifier)
(parse_modifiers_uncached): React gracefully to "up-" modifiers:
those may easily be injected by user-level Lisp code.
(read_key_sequence): Discard unbound up-events like unbound
down-events: they are even more likely only relevant for special
purposes.

While Emacs will not produce up-events on its own currently (those are
converted to drag or click events before being converted to
Lisp-readable structures), the input queue can be made to contain them
by synthesizing events to `unread-command-events'.  Emacs should deal
consistently with such events.

8 years agoFix display of thin lines whose newline has line-height property of t
Eli Zaretskii [Wed, 12 Aug 2015 15:55:38 +0000 (18:55 +0300)]
Fix display of thin lines whose newline has line-height property of t

* src/xdisp.c (append_space_for_newline): Don't try to fix ascent
and descent values of non-empty glyph rows, since they could have
forced low values deliberately.  (Bug#21243)

8 years agoOffer to combine multiple To or CC fields.
Richard Stallman [Wed, 12 Aug 2015 15:25:26 +0000 (11:25 -0400)]
Offer to combine multiple To or CC fields.

* sendmail.el (mail-combine-fields): New function.
(mail-send): Call 'mail-combine-fields'.

8 years agoDon't decrypt encrypted files.
Richard Stallman [Wed, 12 Aug 2015 15:24:30 +0000 (11:24 -0400)]
Don't decrypt encrypted files.

* mail-utils.el (mail-file-babyl-p): Bind epa-inhibit to t.

8 years agoHandle encrypted mbox files.
Richard Stallman [Wed, 12 Aug 2015 15:23:11 +0000 (11:23 -0400)]
Handle encrypted mbox files.

* rmailout.el (rmail-output-as-mbox): Decrypt and reencrypt the mbox
file if necessary.

8 years agoRe-enable mime processing after decryption. Add 'decrypt' keyword.
Richard Stallman [Wed, 12 Aug 2015 15:21:49 +0000 (11:21 -0400)]
Re-enable mime processing after decryption.  Add 'decrypt' keyword.

* rmail.el (rmail-epa-decrypt-1): New subroutine.
(rmail-epa-decrypt): rmail-epa-decrypt-1 broken out.
In a mime message, reenable Mime and show the parts that
were shown before.
Add keyword "decrypt" if anything decrypted.

8 years agoepa-inhibit inhibits auto-recognition of .gpg files
Richard Stallman [Wed, 12 Aug 2015 15:19:47 +0000 (11:19 -0400)]
epa-inhibit inhibits auto-recognition of .gpg files

* lisp/epa-file.el (epa-inhibit): New variable.
(epa-file-handler): Check epa-inhibit.

8 years ago* emacs-lisp/lisp-mnt.el (lm-header): save-excursion
Artur Malabarba [Wed, 12 Aug 2015 07:52:42 +0000 (08:52 +0100)]
* emacs-lisp/lisp-mnt.el (lm-header): save-excursion

8 years ago; python.el: Emacs 24.x compatibility fixes
Fabián Ezequiel Gallina [Wed, 12 Aug 2015 02:56:25 +0000 (23:56 -0300)]
; python.el: Emacs 24.x compatibility fixes

* lisp/progmodes/python.el: Provide compatibility alternatives for
prog-widen and prog-first-column.

8 years agoRespect python.el imenu when semantic-mode is off
Fabián Ezequiel Gallina [Wed, 12 Aug 2015 02:04:11 +0000 (23:04 -0300)]
Respect python.el imenu when semantic-mode is off

Fixes debbugs:21220

* lisp/cedet/semantic/wisent/python.el: Do not force
wisent-python-default-setup on python-mode-hook.

8 years agoGive names to Unicode code points in C code
Paul Eggert [Tue, 11 Aug 2015 22:53:18 +0000 (15:53 -0700)]
Give names to Unicode code points in C code

* src/character.h (NO_BREAK_SPACE, SOFT_HYPHEN)
(ZERO_WIDTH_NON_JOINER, ZERO_WIDTH_JOINER, HYPHEN)
(NON_BREAKING_HYPHEN, LEFT_SINGLE_QUOTATION_MARK)
(RIGHT_SINGLE_QUOTATION_MARK, PARAGRAPH_SEPARATOR)
(LEFT_POINTING_ANGLE_BRACKET, RIGHT_POINTING_ANGLE_BRACKET)
(LEFT_ANGLE_BRACKET, RIGHT_ANGLE_BRACKET)
(OBJECT_REPLACEMENT_CHARACTER):
New named constants for Unicode code points.
* src/bidi.c (bidi_fetch_char, CANONICAL_EQU):
* src/composite.c (char_composable_p):
* src/lread.c (readevalloop, read1):
* src/xdisp.c (get_next_display_element):
Use them.
* src/doc.c (LEFT_SINGLE_QUOTATION_POINT):
Remove; now in character.h.

8 years agoelisp--xref-find-definitions handle cl-defstuct default constructor
Stephen Leake [Tue, 11 Aug 2015 19:28:17 +0000 (14:28 -0500)]
elisp--xref-find-definitions handle cl-defstuct default constructor

* lisp/progmodes/elisp-mode.el (elisp-xref-find): Add FIXME.
(elisp--xref-format-extra): Rename from elisp--xref-format-cl-defmethod.
(elisp--xref-find-definitions): Handle cl-defstuct default constructor.

* test/automated/elisp-mode-tests.el (xref-elisp-test-run): Split out
from xref-elisp-test for ease of debugging.
(xref-elisp-deftest): Rename from xref-elisp-test.
(find-defs-constructor): New test.
(find-defs-defgeneric-el): Match batch test config.
(compile): Required for find-defs compilation-minor-mode test.
(find-defs-defvar-el): Match code change.
(find-defs-face-el): Match code change.

* lisp/progmodes/xref.el (xref-find-function, xref-find-definitions):
Improve doc string.

8 years ago* lisp/replace.el (perform-replace): Document `replacements'.
Stefan Monnier [Tue, 11 Aug 2015 15:43:10 +0000 (11:43 -0400)]
* lisp/replace.el (perform-replace): Document `replacements'.

(perform-replace): Move the description of the format of `replacements' from
the body's comment to the docstring.

8 years ago; Fix prompt in tramp-adb.el
Jürgen Hötzel [Tue, 11 Aug 2015 06:57:45 +0000 (08:57 +0200)]
; Fix prompt in tramp-adb.el

* lisp/net/tramp-adb.el (tramp-adb-prompt): Match leading escape
sequence.  Recent adb version send initial escape sequences, even
when terminal type is set to TERM=dumb.

8 years agoRewrite elisp--xref-find-definitions to handle many more cases; add tests.
Stephen Leake [Tue, 11 Aug 2015 02:53:19 +0000 (21:53 -0500)]
Rewrite elisp--xref-find-definitions to handle many more cases; add tests.

* lisp/progmodes/elisp-mode.el (elisp--xref-identifier-location): deleted
(elisp--xref-format-cl-defmethod): new
(find-feature-regexp): new
(find-alias-regexp): new
(elisp--xref-make-xref): new
(elisp--xref-find-definitions): Rewrite using the above, handle many more
cases. Always output all available definitions.
(xref-location-marker): No need for special cases.

* test/automated/elisp-mode-tests.el: Add more tests of
elisp--xref-find-definitions, improve current tests.

8 years ago* ChangeLog.2: Formatting update.
Phillip Lord [Mon, 10 Aug 2015 22:04:05 +0000 (23:04 +0100)]
* ChangeLog.2: Formatting update.

Formatting for one change entry did not follow standard ChangeLog
conventions and has now been updated.

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

8 years agoFix recording of events pushed onto unread-command-events
Eli Zaretskii [Mon, 10 Aug 2015 18:15:03 +0000 (21:15 +0300)]
Fix recording of events pushed onto unread-command-events

* src/keyboard.c (read_char): Make sure events read from
unread-command-events and unread-post-input-method-events are
always recorded by record_char.  Reported by David Kastrup
<dak@gnu.org>, see
http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00193.html.

8 years agoSet file buffer as current for "--file"
Samer Masterson [Mon, 10 Aug 2015 18:09:50 +0000 (11:09 -0700)]
Set file buffer as current for "--file"

* lisp/startup.el (command-line-1): Set file buffer as current before
it is displayed so it can be used with options like
"--eval".  (Bug#21095)

8 years agoAvoid setting LC_NUMERIC on MS-Windows to anything but "C"
Eli Zaretskii [Mon, 10 Aug 2015 17:01:31 +0000 (20:01 +0300)]
Avoid setting LC_NUMERIC on MS-Windows to anything but "C"

* src/emacs.c (synchronize_locale) [WINDOWSNT]: Call fixup_locale
after setting LC_ALL to the desired locale, to avoid affecting how
numbers are read and printed.  (Bug#21223)

8 years agoFix "Invalid search bound (wrong side of point)" in fontification.
Alan Mackenzie [Mon, 10 Aug 2015 16:54:35 +0000 (16:54 +0000)]
Fix "Invalid search bound (wrong side of point)" in fontification.

progmodes/cc-fonts.el (c-font-lock-declarators): After skipping an
initialization expression, check point is not beyond the fontification
limit.

8 years agoFix DPI calculation when Xft/DPI is default
Paul Eggert [Mon, 10 Aug 2015 06:23:14 +0000 (23:23 -0700)]
Fix DPI calculation when Xft/DPI is default

* src/xsettings.c (parse_settings): Don't use Xft/DPI default
value of -1, which evaluates to 2**32 - 1 (Bug#21152).
Remove unnecessary cast while we're in the neighborhood.

8 years ago; Fix xref--show-location, after regression in ee50e62
Dmitry Gutov [Mon, 10 Aug 2015 01:30:33 +0000 (04:30 +0300)]
; Fix xref--show-location, after regression in ee50e62