unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#25175: flyspell-mode: stay off of C-c . best
@ 2016-12-11 18:23 積丹尼 Dan Jacobson
  2019-10-14 19:59 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: 積丹尼 Dan Jacobson @ 2016-12-11 18:23 UTC (permalink / raw)
  To: 25175; +Cc: manuel serrano

X-Debbugs-cc: Manuel Serrano <Manuel.Serrano@sophia.inria.fr>

Here binding C-. is too dangerous, as it is too close to undo, C-/,
and it will subtly change words not on the screen, far up in the document, with the only
evidence being some choices in the modeline. Easy to overlook when doing
a lot of undos and ones finger slips a little.

Also well gosh if flyspell-use-meta-tab is already true by default, so
isn't one key enough. Why do you have to bind two keys to the same thing?

(defvar flyspell-mode-map
  (let ((map (make-sparse-keymap)))
    (if flyspell-use-meta-tab
      (define-key map "\M-\t" 'flyspell-auto-correct-word))
    (define-key map flyspell-auto-correct-binding 'flyspell-auto-correct-previous-word)
    (define-key map [(control ?\,)] 'flyspell-goto-next-error)
    (define-key map [(control ?\.)] 'flyspell-auto-correct-word)
    (define-key map [?\C-c ?$] 'flyspell-correct-word-before-point)
    map)
  "Minor mode keymap for Flyspell mode--for the whole buffer.")

OK in .emacs I will do
(eval-after-load "flyspell-mode"
  '(progn ;too close to C-/ (undo) and already on ESC TAB:
     (define-key flyspell-mode-map [(control ?\.)] [])))

Also we see

;; Some user variables control the behavior of flyspell.  They are
;; those defined under the `User variables' comment.

but below is

;;*---------------------------------------------------------------------*/
;;*    User configuration ...                                           */
;;*---------------------------------------------------------------------*/

not 'User variables'. So change one or the other. emacs-version "25.1.1".





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

* bug#25175: flyspell-mode: stay off of C-c . best
  2016-12-11 18:23 bug#25175: flyspell-mode: stay off of C-c . best 積丹尼 Dan Jacobson
@ 2019-10-14 19:59 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-10-14 19:59 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 25175, manuel serrano

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> X-Debbugs-cc: Manuel Serrano <Manuel.Serrano@sophia.inria.fr>
>
> Here binding C-. is too dangerous, as it is too close to undo, C-/,
> and it will subtly change words not on the screen, far up in the document, with the only
> evidence being some choices in the modeline. Easy to overlook when doing
> a lot of undos and ones finger slips a little.

It changes the word at point, so I'm not sure what you mean by "not on
the screen".

Anyway, there haven't been many complaints about the key binding that I
know of, so it doesn't seem to be a general problems, so I'm closing
this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2019-10-14 19:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-11 18:23 bug#25175: flyspell-mode: stay off of C-c . best 積丹尼 Dan Jacobson
2019-10-14 19:59 ` Lars Ingebrigtsen

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