[ruby-core:93866] [Ruby master Bug#16014] Ruby-toggle-block of ruby-mode.el not chomping trialing whitespace
From:
nobu@...
Date:
2019-07-22 01:54:06 UTC
List:
ruby-core #93866
Issue #16014 has been updated by nobu (Nobuyoshi Nakada).
Status changed from Open to Third Party's Issue
Description updated
ruby-mode.el has been contributed to GNU Emacs for years ago, and maintained there.
I reported this at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=36756
----------------------------------------
Bug #16014: Ruby-toggle-block of ruby-mode.el not chomping trialing whitespace
https://bugs.ruby-lang.org/issues/16014#change-79778
* Author: demash (Demid Kashirin)
* Status: Third Party's Issue
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: 2.6.3
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
## Description
Ruby toggle block not chomping trailing whitespace in block
## Reproduction guide
* Start Emacs
* Create a ruby file
* Write a block such as
`(1..10).map { |number| number * 2 }`
* Use `ruby-toggle-block` , - T - {
## Observed behaviour
Command does not chomp off a whitespace after line as follows
```ruby
(1..10).map do |number|
number * 2
end
```
## Expected behaviour
No trailing whitespace
## System Info
Ruby version: 2.6.3
OS: darwin
Emacs: 26.1
Spacemacs: 0.300.0
Spacemacs branch: develop (rev. 2bef3f6)
Graphic display: t
Distribution: spacemacs
Editing style: vim
Completion: helm
Layers:
(python erlang sql ansible csv racket clojure php javascript html yaml ruby helm auto-completion emacs-lisp git
(markdown :variables markdown-live-preview-engine 'vmd)
org
(shell :variables shell-default-height 30 shell-default-position 'bottom)
spell-checking syntax-checking)
System configuration features: JPEG RSVG IMAGEMAGICK NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS LCMS2
This bug duplicates an issue originally reported here Description :octocat:
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>