1. 22 Jan, 2019 4 commits
    • Alan Mackenzie's avatar
      Extend electric-pair-mode actions to < and >, and also to ( and ) in literals · 9eaf5e05
      Alan Mackenzie authored
      * lisp/progmodes/cc-cmds.el (c-electric-lt-gt): Actuate electric-pair-mode if
      a < or > is typed in a context where this is meaningful (#include, or
      (c-electric-paren): Allow electric-pair-mode activity in a comment or string.
      * lisp/progmodes/cc-defs.el (c-make-keywords-re): Fix a bug where lists of
      source symbols could get overwritten when parameter adorn is set to
      * list/progmodes/cc-langs.el (c-cpp-include-key): New lang const and var.
    • Alan Mackenzie's avatar
    • Michael Albinus's avatar
      Make Tramp tests more robust · 6038fdb2
      Michael Albinus authored
      * test/lisp/net/tramp-tests.el (tramp-test06-directory-file-name):
      Bind `tramp-default-method'.
      (tramp--test-file-attributes-equal-p): New defsubst.
      (tramp-test19-directory-files-and-attributes): Use it.
    • Michael Albinus's avatar
      Respect setgid bit of the upper directory in Tramp · c5800815
      Michael Albinus authored
      * doc/misc/trampver.texi:
      * lisp/net/trampver.el: Change version to "2.4.2-pre".
      * lisp/net/tramp.el: Bump version to 2.4.2-pre.
      (tramp-set-file-uid-gid): Respect setgid bit of the upper directory.
      (tramp-default-file-modes, tramp-handle-insert-file-contents)
      (tramp-mode-string-to-int, tramp-make-tramp-temp-file):
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-local-copy)
      * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-directly)
      (tramp-sh-handle-write-region): Use octal constants.
  2. 21 Jan, 2019 8 commits
  3. 20 Jan, 2019 2 commits
    • Michael Albinus's avatar
      Use POSIX "df" in Tramp, if available · 5961e4fa
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-get-remote-df):
      Support also POSIX.1 "df".
      (tramp-sh-handle-file-system-info): Adapt accordingly.
    • Eli Zaretskii's avatar
      Support native image resizing on MS-Windows · 67b1053d
      Eli Zaretskii authored
      * src/w32term.c (x_draw_image_foreground): Scale the image if
      the requested dimensions are different from the bitmap
      * src/image.c (Fimage_scaling_p): Return t when HAVE_NTGUI.
      (x_set_image_size) [HAVE_NTGUI]: Record the scaled dimensions
      in the image struct.
      * src/dispextern.h (HAVE_NATIVE_SCALING): Define when
      HAVE_NTGUI as well.
      * etc/NEWS: Update the announcement of native image scaling.
  4. 19 Jan, 2019 8 commits
  5. 18 Jan, 2019 13 commits
    • João Távora's avatar
      Revert "Remove leftover from previous electric-layout-rules API" · 7717778e
      João Távora authored
      This is a backward-incompatible change, and removing it isn't really
      This reverts commit 942dad2b.
    • Stefan Monnier's avatar
      (electric-layout-post-self-insert-function-1): Simplify. · 78725e49
      Stefan Monnier authored
      Call electric--after-char-pos right from the start, and take advantage of the
      fact that it guarantees to return the right position or nil.
    • João Távora's avatar
      Ensure fns in electric-layout-rules are called in right position · 06215916
      João Távora authored
      * lisp/electric.el (electric-layout-rules): Ensure rules are
      called from right spot.
    • João Távora's avatar
      Remove leftover from previous electric-layout-rules API · 942dad2b
      João Távora authored
      An element of electric-layout-rules is either a function or a pair
      (CHAR . WHERE), and WHERE can't be a function anymore.
      * lisp/electric.el (electric-layout-post-self-insert-function-1):
      Remove leftover line.
    • Paul Eggert's avatar
      Port to platforms where NULL is a pointer · 7818bcdd
      Paul Eggert authored
      * src/image.c (x_create_x_image_and_pixmap):
      The Picture type is an integer, not a pointer.
      Come to think of it, Picture is really XID, and as
      far as I can tell, all-bits-one is the invalid XID,
      not all-bits-zero.  However that is a bigger issue;
      for now, this patch just unbreaks the build.
    • Eli Zaretskii's avatar
      Improve documentation of portable dumping · 6bac9ea1
      Eli Zaretskii authored
      * src/pdumper.c (Fdump_emacs_portable): Improve the doc string
      and the error messages.
      * doc/lispref/internals.texi (Building Emacs): Document
      portable dumping and the 'dump-emacs-portable' function.
    • Glenn Morris's avatar
      Merge from origin/emacs-26 · 957090b7
      Glenn Morris authored
      b6d78a0d (origin/emacs-26) Fix a typo in ELisp manual
      c9f6f868 Prevent redrawing if frame is garbaged
      00ba2267 Attempt to fix hangs on MS-Windows due to C-g
      b26d6373 Fix Calc graph output on MS-Windows
      03818b0a Fix a minor mistake in ELisp manual
      6ac59854 ; Fix some trivial doc typos
      21b90269 * etc/tutorials/TUTORIAL: Fix typo (bug#34049)
      d223727a Fix UI of Buffer-menu
      0f716557 Reinitialize ispell-really-enchant when changing the speller
      9845044f Speed up loading css-mode
    • Eli Zaretskii's avatar
      Clean up memory allocation and unexec support on MS-Windows · 5e3b0f52
      Eli Zaretskii authored
      * src/w32heap.c (report_temacs_memory_usage): Condition on
      !CANNOT_DUMP, in addition to ENABLE_CHECKING.
      (init_heap): Accept an argument, which tells us what heap
      allocation method to use.
      (DUMPED_HEAP_SIZE) [CANNOT_DUMP]: Define to a small value, as
      we don't use dumped_data[] in this case.
      * src/w32heap.h (init_heap): Adjust prototype.
      <using_dynamic_heap>: Remove declaration.
      * src/emacs.c (main) [WINDOWSNT]: Determine heap allocation
      method based on whether we are in temacs and whether unexec
      will be used to dump Emacs.  Pass the heap allocation method
      to init_heap, which is now called after parsing the
      --temacs=METHOD option.
      * src/unexw32.c (unexec): Don't fiddle with using_dynamic_heap.
      <using_dynamic_heap>: Remove definition.
      * src/w32proc.c (malloc_before_init, realloc_before_init)
      (free_before_init): New functions, to catch memory allocation
      before heap allocation method is set up.
    • Eli Zaretskii's avatar
      ; * etc/NEWS: Fix description of pdumper. · f9434091
      Eli Zaretskii authored
    • Eli Zaretskii's avatar
      Fix a typo in ELisp manual · b6d78a0d
      Eli Zaretskii authored
      * doc/lispref/nonascii.texi (Converting Representations): Fix
      inconsistency between @defun and the argument description of
      'byte-to-string'.  (Bug#34119)
    • Dmitry Gutov's avatar
      Rebase project-find-regexp on top of project-files · fbe87d0f
      Dmitry Gutov authored
      * lisp/progmodes/project.el (project--files-in-directory):
      New function.
      (project-files, project-find-regexp): Use it.
      (project--dir-ignores): New function.
      (project--find-regexp-in): Remove.
      (project--process-file-region): New function.
      (project--find-regexp-in-files): New function.
      (project-find-regexp, project-or-external-find-regexp): Use it, and
      project-files as well.
    • Dmitry Gutov's avatar
      ; Update the number · afc8a41f
      Dmitry Gutov authored
    • Dmitry Gutov's avatar
      Make 'project-files' the "canonical" generic of the two · d8da0916
      Dmitry Gutov authored
      * lisp/progmodes/project.el (project-files): Move the actual
      command building and invocation here.
      (project-file-completion-table): Delegate to 'project-files'.
  6. 17 Jan, 2019 5 commits
    • Stefan Monnier's avatar
      * lisp/textmodes/sgml-mode.el: Try and fix bug#33887. · e99a1241
      Stefan Monnier authored
      Remove redundant :group args.
      (sgml-syntax-propertize-rules): Speed up processing of most double quotes.
    • João Távora's avatar
      Fix electric-pair-tests by disabling bug#33794's fix with a variable · be505726
      João Távora authored
      The variable c--disable-fix-of-bug-33794, which should be removed in
      the short term in favor of a permanent solution, is introduced.
      It is bound to nil by default.  This means that breakage is still
      happening in actual c-mode and c++-mode usage, though the tests no
      longer show it.
      To get around this breakage, put
         (setq c--disable-fix-of-bug-33794 t)
      In your init file.  Evidently, you will lose the fix for bug#33794,
      but that only affects a small corner case of c-toggle-auto-newline,
      which is not turned on by default.
      See https://lists.gnu.org/archive/html/emacs-devel/2019-01/msg00360.html
      for more information.
      * lisp/progmodes/cc-cmds.el (c--disable-fix-of-bug-33794): New
      (c--with-post-self-insert-hook-maybe): New macro.
      (c-electric-pound, c-electric-brace, c-electric-slash)
      (c-electric-star, c-electric-semi&comma, c-electric-colon)
      (c-electric-lt-gt, c-electric-paren): Use it.
      (c-electric-paren, c-electric-brace): Check
      * test/lisp/electric-tests.el (c--disable-fix-of-bug-33794):
      Forward declare.
      (electric-modes-in-c-mode-with-self-insert-command): Use it.
    • João Távora's avatar
      Revert "Temporarily comment out CC Mode from tests..." · 4bdc0374
      João Távora authored
      This reverts commit 54f29790.
    • Martin Rudalics's avatar
      Fix wording in Window Hooks section of Elisp manual · e5663bea
      Martin Rudalics authored
      * doc/lispref/windows.texi (Window Hooks): Fix wording in
      description of window change functions.  Suggested by Robert
      Pluim <rpluim@gmail.com>.
    • Alan Third's avatar
      Be more specific with XRender bit-depths (bug#34051) · 03b8903e
      Alan Third authored
      * src/image.c (x_create_x_image_and_pixmap): Fail gracefully if a bit
      depth is requested that XRender doesn't support.