1. 21 Aug, 2015 9 commits
    • Paul Eggert's avatar
      Follow user preference in calendar diagnostics · 8c01e889
      Paul Eggert authored
      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.
      8c01e889
    • Michael Albinus's avatar
      * src/gfilenotify.c (Fgfile_add_watch): · 21c2b4ac
      Michael Albinus authored
      Handle errors from g_file_monitor.
      21c2b4ac
    • Martin Rudalics's avatar
      In frames.texi use "minibuffer-less frame" instead of "non-minibuffer frame" · b77bdb50
      Martin Rudalics authored
      * doc/lispref/frames.texi (Frame Layout): Use "minibuffer-less
      frame" instead of "non-minibuffer frame".
      b77bdb50
    • Martin Rudalics's avatar
      Fix frame geometry related text · e656b511
      Martin Rudalics authored
      * doc/lispref/frames.texi (Frame Layout): Rename
      `x-frame-geometry' to `frame-geometry'.
      * doc/lispref/frames.texi (Mouse Position):
      * doc/lispref/windows.texi (Coordinates and Windows): Use
      `set-mouse-absolute-pixel-position' instead of
      `x-set-mouse-absolute-pixel-position'.
      e656b511
    • Martin Rudalics's avatar
      Sanitize frame geometry related functions · df9b29ed
      Martin Rudalics authored
      * src/nsfns.m (Fx_frame_geometry): Rename to Fns_frame_geometry.
      (Fx_frame_edges): Rename to Fns_frame_edges.
      * src/w32fns.c (Fx_frame_geometry): Rename to Fw32_frame_geometry.
      (Fx_frame_edges): Rename to Fw32_frame_edges.
      (Fx_mouse_absolute_pixel_position): Rename to
      Fw32_mouse_absolute_pixel_position.
      (Fx_set_mouse_absolute_pixel_position): Rename to
      Fw32_set_mouse_absolute_pixel_position.
      * lisp/frame.el (x-frame-geometry, w32-frame-geometry)
      (ns-frame-geometry, x-frame-edges, w32-frame-edges)
      (ns-frame-edges, w32-mouse-absolute-pixel-position)
      (x-mouse-absolute-pixel-position)
      (w32-set-mouse-absolute-pixel-position)
      (x-set-mouse-absolute-pixel-position): Declare.
      (frame-geometry, mouse-absolute-pixel-position)
      (set-mouse-absolute-pixel-position): New functions.
      (frame-edges): Rewrite in terms of x-/w32-/ns-frame-edges.
      df9b29ed
    • Eli Zaretskii's avatar
      Fix MinGW64 build broken by latest w32uniscribe.c changes · 092e17b1
      Eli Zaretskii authored
      * src/w32uniscribe.c (UNISCRIBE_OPENTYPE): Define to 0x0100, for
      MinGW64.  Reported by Andy Moreton <andrewjmoreton@gmail.com>.
      (Bug#21260)
      092e17b1
    • Tassilo Horn's avatar
      Add TeX defaults for prettify-symbol-mode · ff2f35fc
      Tassilo Horn authored
      * lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Rename
      from tex-prettify-symbols-alist.
      (tex--prettify-symbols-compose-p): New function.
      (tex-common-initialization): Use them as prettify-symbols-alist
      and prettify-symbols-compose-predicate.
      ff2f35fc
    • Tassilo Horn's avatar
      Generalize prettify-symbols to arbitrary modes · c88063fa
      Tassilo Horn authored
      * lisp/progmodes/prog-mode.el
      (prettify-symbols-default-compose-p): New function.
      (prettify-symbols-compose-predicate): New variable.
      (prettify-symbols--compose-symbol): Use it.
      c88063fa
    • Paul Eggert's avatar
      Don't quote symbols 'like-this' in docstrings etc. · 760701eb
      Paul Eggert authored
      * admin/unidata/uvs.el (uvs-insert-fields-as-bytes):
      * lisp/allout-widgets.el (allout-widgets-count-buttons-in-region):
      * lisp/allout.el (allout-add-resumptions, allout-mode):
      * lisp/calculator.el (calculator-operators):
      * lisp/cedet/data-debug.el (dd-propertize):
      * lisp/cedet/ede/proj-prog.el (ede-proj-target-makefile-program):
      * lisp/cedet/semantic/analyze/debug.el:
      (semantic-analyzer-debug-global-miss-text):
      * lisp/cedet/semantic/lex-spp.el:
      (semantic-lex-spp-replace-or-symbol-or-keyword):
      * lisp/cedet/semantic/symref.el:
      (semantic-symref-cleanup-recent-buffers-fcn):
      * lisp/cedet/semantic/tag.el (semantic-tag-class):
      * lisp/cedet/srecode/el.el (srecode-semantic-handle-:el-custom):
      * lisp/gnus/nnmairix.el (nnmairix-propagate-marks-upon-close):
      * lisp/gnus/pop3.el (pop3-authentication-scheme):
      * lisp/help-fns.el (describe-function-orig-buffer):
      * lisp/imenu.el (imenu--history-list):
      * lisp/mail/feedmail.el (feedmail-confirm-outgoing)
      (feedmail-display-full-frame, feedmail-deduce-bcc-where)
      (feedmail-queue-default-file-slug)
      (feedmail-queue-buffer-file-name):
      * lisp/net/mairix.el (mairix-searches-mode-map):
      * lisp/net/newst-backend.el (newsticker-retrieval-method)
      (newsticker-auto-mark-filter-list):
      * lisp/obsolete/vi.el (vi-mode):
      * lisp/progmodes/cc-engine.el (c-literal-type):
      * lisp/progmodes/cpp.el (cpp-face):
      * lisp/progmodes/ebrowse.el (ebrowse-electric-list-looper):
      * lisp/progmodes/elisp-mode.el (elisp--xref-make-xref):
      * lisp/progmodes/pascal.el (pascal-auto-lineup):
      * lisp/progmodes/prog-mode.el (prog-widen):
      * lisp/progmodes/verilog-mode.el (verilog-regexp-words)
      (verilog-auto-lineup, verilog-auto-reset-widths)
      (verilog-auto-arg-format, verilog-auto-inst-template-numbers):
      * lisp/textmodes/flyspell.el (flyspell-maybe-correct-transposition)
      (flyspell-maybe-correct-doubling):
      * lisp/textmodes/table.el (table-justify, table-justify-cell)
      (table-justify-row, table-justify-column, table-insert-sequence)
      (table--justify-cell-contents):
      * lisp/url/url-auth.el (url-get-authentication):
      * lisp/window.el (display-buffer-record-window):
      * lisp/xml.el (xml-parse-file, xml-parse-region):
      * src/gfilenotify.c (Fgfile_add_watch):
      Don't quote symbols with apostrophes in doc strings.
      Use asymmetric quotes instead.
      * lisp/cedet/semantic/complete.el (semantic-displayor-show-request):
      Likewise for symbol in diagnostic.
      * lisp/image.el (image-extension-data):
      * lisp/register.el (frame-configuration-to-register):
      * src/buffer.c (syms_of_buffer):
      Remove bogus apostrophes after symbols.
      * lisp/thumbs.el (thumbs-conversion-program):
      Quote Lisp string values using double-quotes, not apostrophes.
      760701eb
  2. 20 Aug, 2015 6 commits
  3. 19 Aug, 2015 14 commits
    • Alan Mackenzie's avatar
      Make electric-pair-mode, delete-selection-mode and CC Mode cooperate. · 82a3da21
      Alan Mackenzie authored
      Fixes debbugs#21275.
      
      In Emacs >= 25, let electric-pair-mode take precedence over
      delete-selection-mode.
      delsel.el (delete-selection-uses-region-p): New function, previously a
      lambda expression in a property value for `self-insert-command'.
      (top-level) Set the `delete-selection' property of `self-insert-command'
      to `delete-selection-uses-region-p'.
      
      progmodes/cc-cmds.el (top-level): Give the `delete-selection' property
      for c-electric-\(brace\|paren\) the value `delete-selection-uses-region-p'
      when the latter function exists.
      82a3da21
    • Paul Eggert's avatar
      Fix key binding quoting in tutorial *Help* · ec07cfbe
      Paul Eggert authored
      * lisp/tutorial.el (tutorial--describe-nonstandard-key):
      When generating help for custom key bindings, use the user-preferred
      quoting style rather than hardcoding the grave style.
      ec07cfbe
    • 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.
      ae7cfd0b
    • 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.
      7eed7399
    • 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.
      7047d364
    • 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).
      19cdde4a
    • 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.
      f5a14da1
    • 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)
      (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.
      a83be20b
    • 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>
      62661fe7
    • 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)
      (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.
      87fbe1a6
    • 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.
      67de1b6f
    • 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.
      85bc1074
    • 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
      command.
      93fb1783
  4. 18 Aug, 2015 11 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.
      aab8326b
    • 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)
      (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.
      63673686
    • 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).
      345284f5
    • 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).
      9c1e7d5a
    • 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,
      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.
      c29a51df
    • 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)
      (tramp-adb-get-device):
      * lisp/net/trampver.el (tramp-repository-get-version):
      Use `tramp-compat-replace-regexp-in-string'.
      ab759c22
    • 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
      0e1711a0
    • 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.
      07ebe425
    • 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
      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.
      7a68ebe0
    • 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.
      9a1175cb
    • Xue Fuqiao's avatar
      * doc/emacs/sending.texi (Mail Misc): Fix two index entries for · 9403daff
      Xue Fuqiao authored
      Message mode hooks.
      9403daff