aboutsummaryrefslogtreecommitdiff
path: root/lisp/magit-section.el
AgeCommit message (Collapse)Author
2025-05-14Release version 4.3.5v4.3.5Jonas Bernoulli
2025-05-13Release version 4.3.4v4.3.4Jonas Bernoulli
2025-05-08magit-section.el: Move misplaced section headingJonas Bernoulli
oO
2025-05-08magit-section-highlight-selection: CosmeticsJonas Bernoulli
2025-05-08Remove unnecessary quoting from a stringJonas Bernoulli
2025-05-08magit-section-cache{,d}-visibility: Correct/add docstringsJonas Bernoulli
2025-05-08magit-section.el: Add missing section headingsJonas Bernoulli
2025-05-05magit-section-cycle: On root section use global cyclingJonas Bernoulli
I recommend using `magit-section-cycle-global' instead, but if one happened to invoke the local variant at the end of the buffer (or after the headers in the status buffer), then it was annoying that this succeeded in expanding all sections, but then failed to hide again on subsequent invocations with "Cannot hide root section".
2025-05-01Release version 4.3.3v4.3.3Jonas Bernoulli
2025-04-28magit-mouse-set-point: New commandJonas Bernoulli
2025-04-16magit-section-make-overlay: Remove kludge for bad user settingJonas Bernoulli
We strongly discourage setting `magit-section-keep-region-overlay' to t. If a user did that anyway that can lead to conflicts between the involved faces. Before we tried to automatically avoid such a potential conflict by only using the `:foreground' of the `magit-*-heading-selection' faces, which is very confusing for users who want to enable this and also use another face attribute.
2025-04-16magit-section-update-highlight: Always unhighlight sectionsJonas Bernoulli
Start doing so even after long-lines shortcuts kick in and even if the new current section is the root section. In both cases sections might be highlighted that should no longer be highlighted.
2025-04-16magit-section--maybe-enable-long-lines-shortcuts: New functionJonas Bernoulli
Replacing `magit-section--enable-long-lines-shortcuts'.
2025-04-15Use ## moreJonas Bernoulli
2025-04-15magit-section-show-level: Support acting on selected sectionsX4lldux
2025-04-15magit-section-show-level: Improve docstringJonas Bernoulli
2025-04-01Release version 4.3.2v4.3.2Jonas Bernoulli
2025-03-29Use ## moreJonas Bernoulli
2025-03-07magit-insert-section--finish: Always add heading keymapJonas Bernoulli
Previously we only did so if the section had children. That was wrong because the section may have a body that doesn't belong to children, or it may have a `washer', which adds a body when the section is expanded. Instead of merely also adding the heading keymap in those cases as well, add it always. Currently that keymap by default only features commands to expand/collapse the section, but it is valid for someone to add more commands. Some users/packages might already be doing that and we might start to do so by default.
2025-03-07magit-insert-section--finish: Fix adding heading keymapJonas Bernoulli
Call `magit-section-maybe-add-heading-map' after `magit--set-section-properties', else the heading keymap gets added and immediately removed again.
2025-03-07magit-insert-section-body: Set section properties on delayed insertionJonas Bernoulli
Often when `magit-insert-section-body' is used, the section body consists of a list of child section, followed by an empty line belonging to the list section. On delayed insertion of the body we did not set the properties of that empty line. Split out `magit--set-section-properties' from `magit-insert-section--finish', so that we can use it in `magit-insert-section-body' as well.
2025-03-02Release version 4.3.1v4.3.1Jonas Bernoulli
2025-03-02Bump dependenciesJonas Bernoulli
2025-03-01magit-section-heading-map: Docstring cosmeticsJonas Bernoulli
2025-03-01Use gensym instead of obsolete cl-gensymJonas Bernoulli
2025-02-21magit-section-ident-value: Improve docstringJonas Bernoulli
2025-02-07Revert "magit-insert-section: Fix indent declaration"Jonas Bernoulli
This reverts commit a5962c0b916c1caf211a4f87fb85023068ab50b9, and adds "sic" to put an end to the flip-flopping. This is better in cases where we put the first argument on a new line. The NAME argument is only very rarely not omitted, so do not optimize for that by using the `defun' style.
2025-02-06Use ## instead of apply-partially in some casesJonas Bernoulli
Do so if the returned/expanded function won't be called with additional argument (making that obvious at the call site) *and* fixing arguments does not avoid needlessly repeating work.
2025-02-06magit-map-sections: Use ##Jonas Bernoulli
2025-02-04Release version 4.3.0v4.3.0Jonas Bernoulli
2025-02-03Drop dependency on DashJonas Bernoulli
2025-02-03Bump dependenciesJonas Bernoulli
2025-02-02Use ## and seq-some instead of --any-pJonas Bernoulli
2025-02-02Use ## and seq-every-p instead of --all-pJonas Bernoulli
2025-02-02Use ## and seq-find instead of --firstJonas Bernoulli
In one case use lambda and in another pcase-lambda, not ##.
2025-02-02Use ## and seq-keep instead of --keepJonas Bernoulli
2025-02-02Use ## and mapcar instead of --mapJonas Bernoulli
In three cases use lambda, not ##.
2025-02-02Prepare for the arrival of domesticated South American camelidsJonas Bernoulli
2025-01-26magit-insert-section: Fix indent declarationJonas Bernoulli
2025-01-09magit-insert-revision-{message,notes}: Set background for whole headingJonas Bernoulli
2025-01-07magit--{bolp,eolp,bol-position,eol-position}: New utility functionsJonas Bernoulli
It would have been better to define them in "magit-base.el", but then we couldn't use them in "magit-section.el".
2025-01-05Let the byte-compiler check more function referencesJonas Bernoulli
2025-01-05Move definition of obsolete variable aliasesJonas Bernoulli
2025-01-01Release version 4.2.0v4.2.0Jonas Bernoulli
2025-01-01Bump copyright yearsJonas Bernoulli
2024-12-17Depend on Emacs >= 27.1Jonas Bernoulli
This version was released more than four years ago and Emacs 30.1 is around the corner. This is the release available on Debian Bullseye (oldstable).
2024-12-06Release version 4.1.3v4.1.3Jonas Bernoulli
2024-11-22magit-bookmark-name: CosmeticsJonas Bernoulli
2024-11-22Use mapcan instead of cl-mapcanJonas Bernoulli
We used to use `cl-mapcan' to support Emacs 25, but since we require at least version 26.1 now, we can switch to the optimized `mapcan'.
2024-11-02Release version 4.1.2v4.1.2Jonas Bernoulli