1. 28 May, 2020 1 commit
  2. 27 May, 2020 1 commit
    • Simen Heggestøyl's avatar
      Simplify the previous commit · b7dffcb5
      Simen Heggestøyl authored
      * lisp/progmodes/project.el (project--read-project-list): Simplify the
      previous commit by utilizing the optional OMIT-NULLS argument to
  3. 26 May, 2020 21 commits
    • Simen Heggestøyl's avatar
      Avoid adding the empty string to the project list · 449810bb
      Simen Heggestøyl authored
      * lisp/progmodes/project.el (project--read-project-list): Avoid adding
      the empty string to the project list.
    • Simen Heggestøyl's avatar
      Adapt project functions to the new 'project-root' · 5a48ede3
      Simen Heggestøyl authored
      * lisp/progmodes/project.el (project-dired, project-eshell)
      (project--read-project-list, project--write-project-list)
      (project--remove-from-project-list): Adapt to the new 'project-root'.
    • Dmitry Gutov's avatar
      Some copy edits · e37e6c8d
      Dmitry Gutov authored
      * doc/emacs/maintaining.texi (Switching Projects)
      (Project File Commands): Copy edits.
      * etc/NEWS: Same.
    • Dmitry Gutov's avatar
      Teach project-current to inhibit the prompt · 0b057ca9
      Dmitry Gutov authored
      * lisp/progmodes/project.el:
      (project-current-inhibit-prompt): New variable.
      (project-current, project-switch-project): Use it.
    • Simen Heggestøyl's avatar
      Update the Emacs manual with recent project.el changes · 0db801a3
      Simen Heggestøyl authored
      * doc/emacs/maintaining.texi (Projects): Add a menu.
      (Project File Commands): New subsection describing project file
      commands (moved here from 'Working with Projects').  Describe the new
      commands 'project-dired' and 'project-eshell'.
      (Switching Projects): New subsection.
      * etc/NEWS: Mention project.el changes.
    • Simen Heggestøyl's avatar
      Rename 'project-switch-menu' to 'project-switch-commands' · 70824683
      Simen Heggestøyl authored
      * lisp/progmodes/project.el (project-switch-commands): Rename from
      (project--keymap-prompt, project-switch-project): Update after the
    • Simen Heggestøyl's avatar
      Simplify 'project--keymap-prompt' a bit · c6e80fdb
      Simen Heggestøyl authored
      * lisp/progmodes/project.el: Remove seq requirement.
      (project--keymap-prompt): Simplify with 'mapconcat'.
    • Simen Heggestøyl's avatar
      Turn project switch menu var into a public alist · c6f56bd2
      Simen Heggestøyl authored
      * lisp/progmodes/project.el: Require seq.
      (project--switch-alist): Remove in favor of the public
      (project-add-switch-command): Remove; not needed now that
      'project-switch-menu' is a public alist.
      (project-switch-menu): New variable mapping keys to project switching
      menu entries.
      (project--keymap-prompt, project-switch-project): Adjust to the new
      'project-switch-menu' format.
    • Simen Heggestøyl's avatar
      Change dispatch binding of 'project-find-regexp' · 46bb2cbd
      Simen Heggestøyl authored
      * lisp/progmodes/project.el: Change default dispatch binding of
      'project-find-regexp' to 's'.
    • Dmitry Gutov's avatar
      Integrate project-switch-project with project-find-regexp · 02e1ee95
      Dmitry Gutov authored
      * lisp/progmodes/project.el:
      (project-find-regexp): Add to the list of 'switch' commands.
      (project-switch-project): Use call-interactively so that the
      former can read its arguments.
    • Dmitry Gutov's avatar
      Move project-dired and project-eshell higher · afb96da6
      Dmitry Gutov authored
      * lisp/progmodes/project.el:
      (project-dired, project-eshell): Move higher in the file,
      according to their universal utility.
    • Dmitry Gutov's avatar
      Use an alist instead of a keymap · c8cca687
      Dmitry Gutov authored
      * lisp/progmodes/project.el:
      (project--switch-alist): New variable to use instead of
      project-switch-keymap, which remove.  Update all references.
    • Dmitry Gutov's avatar
      Improve project name completion · 9422fb5e
      Dmitry Gutov authored
      * lisp/progmodes/project.el:
      (project-prompt-project-dir): Use REQUIRE-MATCH=t.  Make sure the
      'substring' completion style is used by default.
    • Dmitry Gutov's avatar
      Simplify a little, and avoid duplicate commands · 9f88356b
      Dmitry Gutov authored
      * lisp/progmodes/project.el:
      (project--transient-p) Remove, not needed.
      (project-current): Move project-find based on the directory here.
      (project--remove-from-project-list): Only write if the list changed.
      (project-find-project): Rename to project-prompt-project-dir.
      Simply return the directory selected by the user.
      (project-switch-project-find-file): Remove.
      (project-switch-project-dired): Rename to project-dired and make
      it follow the convention of existing projec tcommands.
      (project-switch-project-eshell): Ditto.
      (project-switch-project): Instead of passing the project instance
      to the command, just bind default-directory.
    • Simen Heggestøyl's avatar
      Add project switching functionality · afb7602a
      Simen Heggestøyl authored
      * lisp/progmodes/project.el: Require subr-x.
      (project--transient-p, project--ensure-file-exists)
      (project--read-project-list, project--ensure-read-project-list)
      (project--remove-from-project-list, project-find-project)
      (project-switch-project-find-file, project-switch-project-dired)
      (project-switch-project-eshell, project-add-switch-command)
      (project--keymap-prompt, project-switch-project): New functions.
      (project--list, project-switch-keymap): New variables.
      (project-current): Call 'project-find-project' when no project is
    • Paul Eggert's avatar
      Port struct Lisp_FLoat to oddball platforms · 9f7bfb6c
      Paul Eggert authored
      * src/lisp.h (struct Lisp_Float): Declare via
      creates these in arrays and GCALIGNED_STRUCT does not necessarily
      suffice to align struct Lisp_Float when it’s used in an array.
      This avoids undefined behavior on oddball machines where
      sizeof (struct Lisp_Float) is not a multiple of 8 and the compiler
      does not support __attribute__ ((aligned 8)).
    • Paul Eggert's avatar
      Move union emacs_align_type to alloc.c · c4faf78a
      Paul Eggert authored
      * src/alloc.c (union emacs_align_type): Move to here ...
      * src/lisp.h: ... from here, and uncomment out some of the
      types that alloc.c can see but lisp.h cannot.
    • Paul Eggert's avatar
      Further fix for aborts due to GC losing pseudovectors · 92278640
      Paul Eggert authored
      * src/alloc.c (MALLOC_ALIGNMENT_BOUND): Remove.
      (LISP_ALIGNMENT): Go back to yesterday’s version, except use
      union emacs_align_type instead of max_align_t.
      (MALLOC_IS_LISP_ALIGNED): Go back to yesterday’s version.
      (maybe_lisp_pointer): Check against GCALIGNMENT, not LISP_ALIGNMENT.
      * src/lisp.h (union emacs_align_type): Bring back.
    • Paul Eggert's avatar
      Refix aborts due to GC losing pseudovectors · 3abf76da
      Paul Eggert authored
      This is simpler, and fixes a bug in the previous fix.
      * src/alloc.c (MALLOC_ALIGNMENT_BOUND): Simplify by
      using max_align_t, since the buggy implementations won’t
      break this simpler implementation.
      (LISP_ALIGNMENT): Simplify by just using GCALIGNMENT, since the
      fancier implementation wasn’t correct anyway, and fixing it
      isn’t worth the trouble on practical platforms.
      * src/lisp.h (union emacs_align_type): Remove.
    • Paul Eggert's avatar
      Fix aborts due to GC losing pseudovectors · 0dc52917
      Paul Eggert authored
      Problem reported by Eli Zaretskii (Bug#41321).
      * src/alloc.c (MALLOC_ALIGNMENT_BOUND): New constant.
      (LISP_ALIGNMENT): Lower it to avoid crashes on MinGW and similarly
      buggy platforms where malloc returns pointers not aligned to
      alignof (max_align_t).  But keep it higher on platforms where this
      is known to work, as it helps GC performance.
      (MALLOC_IS_LISP_ALIGNED): Define in terms of the other two.
      * src/alloc.c (stacktop_sentry):
      * src/thread.c (run_thread):
      Don’t overalign or oversize stack sentries; they need to be
      aligned only for pointers and Lisp_Object, not for arbitrary
      pseudovector contents.
      * src/lisp.h (union emacs_align_type): New type, used for
    • Stefan Kangas's avatar
      Mark metamail.el as obsolete (Bug#41388) · 8b940dac
      Stefan Kangas authored
      The metamail package was last released in 1994, and has been removed
      from most GNU/Linux distributions due to being buggy and unmaintained.
      * lisp/mail/metamail.el: Move from here...
      * lisp/obsolete/metamail.el: ...to here.
      * etc/NEWS: Mention its obsoletion.
  4. 25 May, 2020 8 commits
  5. 24 May, 2020 2 commits
    • Stefan Kangas's avatar
      Mark browse-url-conkeror as obsolete · 104b68b6
      Stefan Kangas authored
      * lisp/net/browse-url.el:
      (browse-url-conkeror-program, browse-url-conkeror-arguments)
      (browse-url-default-browser, browse-url-conkeror): Mark the
      conkeror browser as obsolete.
      * etc/NEWS: Mention this.
    • Carl Lei's avatar
      Add three C++20 coroutine keywords, co_await, co_yield, and co_return · ced29038
      Carl Lei authored
      * lisp/progmodes/cc-langs.el (c-operators): Add co_await and co_yield to the
      C++ value of "Exception" keywords.
      (c-return-kwds): Create a C++ value containing co_return.
      (c-simple-stmt-kwds): Add co_return to the C++ value.
      Copyright-paperwork-exempt: yes.
  6. 23 May, 2020 7 commits