Comments (7)
I was able to get Emacs to display more spaces than necessary, even when using emacs -Q
. It attempts to set the width based on the widest line number it might have to show in the window, and this involves some heuristics, which may occasionally have errors. If this behavior bothers you, I would advise customizing the variables in the "Display Line Numbers" group (SPC SPC customize-group RET display-line-numbers RET
For example, setting display-line-numbers-width-start
to t
("Minimum width for buffer's line count: on") will cause it to be computed once, up front, for each buffer, and never resized.
from spacemacs.
Spacemacs is just enabling the built-in line numbering logic in Emacs, like so:
(prog1 (display-line-numbers-mode)
(setq display-line-numbers 'relative))
I suspect this is a bug in Emacs itself. Are you able to reproduce this using emacs -q
(and with the above Elisp snippet)?
from spacemacs.
On original emacs -q
mode, there is NOT the bug: BOTH have the space ahead.
from spacemacs.
I am sorry but I am completely at a loss what you mean, can you provide some more detailed instructions on what is wrong and how to reproduce it? Also please post your system details which you can obtain via spacemacs/report-issue
.
Given from what you have written I assume there is an issue with automatically added blanks, this could be caused by dotspacemacs-use-clean-aindent-mode
being non-nil in your dotfile. The package this setting refers to is very old and can cause such issues in more modern modes, please disable it in your dotfile and post if the issue persist.
Thanks.
from spacemacs.
Thanks.
I tried to set dotspacemacs-use-clean-aindent-mode
to nil (according to the .spacemacs.template
, default is t) and reomve the package clean-aindent-mode
, but it still shows the bug:
repoducing steps:
- set line number mode to visual-line-mode;
- move the cursor to the line < 30L, it seems correctly: no blank before the line number;
- move down the cursor to > line 30+, obviously a space appears. Move up and down, the blank goes away and comes back;
Then according to @bcc32's post, I tried his code in emacs -q
, i saw a leading blank appears on every line.
no matter if there are blanks or not, I wish it remains consistent when moving up and down.
from spacemacs.
@smile13241324, the spaces appear visually (that is to say, not in the buffer itself) in the left margin, just left of the line numbers. Basically, the width of the numbers is inconsistent when scrolling through the buffer, which is pretty weird. I haven't figured out what causes this, yet.
from spacemacs.
Then this is an emacs issue. I am going to close this ticket.
from spacemacs.
Related Issues (20)
- Typescript layer: No ESLint configuration found in project after explicitly setting `exec-path` with project path to ESLint HOT 2
- ESS layer does not bind keys for inferior-ess-mode HOT 1
- mini buffer is hiding other windows HOT 4
- auto-completion is broken if dotspacemacs-scratch-mode enables company
- Building documentation locally HOT 2
- Php Mode keep show this error. HOT 1
- configuration-layer/package-used-p is inconsistent with cfgl-package-used-p HOT 1
- Ruby debugger highlighting false-positives
- Minor improvement: option to disable query for whether to open newly saved file HOT 4
- `git grep` is preferred over `rg` but is massively deficient HOT 2
- Slow opening of tex files HOT 6
- Passing lintr options to ESS from the configuration. HOT 3
- `n` navigation key can search in the wrong direction after exiting `symbol-highlight-transient-state` HOT 1
- Lsp layer changes latex keybindings HOT 3
- Help to add contrib-roam2.el to spacemacs
- M-x broken in the magit status buffer (and potentially others too) HOT 8
- Many shortcuts broken (byte-code: Key sequence M-m h d m starts with non-prefix key M-m) HOT 3
- [low-prio] Warning (lsp-mode): Unknown notification: semgrep/rulesRefreshed HOT 2
- Suggestion: Migrate to a better formatter like apheleia instead of srefactor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spacemacs.