Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncouple version from banner in spacemacs buffer #11901

Closed

Conversation

duianto
Copy link
Collaborator

@duianto duianto commented Jan 26, 2019

The line in the Spacemacs home buffer that shows the Spacemacs version, Emacs
version and the Spacemacs distribution, for example: "0.300.0@26.1 (spacemacs)"
were tied to the banner. The line disappeared when the banner was hidden.

@duianto
Copy link
Collaborator Author

duianto commented Jan 26, 2019

The banner can be hidden by changing:

   dotspacemacs-startup-banner 'official

to

   dotspacemacs-startup-banner nil

in .spacemacs

The line in the Spacemacs home buffer that shows the Spacemacs version, Emacs
version and the Spacemacs distribution, for example: "0.300.0@26.1 (spacemacs)"
were tied to the banner. The line disappeared when the banner was hidden.
@duianto duianto force-pushed the uncouple-version-from-banner branch from cd8acdc to 6c24de8 Compare January 27, 2019 11:06
@sdwolfz sdwolfz added this to the Bugfix Release 0.300.1 milestone Jan 28, 2019
@smile13241324
Copy link
Collaborator

Thank you for contributing to Spacemacs!
The PR has been cherry-picked into the develop branch, you can safely delete your branch.

@duianto duianto deleted the uncouple-version-from-banner branch April 21, 2019 10:45
duianto added a commit to duianto/spacemacs that referenced this pull request Nov 29, 2019
Removed the first line deletion.
This required the banners to have an empty first line.

Removed the empty first line from the banners.

Made sure that there is a single empty line between:
- The version and Banner.
- Banner and Buttons ([?] [Homepage] ...).
- Version and Buttons (when the banner is hidden).

These changes also reordered the version insertion
function to match the backend call order, with the
order they are shown in the spacemacs home buffer:
version
banner
buttons

