1. 19 Aug, 2015 12 commits
    • Eli Zaretskii's avatar
      Improve and future-proof OTF fonts support in w32uniscribe.c · ae7cfd0b
      Eli Zaretskii authored
      * src/w32uniscribe.c (uniscribe_otf_capability): Add commentary
      about the expected results and why the new Uniscribe APIs are not
      used in this function.
      (ScriptGetFontScriptTags_Proc, ScriptGetFontLanguageTags_Proc)
      (ScriptGetFontFeatureTags_Proc): New function typedefs.
      (uniscribe_new_apis): New static variable.
      (uniscribe_check_features): New function, implements OTF features
      verification while correctly accounting for features in the list
      after the nil member, if any.
      (uniscribe_check_otf_1): New function, retrieves the features
      supported by the font for the requested script and language using
      the Uniscribe APIs available from Windows Vista onwards.
      (uniscribe_check_otf): If the new Uniscribe APIs are available,
      use them in preference to reading the font data directly.  Call
      uniscribe_check_features to verify that the requested features are
      supported, replacing the original incomplete code.
      (syms_of_w32uniscribe): Initialize function pointers for the new
      Uniscribe APIs.  (Bug#21260)
      (otf_features): Scan the script, langsys, and feature arrays back
      to front, so that the result we return has them in alphabetical
      order, like ftfont.c does.
      * src/w32fns.c (syms_of_w32fns) <w32-disable-new-uniscribe-apis>:
      New variable for debugging w32uniscribe.c code.
    • Artur Malabarba's avatar
      * isearch.el (isearch-search-fun-default): Revert a5bdb872 · 7eed7399
      Artur Malabarba authored
      Remove usage of `isearch-lax-whitespace' inside the `iearch-word'
      clause of `isearch-search-fun-default'. That lax variable does not
      refer to lax-whitespacing.  Related to (bug#21777).
      This reverts commit a5bdb872.
      * character-fold.el (character-fold-search): Set to nil
      Default to nil for now, until someone implements proper
      lax-whitespacing with char-fold searching.
    • Martin Rudalics's avatar
      Fix doc-string of `help-mode-finish'. · 7047d364
      Martin Rudalics authored
      * lisp/help-mode.el (help-mode-finish): Fix doc-string.
    • Martin Rudalics's avatar
      In nsimage.m include coding.h (Bug#21292) · 19cdde4a
      Martin Rudalics authored
      * src/nsimage.m (top-level): Include coding.h (Bug#21292).
    • Martin Rudalics's avatar
      Move window edge functions to Elisp. · f5a14da1
      Martin Rudalics authored
      * src/window.c (Fwindow_edges, Fwindow_pixel_edges)
      (Fwindow_absolute_pixel_edges, Fwindow_inside_edges)
      (Fwindow_inside_pixel_edges, Fwindow_inside_absolute_pixel_edges):
      Move to window.el.
      (calc_absolute_offset): Remove.
      * lisp/frame.el (frame-edges): New function.
      * lisp/window.el (window-edges, window-pixel-edges)
      (window-absolute-pixel-edges): Move here from window.c.
      (window-body-edges, window-body-pixel-edges)
      (window-absolute-body-pixel-edges): Move here from window.c and
      rename "inside" to "body".  Keep old names as aliases.
      (window-absolute-pixel-position): New function.
    • Katsumi Yamaoka's avatar
      [Gnus]: Use overlay functions directly · a83be20b
      Katsumi Yamaoka authored
      * 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)
      * 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)
      * lisp/gnus/gnus-util.el (gnus-put-overlay-excluding-newlines):
      * lisp/gnus/message.el (message-fix-before-sending)
      * 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)
    • Martin Rudalics's avatar
      In w32fns.c condition TITLEBAR_INFO declaration on WINDOWS version. · 62661fe7
      Martin Rudalics authored
      * 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>
    • Glenn Morris's avatar
    • Paul Eggert's avatar
      Use new q ‘format’ flag when fixing quotes in C · 87fbe1a6
      Paul Eggert authored
      * 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)
      * 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.
    • Paul Eggert's avatar
      New q flag for ‘format’ · 67de1b6f
      Paul Eggert authored
      * 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.
    • Daiki Ueno's avatar
      pinentry.el: Add debugging support · 85bc1074
      Daiki Ueno authored
      * 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.
    • Daiki Ueno's avatar
      pinentry.el: Improve multiline prompt · 93fb1783
      Daiki Ueno authored
      * lisp/net/pinentry.el (pinentry--prompt): Simplify the interface.
      (pinentry--process-filter): Use `pinentry--prompt' for CONFIRM
  2. 18 Aug, 2015 16 commits
    • Paul Eggert's avatar
      Fix multibyte confusion in diagnostics · aab8326b
      Paul Eggert authored
      * 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.
    • Paul Eggert's avatar
      Fix file name encodings in diagnostics · 63673686
      Paul Eggert authored
      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)
      * 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)
      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.
    • Dmitry Gutov's avatar
      Allow blink-matching-paren to jump off screen · 345284f5
      Dmitry Gutov authored
      * 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).
    • Dmitry Gutov's avatar
      Refine the previous change · 9c1e7d5a
      Dmitry Gutov authored
      * lisp/simple.el (blink-matching-open): Use minibuffer-message
      outside of save-excursion (bug#21286).
    • Martin Rudalics's avatar
      Rewrite and add frame geometry related functions. · c29a51df
      Martin Rudalics authored
      * 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,
      * src/nsfns.m (frame_geometry): New function.
      (Fx_frame_geometry): Call frame_geometry.
      (Fx_frame_edges): New function.
      (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.
    • Michael Albinus's avatar
      Improve Tramp's compatibility · ab759c22
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-get-method-parameter):
      * lisp/net/tramp-adb.el (tramp-adb-parse-device-names)
      * lisp/net/trampver.el (tramp-repository-get-version):
      Use `tramp-compat-replace-regexp-in-string'.
    • Pierre Téchoueyres's avatar
      * lisp/net/tramp-cmds.el (tramp-reporter-dump-variable): · 0e1711a0
      Pierre Téchoueyres authored
      Encode/decode string.
      Copyright-paperwork-exempt: yes
    • Phillip Lord's avatar
      ; Remove Entry from ChangeLog.2 · 07ebe425
      Phillip Lord authored
      This entry was about a formatting change to another ChangeLog
      entry and so shouldn't have been in the ChangeLog in the first place.
    • Paul Eggert's avatar
      Clarify what happens to match data on failure · 7a68ebe0
      Paul Eggert authored
      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
      * 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.
    • Daiki Ueno's avatar
      Revert "pinentry.el: Support external passphrase cache" · 9a1175cb
      Daiki Ueno authored
      This reverts commit e086e55a.
      pinentry.el shouldn't directly interact with the secrets service,
      but ask the caller to cache the passphrase.
    • Xue Fuqiao's avatar
      * doc/emacs/sending.texi (Mail Misc): Fix two index entries for · 9403daff
      Xue Fuqiao authored
      Message mode hooks.
    • Daiki Ueno's avatar
      epg.el: Make gpgconf output parsing future proof · 2b2eac26
      Daiki Ueno authored
      * lisp/epg.el (epg--start): Count the number of fields in "gpgconf
      --list-options" output.
    • Daiki Ueno's avatar
      pinentry.el: Support external passphrase cache · e086e55a
      Daiki Ueno authored
      * 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):
      (pinentry--send-passphrase): New function, split from
      (pinentry--process-filter): Use secrets.el to retrieve passphrase
      from login keyring.
    • Daiki Ueno's avatar
    • Daiki Ueno's avatar
      pinentry.el: Popup window for multiline prompt · 9bc75783
      Daiki Ueno authored
      * 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'.
    • Katsumi Yamaoka's avatar
      message.el: Silent the byte compiler · c24a067e
      Katsumi Yamaoka authored
      * 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.
  3. 17 Aug, 2015 11 commits
  4. 16 Aug, 2015 1 commit