1. 14 Jun, 2021 2 commits
    • Michael Albinus's avatar
      Handle sensitive auto-save or backup remote files (Bug#45245) · 6536112b
      Michael Albinus authored
      * doc/misc/tramp.texi (Auto-save and Backup):
      Describe tramp-allow-unsafe-temporary-files.
      (Ad-hoc multi-hops): Use proper format.
      
      * etc/NEWS: Mention confirmation for writing sensitive auto-save
      or backup remote files to the local temporary directory..
      
      * lisp/net/tramp-cache.el (tramp-dump-connection-properties):
      Strengthen test.
      
      * lisp/net/tramp.el (tramp-allow-unsafe-temporary-files): New defcustom.
      (tramp-handle-find-backup-file-name)
      (tramp-handle-make-auto-save-file-name): Don't expose sensible
      auto-save or backup files on local temporary directory.  (Bug#45245)
      
      * test/lisp/net/tramp-tests.el (tramp--test-always): New defalias.
      (tramp-test10-write-region, tramp-test21-file-links)
      (tramp--test--deftest-direct-async-process): Use it.
      (tramp-test37-make-auto-save-file-name)
      (tramp-test38-find-backup-file-name): Extend tests.
      6536112b
    • pillule's avatar
      Improve handling of dedicated flag for side windows (Bug#48493) · d0c7d8bc
      pillule authored
      * doc/lispref/windows.texi (Buffers and Windows): Mention the
      special handling of side windows and add a reference.
      (Buffer Display Action Alists): Say explicitly that
      `display-buffer-in-side-window' is dedicating to side by default.
      (Dedicated Windows): Add case (4) and explain its meaning, add
      a reference.
      (Displaying Buffers in Side Windows): Move the paragraph about
      `switch-to-(prev|next)-buffer' into a new item to emphasize the
      special meaning of dedication for side windows.
      * lisp/window.el (set-window-buffer-start-and-point): Restore
      side dedication.
      (switch-to-prev-buffer, switch-to-next-buffer): Correct return
      value that should be nil instead of the same buffer in case of
      no change.
      (delete-windows-on): Restore side dedication.
      (replace-buffer-in-windows): Update the docstring, restore side
      dedication.
      (quit-restore-window): Rearrange the logic so that strongly
      dedicated windows are eventually deleted first.  Restore the
      side dedication.  In the final case try to
      `switch-to-prev-buffer' before deleting a window (Bug#48367).
      d0c7d8bc
  2. 13 Jun, 2021 7 commits
  3. 12 Jun, 2021 8 commits
    • Juri Linkov's avatar
    • Stefan Monnier's avatar
      EIEIO: Promote the CLOS behavior over the EIEIO-specific behavior · 4c655441
      Stefan Monnier authored
      Change docs to advertize `slot-value` rather than `oref`.
      Change the implementation of `:initform` to better match the CLOS semantics,
      while preserving the EIEIO semantics, but warn when encountering cases
      where the two diverge.
      Demote the mostly unused special semantics of `oref-default`
      on non-class allocated slots.
      
      * doc/misc/eieio.texi (Quick Start): Use `slot-value`.
      (Accessing Slots): Move `slot-value` before `oref`.
      Fix paren-typo in example (reported by pillule <pillule@riseup.net>).
      (Introspection): Remove mention of `class-slot-initarg`.
      
      * lisp/transient.el (transient--parse-group, transient--parse-suffix):
      Don't use `oref-default` to get the default value.
      (transient-lisp-variable): Init forms are evaluated.
      
      * lisp/emacs-lisp/eieio.el (defclass): Warn about inapplicable
      `:initarg` and about uses of init forms that are ambiguous.
      (oref): Don't advertize the deprecated use of initargs as slot names.
      (oref-default): Don't advertize the deprecated case where it returns the
      initform's value.
      (initialize-instance): Use `macroexp-const-p`.
      * lisp/emacs-lisp/eieio-core.el (eieio--unbound): Rename from
      `eieio-unbound`.
      (eieio--unbound-form): New var.
      (eieio--slot-override): Use it.
      (eieio-defclass-internal): Use it.  Change `init` so it should always
      be evaluated.
      (eieio--known-class-slot-names): New var.
      (eieio--eval-default-p): Rename from `eieio-eval-default-p`.
      (eieio--perform-slot-validation-for-default): Use `macroexp-const-p` to
      decide whether to skip the test.
      (eieio--add-new-slot): Register slot in `eieio--known-class-slot-names`
      when applicable.
      (eieio-oref-default, eieio-oset-default): Add warning for unknown slots
      and slots not known to be allocated to the class.
      (eieio-default-eval-maybe): Delete function.  Use just `eval` instead.
      (eieio-declare-slots): Allow slots to specify their allocation class.
      
      * lisp/cedet/srecode/insert.el (point): Declare the slot instead of
      moving the class definition before the slot's first use.
      (srecode-template-inserter-point, srecode-insert-fcn):
      Use nil instead of unbound for the `point` slot.
      
      * lisp/cedet/srecode/compile.el (srecode-template-inserter):
      Declare the `key` slot that all children should have.
      
      * lisp/emacs-lisp/eieio-speedbar.el (eieio-speedbar)
      (eieio-speedbar-directory-button, eieio-speedbar-file-button):
      * lisp/emacs-lisp/eieio-custom.el (eieio-widget-test-class):
      * lisp/emacs-lisp/chart.el (chart-bar):
      * lisp/cedet/semantic/ede-grammar.el (semantic-ede-proj-target-grammar):
      * lisp/cedet/semantic/db.el (semanticdb-project-database):
      * lisp/cedet/semantic/db-javascript.el (semanticdb-table-javascript)
      (semanticdb-project-database-javascript):
      * lisp/cedet/semantic/db-el.el (semanticdb-table-emacs-lisp)
      (semanticdb-project-database-emacs-lisp):
      * lisp/cedet/semantic/db-ebrowse.el (semanticdb-table-ebrowse)
      (semanticdb-project-database-ebrowse):
      * lisp/cedet/ede/proj.el (ede-proj-project):
      * lisp/cedet/ede/proj-obj.el (ede-proj-target-makefile-objectcode):
      * lisp/cedet/ede/generic.el (ede-generic-project):
      * lisp/cedet/ede/config.el (ede-project-with-config):
      * lisp/cedet/ede/base.el (ede-target, ede-project):
      * lisp/auth-source.el (auth-source-backend): Init forms are evaluated,
      so quote them accordingly.
      4c655441
    • Robert Pluim's avatar
      Make `window-system-for-display' work for ipv6, too · 0afab352
      Robert Pluim authored
      * lisp/term/x-win.el (display-format-alist): Also work for ipv6
      (bug#42045).
      0afab352
    • Lars Ingebrigtsen's avatar
      Clarify some browse-url doc strings · 099c7a0c
      Lars Ingebrigtsen authored
      * lisp/net/browse-url.el (browse-url-of-file)
      (browse-url-of-buffer, browse-url-of-region, browse-url)
      (browse-url-at-point, browse-url-at-mouse): Clarify doc strings
      (bug#42432).
      099c7a0c
    • Tassilo Horn's avatar
      Use file-in-directory-p instead of obsolete dired-in-this-tree-p · b425966b
      Tassilo Horn authored
      * lisp/dired-aux.el (dired-rename-subdir,dired-rename-subdir-1)
      (dired-insert-subdir,dired-insert-subdir-validate)
      (dired-kill-tree,dired-tree-down): Use file-in-directory-p instead of
      obsolete dired-in-this-tree-p.
      b425966b
    • Lars Ingebrigtsen's avatar
      Fix double (recursive) load of fortran.el · 6b5a7136
      Lars Ingebrigtsen authored
      * lisp/progmodes/fortran.el (fortran-menu): Move menu creation to
      the end to avoid a recursive load (bug#43116).
      6b5a7136
    • Alex Bochannek's avatar
      Mention nov-is-evil/nnvirtual combination in the Gnus manual · dd309417
      Alex Bochannek authored
      * doc/misc/gnus.texi (To From Newsgroups): Mention using separate
      select methods for different values (bug#48801).
      dd309417
    • Matt Beshara's avatar
      Add ability to bring only the selected frame to the front (bug#48865) · 57950515
      Matt Beshara authored
      Causes ‘ns-hide-emacs’ to layer the selected frame in front of every other
      application’s windows, and give that frame keyboard focus, when called with
      'activate-front.
      
      * src/nsfns.m (Fns_hide_emacs): Allow activating only selected frame.
      57950515
  4. 11 Jun, 2021 6 commits
  5. 10 Jun, 2021 3 commits
    • Eli Zaretskii's avatar
      Support mercury in 'ctags' as well · af4cccb8
      Eli Zaretskii authored
      The previous lack of support was due to incorrect calls to 'make_tag'
      in 'mercury_pr', which caused 'pfnote' to refrain from adding Mercury
      tags to the list of recorded tags.
      
      * lib-src/etags.c (mercury_pr): Pass the correct NAME and NAMELEN
      arguments to 'make_tag'.
      
      * test/manual/etags/CTAGS.good: Adjust to the above change.
      af4cccb8
    • Eli Zaretskii's avatar
      Improve documentation of 'M-y' · e27b531d
      Eli Zaretskii authored
      * doc/emacs/killing.texi (Yanking): Mention that TTY frames can
      also support yanking from the clipboard.
      (Earlier Kills): Finalize the documentation of the new behavior
      of the lone 'M-y'.  (Bug#48478)
      e27b531d
    • Martin Rudalics's avatar
      Provide new option `delete-window-set-selected' (Bug#47300) · b3dd0ce7
      Martin Rudalics authored
      When `delete-window' deletes its frame's selected window, this new
      option allows to choose another window as replacement.
      
      * lisp/window.el (get-lru-window, get-mru-window)
      (get-largest-window): New optional argument NO-OTHER.
      (window-at-pos): New function.
      (delete-window-set-selected): New option.
      (delete-window): Handle `delete-window-set-selected'.
      * src/window.c (Fdelete_window_internal): Set the selected
      window of WINDOW's frame to the first window on that frame and
      let `delete-window' choose a more suitable window instead.
      * doc/lispref/windows.texi (Deleting Windows): Describe new
      option `delete-window-set-selected'.
      (Cyclic Window Ordering): Describe new NO-OTHER argument for
      `get-lru-window', `get-mru-window' and `get-largest-window'.
      * etc/NEWS: Mention `delete-window-set-selected' and the NO-OTHER
      argument.
      b3dd0ce7
  6. 09 Jun, 2021 6 commits
    • Harald Jörg's avatar
      ; perl-mode.el: Detect quote-like operator immediately after => · dd9385b4
      Harald Jörg authored
      * lisp/progmodes/perl-mode.el (perl-syntax-propertize-function):
      Detect a quotelike operator immediately after a fat comma "=>"
      (Bug#25098)
      
      * test/lisp/progmodes/cperl-mode-tests.el (cperl-test-bug-25098):
      Test case for the bug with code from the bug report.
      
      * test/lisp/progmodes/cperl-mode-resources/cperl-bug-25098.pl:
      Resource file for the test.
      dd9385b4
    • Alan Third's avatar
      Remove pause on fullscreening in NS (bug#48406) · ff65ea93
      Alan Third authored
      * src/nsterm.m (ns_make_frame_visible):
      (ns_set_parent_frame):
      ([EmacsView windowWillEnterFullScreen:]):
      ([EmacsView windowDidEnterFullScreen:]):
      ([EmacsView windowWillExitFullScreen:]):
      ([EmacsView initFrameFromEmacs:]): Remove references to
      in_fullscreen_transition.
      ([EmacsView toggleFullScreen:]): Remove calls to removed methods.
      ([EmacsView inFullScreenTransition]):
      ([EmacsView waitFullScreenTransition]): Remove Methods.
      * src/nsterm.h (EmacsView): Remove defintions of removed methods, and
      the in_fullscreen_transition variable.
      ff65ea93
    • Glenn Morris's avatar
      * lib/Makefile.in (Makefile): Fix typo. · 5b68e7b4
      Glenn Morris authored
      5b68e7b4
    • Alan Third's avatar
      Fix image filename encoding issues (bug#48902) · fb62846b
      Alan Third authored
      * src/image.c (image_find_image_fd): Don't return an encoded filename
      string.
      * src/nsfns.m: ([NSString stringWithLispString:]): Clarify usage
      comment.
      * src/nsimage.m ([EmacsImage allocInitFromFile:]): No need to encode
      the filename when converting to NSString.
      fb62846b
    • Michael Albinus's avatar
      a63587c5
    • Jason Kim's avatar
      Handle auto-cd in shell-mode · e67883bc
      Jason Kim authored
      * lisp/shell.el (shell-has-auto-cd): New defcustom.
      (shell-directory-tracker): Handle implicit "cd".
      
      Copyright-paperwork-exempt: yes
      e67883bc
  7. 08 Jun, 2021 8 commits