Before this change it added:
- the banner
- the buffers first line was removed
- the version was added to the first line
- then the buttons were added
(there are more things added after the buttons,
but they haven't been changed by this commit).

Removed the version insertion in:
core/core-spacemacs-buffer.el

The changes above made that insert the version
twice into the home buffer on startup.

I'm not sure if it has/had other uses.

This seems to be where it was first added to:
core-configuration-layer.el:
core: restore default mode line in home buffer
syl20bnr@77161bd

It was slightly modified in this commit:
core: defer distro insertion in home buffer
syl20bnr@cd50d9c

Here it was joined with the banner:
Fix version injection in home buffer
  Don't inject version if banner is nil
syl20bnr@a764eb4

core: condensed versions into one string in left-hand side
  spacemacs-version@emacs-version (distribution)
syl20bnr@627e934

I had not seen that the version was joined with the
banner on purpose until now.

Therefore it seemed useful to still be able to see
the versions if one just wanted to hide the banner.

I opened this PR (it's been cherry-picked):
Uncouple version from banner in spacemacs buffer syl20bnr#11901
syl20bnr#11901

If there's a good reason to combine them again,
then the changes can be reverted.
duianto added a commit to duianto/spacemacs that referenced this pull request Nov 29, 2019
Removed the first line deletion.
This required the banners to have an empty first line.

Removed the empty first line from the banners.

Made sure that there is a single empty line between:
- The version and Banner.
- Banner and Buttons ([?] [Homepage] ...).
- Version and Buttons (when the banner is hidden).

These changes also reordered the version insertion
function to match the backend call order, with the
order they are shown in the spacemacs home buffer:
version
banner
buttons

Before this change it added:
- the banner
- the buffers first line was removed
- the version was added to the first line
- then the buttons were added
(there are more things added after the buttons,
but they haven't been changed by this commit).

Removed the version insertion in:
core/core-spacemacs-buffer.el

The changes above made that insert the version
twice into the home buffer on startup.

I'm not sure if it has/had other uses.

This seems to be where it was first added to:
core-configuration-layer.el:
core: restore default mode line in home buffer
syl20bnr@77161bd

It was slightly modified in this commit:
core: defer distro insertion in home buffer
syl20bnr@cd50d9c

Here it was joined with the banner:
Fix version injection in home buffer
  Don't inject version if banner is nil
syl20bnr@a764eb4

core: condensed versions into one string in left-hand side
  spacemacs-version@emacs-version (distribution)
syl20bnr@627e934

I had not seen that the version was joined with the
banner on purpose until now.

Therefore it seemed useful to still be able to see
the versions if one just wanted to hide the banner.

I opened this PR (it's been cherry-picked):
Uncouple version from banner in spacemacs buffer syl20bnr#11901
syl20bnr#11901

If there's a good reason to combine them again,
then the changes can be reverted.
duianto added a commit to duianto/spacemacs that referenced this pull request Nov 29, 2019
- Removed the first line deletion.
This required the banners to have an empty first line.

- Removed the empty first line from the banners.

- Made sure that there is a single empty line between:
  - The version and Banner.
  - Banner and Buttons ([?] [Homepage] ...).
  - Version and Buttons (when the banner is hidden).

- Reordered the backend version insertion function call
to match the frontend Spacemacs buffer order.
  - version
  - banner
  - buttons

Before it added:
- the banner
- then the buffers first line was removed
- then the version was added to the first line
- then the buttons were added at the bottom of the buffer
(there are more things added after the buttons,
but they haven't been changed by this commit).

- Removed the version insertion call in:
core/core-spacemacs-buffer.el

The changes above caused the version to appear twice
in the Spacemacs home buffer on startup.

I'm not sure if it has/had other uses.

This seems to be where it was first added to:
core-configuration-layer.el:
core: restore default mode line in home buffer
syl20bnr@77161bd

It was slightly modified in this commit:
core: defer distro insertion in home buffer
syl20bnr@cd50d9c

Here it was joined with the banner:
Fix version injection in home buffer
  Don't inject version if banner is nil
syl20bnr@a764eb4

core: condensed versions into one string in left-hand side
  spacemacs-version@emacs-version (distribution)
syl20bnr@627e934

- I had not seen that the version was joined with the
banner on purpose until now.

It seemed useful to still be able to see the versions
if one just wanted to hide the banner.

Therefore I opened this PR (it's been cherry-picked):
Uncouple version from banner in spacemacs buffer syl20bnr#11901
syl20bnr#11901

If there's a good reason to combine them again,
then the changes can be reverted.
duianto added a commit to duianto/spacemacs that referenced this pull request Nov 29, 2019
- Removed the first line deletion.
This required the banners to have an empty first line.

- Removed the empty first line from the banners.

- Made sure that there is a single empty line between:
  - The Version and Banner.
  - Banner and Buttons ([?] [Homepage] ...).
  - Version and Buttons (when the banner is hidden).

- Reordered the backend version insertion function call
to match the frontend Spacemacs buffer order.
  - version
  - banner
  - buttons

Before it added:
- the banner
- then the buffers first line was removed
- then the version was added to the first line
- then the buttons were added at the bottom of the buffer
(there are more things added after the buttons,
but they haven't been changed by this commit).

- Removed the version insertion call in:
core/core-spacemacs-buffer.el

The changes above caused the version to appear twice
in the Spacemacs home buffer on startup.

I'm not sure if it has/had other uses.

This seems to be where it was first added to:
core-configuration-layer.el:
core: restore default mode line in home buffer
syl20bnr@77161bd

It was slightly modified in this commit:
core: defer distro insertion in home buffer
syl20bnr@cd50d9c

Here it was joined with the banner:
Fix version injection in home buffer
  Don't inject version if banner is nil
syl20bnr@a764eb4

core: condensed versions into one string in left-hand side
  spacemacs-version@emacs-version (distribution)
syl20bnr@627e934

- I had not seen that the version was joined with the
banner on purpose until now.

It seemed useful to still be able to see the versions
if one just wanted to hide the banner.

Therefore I opened this PR (it's been cherry-picked):
Uncouple version from banner in spacemacs buffer syl20bnr#11901
syl20bnr#11901

If there's a good reason to combine them again,
then the changes can be reverted.
duianto added a commit to duianto/spacemacs that referenced this pull request Nov 30, 2019
- Removed the first line deletion.
This required the banners to have an empty first line.

- Removed the empty first line from the banners.

- Made sure that there is a single empty line between:
  - The Version and Banner.
  - Banner and Buttons ([?] [Homepage] ...).
  - Version and Buttons (when the banner is hidden).

- Reordered the backend version insertion function call
to match the frontend Spacemacs buffer order.
  - version
  - banner
  - buttons

Before it added:
- the banner
- then the buffers first line was removed
- then the version was added to the first line
- then the buttons were added at the bottom of the buffer
(there are more things added after the buttons,
but they haven't been changed by this commit).

- Removed the version insertion call in:
core/core-spacemacs-buffer.el

The changes above caused the version to appear twice
in the Spacemacs home buffer on startup.

I'm not sure if it has/had other uses.

This seems to be where it was first added to:
core-configuration-layer.el:
core: restore default mode line in home buffer
syl20bnr@77161bd

It was slightly modified in this commit:
core: defer distro insertion in home buffer
syl20bnr@cd50d9c

Here it was joined with the banner:
Fix version injection in home buffer
  Don't inject version if banner is nil
syl20bnr@a764eb4

core: condensed versions into one string in left-hand side
  spacemacs-version@emacs-version (distribution)
syl20bnr@627e934

- I had not seen that the version was joined with the
banner on purpose until now.

It seemed useful to still be able to see the versions
if one just wanted to hide the banner.

Therefore I opened this PR (it's been cherry-picked):
Uncouple version from banner in spacemacs buffer syl20bnr#11901
syl20bnr#11901

If there's a good reason to combine them again,
then the changes can be reverted.
smile13241324 pushed a commit that referenced this pull request Dec 3, 2019
- Removed the first line deletion.
This required the banners to have an empty first line.

- Removed the empty first line from the banners.

- Made sure that there is a single empty line between:
  - The Version and Banner.
  - Banner and Buttons ([?] [Homepage] ...).
  - Version and Buttons (when the banner is hidden).

- Reordered the backend version insertion function call
to match the frontend Spacemacs buffer order.
  - version
  - banner
  - buttons

Before it added:
- the banner
- then the buffers first line was removed
- then the version was added to the first line
- then the buttons were added at the bottom of the buffer
(there are more things added after the buttons,
but they haven't been changed by this commit).

- Removed the version insertion call in:
core/core-spacemacs-buffer.el

The changes above caused the version to appear twice
in the Spacemacs home buffer on startup.

I'm not sure if it has/had other uses.

This seems to be where it was first added to:
core-configuration-layer.el:
core: restore default mode line in home buffer
77161bd

It was slightly modified in this commit:
core: defer distro insertion in home buffer
cd50d9c

Here it was joined with the banner:
Fix version injection in home buffer
  Don't inject version if banner is nil
a764eb4

core: condensed versions into one string in left-hand side
  spacemacs-version@emacs-version (distribution)
627e934

- I had not seen that the version was joined with the
banner on purpose until now.

It seemed useful to still be able to see the versions
if one just wanted to hide the banner.

Therefore I opened this PR (it's been cherry-picked):
Uncouple version from banner in spacemacs buffer #11901
#11901

If there's a good reason to combine them again,
then the changes can be reverted.
Zefrain pushed a commit to Zefrain/spacemacs that referenced this pull request Jan 21, 2020
- Removed the first line deletion.
This required the banners to have an empty first line.

- Removed the empty first line from the banners.

- Made sure that there is a single empty line between:
  - The Version and Banner.
  - Banner and Buttons ([?] [Homepage] ...).
  - Version and Buttons (when the banner is hidden).

- Reordered the backend version insertion function call
to match the frontend Spacemacs buffer order.
  - version
  - banner
  - buttons

Before it added:
- the banner
- then the buffers first line was removed
- then the version was added to the first line
- then the buttons were added at the bottom of the buffer
(there are more things added after the buttons,
but they haven't been changed by this commit).

- Removed the version insertion call in:
core/core-spacemacs-buffer.el

The changes above caused the version to appear twice
in the Spacemacs home buffer on startup.

I'm not sure if it has/had other uses.

This seems to be where it was first added to:
core-configuration-layer.el:
core: restore default mode line in home buffer
syl20bnr@77161bd

It was slightly modified in this commit:
core: defer distro insertion in home buffer
syl20bnr@cd50d9c

Here it was joined with the banner:
Fix version injection in home buffer
  Don't inject version if banner is nil
syl20bnr@a764eb4

core: condensed versions into one string in left-hand side
  spacemacs-version@emacs-version (distribution)
syl20bnr@627e934

- I had not seen that the version was joined with the
banner on purpose until now.

It seemed useful to still be able to see the versions
if one just wanted to hide the banner.

Therefore I opened this PR (it's been cherry-picked):
Uncouple version from banner in spacemacs buffer syl20bnr#11901
syl20bnr#11901

If there's a good reason to combine them again,
then the changes can be reverted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants