* Emacs 31.0.50 (2f1052d9b0de) will line-number in some buffers which shouldn't show it, is there some changed in recent master branch related to display-line-number @ 2025-01-03 5:45 Eval EXEC 2025-01-03 8:45 ` Eli Zaretskii 2025-01-03 9:08 ` Konstantin Kharlamov 0 siblings, 2 replies; 11+ messages in thread From: Eval EXEC @ 2025-01-03 5:45 UTC (permalink / raw) To: emacs-devel -- Hello, I am building Emacs from source, and I’ve noticed something unusual. Line numbers appear in my rg and xref buffers, but they disappear after approximately 100ms. This happens even though I’ve only configured display-line-number-mode to be enabled in prog-mode via an add-hook. Has there been any recent change in the code related to display-line-number-mode that might explain this behavior? Thank you for your help! Best regards, Eval Exec ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Emacs 31.0.50 (2f1052d9b0de) will line-number in some buffers which shouldn't show it, is there some changed in recent master branch related to display-line-number 2025-01-03 5:45 Emacs 31.0.50 (2f1052d9b0de) will line-number in some buffers which shouldn't show it, is there some changed in recent master branch related to display-line-number Eval EXEC @ 2025-01-03 8:45 ` Eli Zaretskii 2025-01-03 15:23 ` Konstantin Kharlamov 2025-01-03 9:08 ` Konstantin Kharlamov 1 sibling, 1 reply; 11+ messages in thread From: Eli Zaretskii @ 2025-01-03 8:45 UTC (permalink / raw) To: Eval EXEC; +Cc: emacs-devel > From: Eval EXEC <execvy@gmail.com> > Date: Fri, 03 Jan 2025 13:45:11 +0800 > > > -- > > > Hello, I am building Emacs from source, and I’ve noticed something > unusual. Line numbers appear in my rg and xref buffers, but they > disappear after approximately 100ms. This happens even though I’ve only > configured display-line-number-mode to be enabled in prog-mode via an > add-hook. Can you show a minimal recipe for reproducing this problem starting from "emacs -Q"? It is best to post that using "M-x report-emacs-bug", so that this and the following discussion get recorded by our issue tracker. > Has there been any recent change in the code related to display-line-number-mode that might explain this behavior? Not that I know of, but that doesn't mean we couldn't introduce some inadvertent changes! ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Emacs 31.0.50 (2f1052d9b0de) will line-number in some buffers which shouldn't show it, is there some changed in recent master branch related to display-line-number 2025-01-03 8:45 ` Eli Zaretskii @ 2025-01-03 15:23 ` Konstantin Kharlamov 0 siblings, 0 replies; 11+ messages in thread From: Konstantin Kharlamov @ 2025-01-03 15:23 UTC (permalink / raw) To: Eli Zaretskii, Eval EXEC; +Cc: emacs-devel On Fri, 2025-01-03 at 10:45 +0200, Eli Zaretskii wrote: > > From: Eval EXEC <execvy@gmail.com> > > Date: Fri, 03 Jan 2025 13:45:11 +0800 > > > > > > -- > > > > > > Hello, I am building Emacs from source, and I’ve noticed something > > unusual. Line numbers appear in my rg and xref buffers, but they > > disappear after approximately 100ms. This happens even though I’ve > > only > > configured display-line-number-mode to be enabled in prog-mode via > > an > > add-hook. > > Can you show a minimal recipe for reproducing this problem starting > from "emacs -Q"? > > It is best to post that using "M-x report-emacs-bug", so that this > and > the following discussion get recorded by our issue tracker. I join the Eli's comment: I just built Emacs and I can't reproduce your problem. Please try reducing it to minimal steps. Even better would be if you'd find the commit that brought the problem (see git-bisect, it's somewhat fast, e.g. for 2000 commits you can find the culprit in just 11 steps). ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Emacs 31.0.50 (2f1052d9b0de) will line-number in some buffers which shouldn't show it, is there some changed in recent master branch related to display-line-number 2025-01-03 5:45 Emacs 31.0.50 (2f1052d9b0de) will line-number in some buffers which shouldn't show it, is there some changed in recent master branch related to display-line-number Eval EXEC 2025-01-03 8:45 ` Eli Zaretskii @ 2025-01-03 9:08 ` Konstantin Kharlamov 2025-01-03 9:21 ` Stefan Kangas 2025-01-03 11:42 ` Eli Zaretskii 1 sibling, 2 replies; 11+ messages in thread From: Konstantin Kharlamov @ 2025-01-03 9:08 UTC (permalink / raw) To: Eval EXEC, emacs-devel On Fri, 2025-01-03 at 13:45 +0800, Eval EXEC wrote: > Hello, I am building Emacs from source, and I’ve noticed something > unusual. Line numbers appear in my rg and xref buffers, but they > disappear after approximately 100ms. This happens even though I’ve > only > configured display-line-number-mode to be enabled in prog-mode via an > add-hook. > > Has there been any recent change in the code related to display-line- > number-mode that might explain this behavior? > > Thank you for your help! FWIW, I just tried building Emacs from latest commit to look at it, but it doesn't even build with `Error: void-function (rx)`. Now, I know Emacs build system has some controversial design decisions that were discussed a few months ago (which basically lead to errors like that), so I tried removing `build/` dir completely and `find -type f -name "*.elc" -delete` but it didn't help. 🤷 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Emacs 31.0.50 (2f1052d9b0de) will line-number in some buffers which shouldn't show it, is there some changed in recent master branch related to display-line-number 2025-01-03 9:08 ` Konstantin Kharlamov @ 2025-01-03 9:21 ` Stefan Kangas 2025-01-03 9:22 ` Eval Exec 2025-01-03 9:31 ` Konstantin Kharlamov 2025-01-03 11:42 ` Eli Zaretskii 1 sibling, 2 replies; 11+ messages in thread From: Stefan Kangas @ 2025-01-03 9:21 UTC (permalink / raw) To: Konstantin Kharlamov, Eval EXEC, emacs-devel Konstantin Kharlamov <Hi-Angel@yandex.ru> writes: > On Fri, 2025-01-03 at 13:45 +0800, Eval EXEC wrote: >> Hello, I am building Emacs from source, and I’ve noticed something >> unusual. Line numbers appear in my rg and xref buffers, but they >> disappear after approximately 100ms. This happens even though I’ve >> only >> configured display-line-number-mode to be enabled in prog-mode via an >> add-hook. >> >> Has there been any recent change in the code related to display-line- >> number-mode that might explain this behavior? >> >> Thank you for your help! > > FWIW, I just tried building Emacs from latest commit to look at it, but > it doesn't even build with `Error: void-function (rx)`. > > Now, I know Emacs build system has some controversial design decisions > that were discussed a few months ago (which basically lead to errors > like that), so I tried removing `build/` dir completely and `find -type > f -name "*.elc" -delete` but it didn't help. 🤷 Did you try make bootstrap? ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Emacs 31.0.50 (2f1052d9b0de) will line-number in some buffers which shouldn't show it, is there some changed in recent master branch related to display-line-number 2025-01-03 9:21 ` Stefan Kangas @ 2025-01-03 9:22 ` Eval Exec 2025-01-03 9:32 ` Konstantin Kharlamov 2025-01-03 9:31 ` Konstantin Kharlamov 1 sibling, 1 reply; 11+ messages in thread From: Eval Exec @ 2025-01-03 9:22 UTC (permalink / raw) To: Stefan Kangas; +Cc: Konstantin Kharlamov, emacs-devel No, I didn't build emacs by `make bootstrap`, I build emacs by: ```bash #!/usr/bin/env bash set -ex make extraclean BRANCH_NAME=$(git branch --show-current | sed 's/\//_/g') COMMIT_ID=$(git rev-parse HEAD) BUILD_DIR=${BRANCH_NAME}-${COMMIT_ID}-ld INSTALL_PREFIX=$(realpath ../emacs-build/${BUILD_DIR}) ./autogen.sh ./configure CFLAGS='-O3 -march=native' LDFLAGS='-O3 -march=native' \ --prefix=${INSTALL_PREFIX} \ --with-imagemagick \ --with-modules \ --with-cairo --with-cairo-xcb \ --without-compress-install \ --with-native-compilation --with-mailutils\ --enable-link-time-optimization \ --with-tree-sitter --with-xinput2 \ --with-dbus --with-native-compilation=aot \ --with-file-notification=inotify\ && make -j30 install ``` On Fri, Jan 3, 2025 at 5:21 PM Stefan Kangas <stefankangas@gmail.com> wrote: > > Konstantin Kharlamov <Hi-Angel@yandex.ru> writes: > > > On Fri, 2025-01-03 at 13:45 +0800, Eval EXEC wrote: > >> Hello, I am building Emacs from source, and I’ve noticed something > >> unusual. Line numbers appear in my rg and xref buffers, but they > >> disappear after approximately 100ms. This happens even though I’ve > >> only > >> configured display-line-number-mode to be enabled in prog-mode via an > >> add-hook. > >> > >> Has there been any recent change in the code related to display-line- > >> number-mode that might explain this behavior? > >> > >> Thank you for your help! > > > > FWIW, I just tried building Emacs from latest commit to look at it, but > > it doesn't even build with `Error: void-function (rx)`. > > > > Now, I know Emacs build system has some controversial design decisions > > that were discussed a few months ago (which basically lead to errors > > like that), so I tried removing `build/` dir completely and `find -type > > f -name "*.elc" -delete` but it didn't help. 🤷 > > Did you try make bootstrap? ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Emacs 31.0.50 (2f1052d9b0de) will line-number in some buffers which shouldn't show it, is there some changed in recent master branch related to display-line-number 2025-01-03 9:22 ` Eval Exec @ 2025-01-03 9:32 ` Konstantin Kharlamov 0 siblings, 0 replies; 11+ messages in thread From: Konstantin Kharlamov @ 2025-01-03 9:32 UTC (permalink / raw) To: Eval Exec, Stefan Kangas; +Cc: emacs-devel On Fri, 2025-01-03 at 17:22 +0800, Eval Exec wrote: > No, I didn't build emacs by `make bootstrap` You don't need to, Stefan was replying to my build error 😊 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Emacs 31.0.50 (2f1052d9b0de) will line-number in some buffers which shouldn't show it, is there some changed in recent master branch related to display-line-number 2025-01-03 9:21 ` Stefan Kangas 2025-01-03 9:22 ` Eval Exec @ 2025-01-03 9:31 ` Konstantin Kharlamov 2025-01-03 11:50 ` Eli Zaretskii 1 sibling, 1 reply; 11+ messages in thread From: Konstantin Kharlamov @ 2025-01-03 9:31 UTC (permalink / raw) To: Stefan Kangas, Eval EXEC, emacs-devel On Fri, 2025-01-03 at 03:21 -0600, Stefan Kangas wrote: > Konstantin Kharlamov <Hi-Angel@yandex.ru> writes: > > > On Fri, 2025-01-03 at 13:45 +0800, Eval EXEC wrote: > > > Hello, I am building Emacs from source, and I’ve noticed > > > something > > > unusual. Line numbers appear in my rg and xref buffers, but they > > > disappear after approximately 100ms. This happens even though > > > I’ve > > > only > > > configured display-line-number-mode to be enabled in prog-mode > > > via an > > > add-hook. > > > > > > Has there been any recent change in the code related to display- > > > line- > > > number-mode that might explain this behavior? > > > > > > Thank you for your help! > > > > FWIW, I just tried building Emacs from latest commit to look at it, > > but > > it doesn't even build with `Error: void-function (rx)`. > > > > Now, I know Emacs build system has some controversial design > > decisions > > that were discussed a few months ago (which basically lead to > > errors > > like that), so I tried removing `build/` dir completely and `find - > > type > > f -name "*.elc" -delete` but it didn't help. 🤷 > > Did you try make bootstrap? Nope. I just have specific directory where I assembly Emacs Arch package, whereas the building uses the usual `./configure` and `make` process. For this test I figured I'd update the Emacs package and test the same problem at the same time, but I get this. I think if I remove the repo completely, the error will go away, because that's how it usually works with that kind of errors. But IMO this is a bug in build system, because build system should handle rebuilds without any kind of cleaning or removing specific files. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Emacs 31.0.50 (2f1052d9b0de) will line-number in some buffers which shouldn't show it, is there some changed in recent master branch related to display-line-number 2025-01-03 9:31 ` Konstantin Kharlamov @ 2025-01-03 11:50 ` Eli Zaretskii 2025-01-03 15:19 ` Konstantin Kharlamov 0 siblings, 1 reply; 11+ messages in thread From: Eli Zaretskii @ 2025-01-03 11:50 UTC (permalink / raw) To: Konstantin Kharlamov; +Cc: stefankangas, execvy, emacs-devel > From: Konstantin Kharlamov <Hi-Angel@yandex.ru> > Date: Fri, 03 Jan 2025 12:31:23 +0300 > > On Fri, 2025-01-03 at 03:21 -0600, Stefan Kangas wrote: > > Konstantin Kharlamov <Hi-Angel@yandex.ru> writes: > > > > > On Fri, 2025-01-03 at 13:45 +0800, Eval EXEC wrote: > > > > Hello, I am building Emacs from source, and I’ve noticed > > > > something > > > > unusual. Line numbers appear in my rg and xref buffers, but they > > > > disappear after approximately 100ms. This happens even though > > > > I’ve > > > > only > > > > configured display-line-number-mode to be enabled in prog-mode > > > > via an > > > > add-hook. > > > > > > > > Has there been any recent change in the code related to display- > > > > line- > > > > number-mode that might explain this behavior? > > > > > > > > Thank you for your help! > > > > > > FWIW, I just tried building Emacs from latest commit to look at it, > > > but > > > it doesn't even build with `Error: void-function (rx)`. > > > > > > Now, I know Emacs build system has some controversial design > > > decisions > > > that were discussed a few months ago (which basically lead to > > > errors > > > like that), so I tried removing `build/` dir completely and `find - > > > type > > > f -name "*.elc" -delete` but it didn't help. 🤷 > > > > Did you try make bootstrap? > > Nope. Why not? > I think if I remove the repo completely, the error will go away, > because that's how it usually works with that kind of errors. But IMO > this is a bug in build system, because build system should handle > rebuilds without any kind of cleaning or removing specific files. As already abundantly explained in the past, there are valid reasons for us not to reach that ideal in 100% of cases. That's why when a build fails, the Makefile suggests "make bootstrap". To make shortcuts, you need to know many intimate details of how Emacs is built and how it works, and we don't expect that from casual builders. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Emacs 31.0.50 (2f1052d9b0de) will line-number in some buffers which shouldn't show it, is there some changed in recent master branch related to display-line-number 2025-01-03 11:50 ` Eli Zaretskii @ 2025-01-03 15:19 ` Konstantin Kharlamov 0 siblings, 0 replies; 11+ messages in thread From: Konstantin Kharlamov @ 2025-01-03 15:19 UTC (permalink / raw) To: Eli Zaretskii; +Cc: stefankangas, execvy, emacs-devel On Fri, 2025-01-03 at 13:50 +0200, Eli Zaretskii wrote: > > From: Konstantin Kharlamov <Hi-Angel@yandex.ru> > > Date: Fri, 03 Jan 2025 12:31:23 +0300 > > > > On Fri, 2025-01-03 at 03:21 -0600, Stefan Kangas wrote: > > > Konstantin Kharlamov <Hi-Angel@yandex.ru> writes: > > > > > > > On Fri, 2025-01-03 at 13:45 +0800, Eval EXEC wrote: > > > > > Hello, I am building Emacs from source, and I’ve noticed > > > > > something > > > > > unusual. Line numbers appear in my rg and xref buffers, but > > > > > they > > > > > disappear after approximately 100ms. This happens even though > > > > > I’ve > > > > > only > > > > > configured display-line-number-mode to be enabled in prog- > > > > > mode > > > > > via an > > > > > add-hook. > > > > > > > > > > Has there been any recent change in the code related to > > > > > display- > > > > > line- > > > > > number-mode that might explain this behavior? > > > > > > > > > > Thank you for your help! > > > > > > > > FWIW, I just tried building Emacs from latest commit to look at > > > > it, > > > > but > > > > it doesn't even build with `Error: void-function (rx)`. > > > > > > > > Now, I know Emacs build system has some controversial design > > > > decisions > > > > that were discussed a few months ago (which basically lead to > > > > errors > > > > like that), so I tried removing `build/` dir completely and > > > > `find - > > > > type > > > > f -name "*.elc" -delete` but it didn't help. 🤷 > > > > > > Did you try make bootstrap? > > > > Nope. > > Why not? Just did, worked out fine, thanks. The reason was that I didn't remember what `make bootstrap` does. Over a year I contribute to dozens of unrelated projects in different langs and with different build systems. So understandably after some time I forget things I worked on. E.g. I remember what change-log-mode is about after sending an email that I don't get what it does, but it took some time for memories of working with it to flow up. > > I think if I remove the repo completely, the error will go away, > > because that's how it usually works with that kind of errors. But > > IMO > > this is a bug in build system, because build system should handle > > rebuilds without any kind of cleaning or removing specific files. > > As already abundantly explained in the past, there are valid reasons > for us not to reach that ideal in 100% of cases. That's why when a > build fails, the Makefile suggests "make bootstrap". To make > shortcuts, you need to know many intimate details of how Emacs is > built and how it works, and we don't expect that from casual > builders. Based on past discussions I don't think I could convince you, but IMO making sure build system works is more important than its performance. The case we discuss here is a perfect example: I tried to help someone, so was going to check on the problem and maybe try to bisect. But I only have so much motivation. I don't want to fight build system. I want to just be able to build (and before you say "use bootstrap", as I mentioned in prev. paragraph, I need to remember the workaround when I stumble upon the problem). So after I saw Emacs is unbuildable again, and I tried a few workarounds I remember and it didn't work, wouldn't I have sent the letter to ML, I'd have just dropped the ball. It's not just me, that's how people work. You have some motivation + spare time, and both get reduced with each problem you stumble upon. For any project ecosystem it is important to reduce such unexpected problems for contributors as much as possible. I'm certain Emacs may be missing hundreds of improvements for the decades of its existence, that people would've sent, but didn't because some similarly unrelated to hacking problem was the last straw (build system is not the only example, I can give others). Regarding Makeilfes, I have some anecdotal experience: there's a proprietary project I was working on as part of my job. Before me it was using Makefiles, and despite people's efforts we frequently were getting sporadic builds. Sometimes deps were executed in the wrong order due to `-jX` (and we had a lot of them). Other times removing/renaming a file would result in error about not having the source file for `.o` one. This was coming up in CI, on local systems, in chats… I think that took a lot of shared human-hours. Then I rewrote it to Meson, and for the next 2 years can't remember even a single build-system related failure (well, besides one, but not because of Meson but because of mixed artifacts from makefile times). So much saved human-hours in the years that passed and ones that to come… ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Emacs 31.0.50 (2f1052d9b0de) will line-number in some buffers which shouldn't show it, is there some changed in recent master branch related to display-line-number 2025-01-03 9:08 ` Konstantin Kharlamov 2025-01-03 9:21 ` Stefan Kangas @ 2025-01-03 11:42 ` Eli Zaretskii 1 sibling, 0 replies; 11+ messages in thread From: Eli Zaretskii @ 2025-01-03 11:42 UTC (permalink / raw) To: Konstantin Kharlamov; +Cc: execvy, emacs-devel > From: Konstantin Kharlamov <Hi-Angel@yandex.ru> > Date: Fri, 03 Jan 2025 12:08:37 +0300 > > On Fri, 2025-01-03 at 13:45 +0800, Eval EXEC wrote: > > Hello, I am building Emacs from source, and I’ve noticed something > > unusual. Line numbers appear in my rg and xref buffers, but they > > disappear after approximately 100ms. This happens even though I’ve > > only > > configured display-line-number-mode to be enabled in prog-mode via an > > add-hook. > > > > Has there been any recent change in the code related to display-line- > > number-mode that might explain this behavior? > > > > Thank you for your help! > > FWIW, I just tried building Emacs from latest commit to look at it, but > it doesn't even build with `Error: void-function (rx)`. It builds fine here, FWIW. ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2025-01-03 15:23 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-01-03 5:45 Emacs 31.0.50 (2f1052d9b0de) will line-number in some buffers which shouldn't show it, is there some changed in recent master branch related to display-line-number Eval EXEC 2025-01-03 8:45 ` Eli Zaretskii 2025-01-03 15:23 ` Konstantin Kharlamov 2025-01-03 9:08 ` Konstantin Kharlamov 2025-01-03 9:21 ` Stefan Kangas 2025-01-03 9:22 ` Eval Exec 2025-01-03 9:32 ` Konstantin Kharlamov 2025-01-03 9:31 ` Konstantin Kharlamov 2025-01-03 11:50 ` Eli Zaretskii 2025-01-03 15:19 ` Konstantin Kharlamov 2025-01-03 11:42 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).