From: Dmitry Gutov <dgutov@yandex.ru>
To: Eric Hanchrow <eric.hanchrow@gmail.com>, 45349-done@debbugs.gnu.org
Subject: bug#45349: 27.1.50; ruby-mode widens buffer when saving
Date: Tue, 22 Dec 2020 03:17:49 +0200 [thread overview]
Message-ID: <55c93b4f-be28-8863-7a01-d369d8402827@yandex.ru> (raw)
In-Reply-To: <CAHZoxq892qgGsTZDnnYdDqy=_QVKm2QggNiokO3UhZ5a0CEU4w@mail.gmail.com>
Version: 28.1
Hi Eric,
On 21.12.2020 04:59, Eric Hanchrow wrote:
> put the following three lines of ruby code into /tmp/wat.rb
>
> #####
> def hey_you
> puts "So what"
> end
> ####
>
> start emacs with "emacs -nw"
> visit the file:
> C-x C-f /tmp/wat.rb RET
> add some spaces to the end of the second line:
> C-n C-e SPC SPC SPC
> narrow to that second line:
> C-SPC
> M-m
> C-x n n
> save the buffer:
> C-x C-s
>
> You'll see that the buffer is no longer narrowed.
>
> The fix is to simply add a "save-restriction" in the function
> `ruby-mode-set-encoding`, like this
Thanks for the report, now fixed on master.
prev parent reply other threads:[~2020-12-22 1:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-21 2:59 bug#45349: 27.1.50; ruby-mode widens buffer when saving Eric Hanchrow
2020-12-22 1:17 ` Dmitry Gutov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55c93b4f-be28-8863-7a01-d369d8402827@yandex.ru \
--to=dgutov@yandex.ru \
--cc=45349-done@debbugs.gnu.org \
--cc=eric.hanchrow@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).