unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Just a thought about comment-line
@ 2020-05-31  7:39 PEDRO ANDRES ARANDA GUTIERREZ
  2020-05-31  9:57 ` Yuri Khan
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: PEDRO ANDRES ARANDA GUTIERREZ @ 2020-05-31  7:39 UTC (permalink / raw)
  To: emacs-devel@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1055 bytes --]

Hi,

Take any file, code or not, but let's say it is code...
Now select two or more lines. The mark should be at the beginning of a line
and the point at the beginning of a line two or more lines further down. If
you copy this region and paste it somewhere else you get what you want.

However let's suppose that your theme is highlighting the region and you
comment the region with M-x comment-line. You will have the line at the
point:
1.- not highlighted before M-x comment-line
2.- commented after M-x comment-line

This is something you get used after n-ty something years of use. However,
it is confusing the "newer generation" because it doesn't happen on other
"popular" editors. Could we consider a variable customise the behaviour and
allow the last line *not*  to be commented when the mark is at the start of
line?

Just a random thought after talking to novice users,
-- 
---
PEDRO ANDRES ARANDA GUTIERREZ
Universidad Carlos III de Madrid

"Fragen sind nicht da um beantwortet zu werden.
Fragen sind da, um gestellt zu werden" Georg Kreisler

[-- Attachment #2: Type: text/html, Size: 1446 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-06-01  6:14 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-31  7:39 Just a thought about comment-line PEDRO ANDRES ARANDA GUTIERREZ
2020-05-31  9:57 ` Yuri Khan
2020-05-31 16:58   ` Drew Adams
2020-05-31 17:15     ` Stefan Monnier
2020-05-31 18:05       ` Drew Adams
2020-05-31 19:05         ` Stefan Monnier
2020-05-31 21:53           ` Drew Adams
2020-05-31 17:42     ` Dmitry Gutov
2020-05-31 18:08       ` Drew Adams
2020-05-31 18:31         ` Dmitry Gutov
2020-05-31 21:54           ` Drew Adams
2020-06-01  5:18             ` PEDRO ANDRES ARANDA GUTIERREZ
2020-06-01  5:29               ` PEDRO ANDRES ARANDA GUTIERREZ
2020-05-31 14:40 ` Eli Zaretskii
2020-05-31 16:53 ` Drew Adams
2020-06-01  6:14 ` Clément Pit-Claudel

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).