1. 26 May, 2019 8 commits
  2. 25 May, 2019 9 commits
  3. 24 May, 2019 10 commits
  4. 23 May, 2019 8 commits
    • Michael Heerdegen's avatar
      Improve documentation of the 'function' special form · 84a3da15
      Michael Heerdegen authored
      Point out that 'function' quoting is beneficial also for symbols.
      
      * src/eval.c (function): Enhance docstring.
      * doc/lispref/functions.texi (Anonymous Functions): Improve
      documentation.
      84a3da15
    • Michael Heerdegen's avatar
      * lisp/emacs-lisp/cl-macs.el (cl-callf): Tweak in docstring · a564d6e8
      Michael Heerdegen authored
      Say that lambdas are also allowed as FUNC argument.
      a564d6e8
    • Paul Eggert's avatar
      Avoid backslash-newline-newline in source code · 54244364
      Paul Eggert authored
      * etc/refcards/Makefile (PDF_FRENCH):
      * lib-src/etags.c (LOOP_ON_INPUT_LINES):
      * lisp/dabbrev.el (dabbrev-check-other-buffers):
      * lisp/org/org-id.el (org-id-link-to-org-use-id):
      * lisp/org/org.el (org-support-shift-select, org-file-apps):
      * src/alloc.c (CHECK_ALLOCATED_AND_LIVE)
      (CHECK_ALLOCATED_AND_LIVE_SYMBOL):
      * src/frame.h (FRAME_PIXEL_WIDTH_TO_TEXT_COLS):
      * src/regex-emacs.c (PREFETCH_NOLIMIT):
      * src/window.h (WINDOW_BUFFER):
      Remove backslash-newline that immediately precedes another
      newline, as this is not the usual style and is confusing.
      54244364
    • Eli Zaretskii's avatar
      Unbreak display of characters on MS-Windows · 38564f8a
      Eli Zaretskii authored
      * src/w32font.c (w32font_draw): Convert the glyph_string's
      char2b array to 16-bit WCHAR data that ExtTextOutW needs.
      38564f8a
    • Stefan Monnier's avatar
      * lisp/cedet/srecode/insert.el: Use lexical-binding · 627fa5a0
      Stefan Monnier authored
      (srecode-insert-method): No need for lexical-let any more.
      627fa5a0
    • Stefan Monnier's avatar
    • YAMAMOTO Mitsuharu's avatar
      Make Cairo build obey hint-style font setting (Bug#35781) · 03feb937
      YAMAMOTO Mitsuharu authored
      * src/ftfont.h (ftfont_open2): Remove extern.
      (ftfont_fix_match, ftfont_add_rendering_parameters)
      (ftfont_entity_pattern): Add externs.
      (struct font_info): Remove member bitmap_strike_index.
      (struct font_info) [USE_CAIRO]: Remove member ft_size_draw.  All uses removed.
      Add member bitmap_position_unit.
      
      * src/xftfont.c (xftfont_fix_match, xftfont_add_rendering_parameters): Move
      functions from here ...
      * src/ftfont.c (ftfont_fix_match, ftfont_add_rendering_parameters): ... to
      here.  All uses changed.
      * src/xftfont.c (xftfont_open): Extract FcPattern creation from font entity
      from here ...
      * src/ftfont.c (ftfont_entity_pattern):	... to here.
      * src/xftfont.c (syms_of_xftfont): Move DEFSYMs for Fontconfig's rendering
      parameters from here ...
      * src/ftfont.c (syms_of_ftfont): ... to here.
      
      * src/ftfont.c (ftfont_open, ftfont_open2): Undo introduction of
      bitmap_strike_index.  Merge functions into ftfont_open.
      
      * src/ftcrfont.c (ftcrfont_open): Align code with xftfont_open rather than
      ftfont_open.
      (ftcrfont_close): Likewise.
      (ftcrfont_has_char, ftcrfont_encode_char):
      (ftcrfont_otf_capability) [HAVE_LIBOTF]:
      (ftcrfont_variation_glyphs) [HAVE_OTF_GET_VARIATION_GLYPHS]: New functions.
      (ftcrfont_driver): Register them.
      (ftcrfont_get_bitmap, ftcrfont_anchor_point):
      (ftcrfont_shape) [HAVE_M17N_FLT && HAVE_LIBOTF]: Use bitmap_position_unit
      instead of bitmap_strike_index to screen bitmap fonts.
      (ftcrfont_get_bitmap, ftcrfont_anchor_point):
      (ftcrfont_otf_capability) [HAVE_LIBOTF]:
      (ftcrfont_shape) [HAVE_M17N_FLT && HAVE_LIBOTF]:
      (ftcrfont_variation_glyphs) [HAVE_OTF_GET_VARIATION_GLYPHS]: Temporarily
      assign ftcrfont_info->ft_size and call corresponding ftfont functions.
      (ftcrfont_draw): Don't flush cairo surface when exporting.
      03feb937
    • Basil L. Contovounesios's avatar
      Fix url-copy-file argument handling · 72047556
      Basil L. Contovounesios authored
      For discussion, see the following thread:
      https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00500.html
      * lisp/url/url-handlers.el: Update autoloaded docstrings.
      Quote function symbols as such.
      (url-handler-regexp): Make grouping construct shy.
      (url-file-handler, url-insert-buffer-contents)
      (url-handlers-create-wrapper, url-handlers-set-buffer-mode):
      Simplify.
      (url-file-handler-identity): Clarify calling convention.
      (file-name-absolute-p, url-file-local-copy): Mark ignored arguments
      as such.
      (url-handler-directory-file-name): Prefer string comparison over
      regexp match where either will do.
      (url-copy-file): Handle integer as third argument as per copy-file.
      72047556
  5. 22 May, 2019 5 commits
    • Stefan Monnier's avatar
      * lisp/textmodes/sgml-mode.el: Fix lone `>` in sgml text · 70839740
      Stefan Monnier authored
      (sgml--syntax-propertize-ppss):New variable and function.
      (sgml-syntax-propertize-rules): Use it.
      Don't ignore quotes not followed by a matching quote or a '>' or '<'.
      (sgml-syntax-propertize): Set up sgml--syntax-propertize-ppss.
      
      * test/lisp/textmodes/sgml-mode-tests.el (sgml-tests--quotes-syntax):
      Add test for lone '>'.
      70839740
    • Dmitry Gutov's avatar
      Make xref-find-definitions more customizable · 1cadab78
      Dmitry Gutov authored
      * lisp/progmodes/xref.el (xref--show-defs-buffer): New function.
      Move a bit of logic from xref--show-defs to make it more
      customizable.
      (xref--push-markers): New function, extracted from
      xref--show-xrefs.
      (xref-show-definitions-function): Set to the new function.
      1cadab78
    • Dmitry Gutov's avatar
      Separate xref-find-definitions' behavior from other commands · 49a363c8
      Dmitry Gutov authored
      * lisp/progmodes/xref.el (xref-show-definitions-function):
      New variable.
      (xref--show-defs): Split off from xref--show-xrefs.
      (xref--find-definitions): Use it.
      (xref--not-found-error): New function.
      (xref--show-xrefs): Simplify.  Show the list buffer even when
      there is just one item in the list.  Remove the last argument.
      
      * lisp/dired-aux.el (dired-do-find-regexp): Update accordingly.
      49a363c8
    • Paul Eggert's avatar
      Remove fixnum restriction on some display vars · dfed333b
      Paul Eggert authored
      This is a minor patch to remove some fixnum restrictions.
      Many more such patches are needed, but one thing at a time.
      * doc/emacs/custom.texi (Examining): Update fill-column example.
      * src/buffer.c (fill-column, left-margin, tab-width)
      (buffer-saved-size, left-margin-width, right-margin-width)
      (left-fringe-width, right-fringe-width, scroll-bar-width)
      (scroll-bar-height, buffer-display-count):
      Allow any integer; do not restrict to fixnums.
      * src/character.h (SANE_TAB_WIDTH): Do not assume tab_width
      is a nonnegative fixnum.
      (sanitize_tab_width): Take a Lisp_Object integer, not an
      EMACS_INT.  Only use changed.
      * src/data.c (store_symval_forwarding): Remove unnecessary
      SYMBOLP since the predicate (e.g., Qintegerp) is always a
      symbol (leave the test in as an eassert).  Avoid assignments
      inside if-conditions.
      * src/fileio.c (Fdo_auto_save): Do not assume
      buffer-saved-size is a fixnum.  Avoid undefined behavior
      on EMACS_INT overflow by multiplying a fixnum by at most 4,
      not by at most 13.
      * src/window.c (set_window_buffer): When buffer-display-count
      is too large for a fixnum, make it a bignum.
      * src/xdisp.c (FILL_COLUMN_INDICATOR_NEEDED): Remove macro, ...
      (fill_column_indicator_column): ... replacing with this new function.
      All uses changed.  The function is a bit pickier, to prevent
      problems with non-character fixnums and columns out of range
      for int, and to remove the assumption that integers are in
      fixnum range.
      (append_space_for_newline, extend_face_to_end_of_line):
      Avoid undefined behavior with signed integer overflow.
      Simplify.
      dfed333b
    • Glenn Morris's avatar
      Merge from origin/emacs-26 · 5c21832a
      Glenn Morris authored
      b0da9151 (origin/emacs-26, emacs-26) Fix a typo in ELisp manual
      400907b3 Add option to disable help completion autoloading (Bug#28607)
      122ba168 Don't segfault on force-window-update of deleted window
      015b12eb Fix typo in ELisp manual
      eadf044e Remove repeated function call in picture.el
      1228a90c ; Fix mm-destroy-parts docstring typo
      6cfd68d4 Fix Hideshow key binding typo in Emacs manual
      5c21832a