all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@users.sourceforge.net>
To: GNU bug tracker automated control server
	<control@debbugs.gnu.org>,
	18034-done@debbugs.gnu.org
Subject: bug#18034: Bug #18034: toggle-read-only used in the code
Date: Sun, 26 Jun 2016 01:40:30 -0400	[thread overview]
Message-ID: <CAM-tV-9+74rmQfMSXygvkXtr80RubnO+CqEJyemwYbn1Y4i8zw@mail.gmail.com> (raw)
In-Reply-To: <87tx6h2w43.fsf@violet.siamics.net>

# I accidentally marked 18034 fixed due to typo but I meant 18039
fixed 18039 25.0.94
quit

However, this bug is fixed as well. I ran the find+gawk expression
against emacs-25 sources, only 3 occurences left, and they are
acceptable uses kept for backwards compat reasons. I've added context
to each hit:

~/src/emacs$ find emacs-25/lisp/ -type f -name \*.el       -exec gawk
'FILENAME ~ /\<files\.el$/ || /^\s*[;"]|"$/ { next; }
                  /[^-[:alnum:]]toggle-read-only\>/ {
                      print FILENAME ":" FNR ":\t" $0;
                  }' {} +

;; toggle-read-only is obsolete since 24.3, but since vc-t-r-o was made
;; obsolete earlier, it is ok for the latter to be an alias to the former,
;; since the latter will be removed first.  We can't just make it
;; an alias for read-only-mode, since that is not 100% the same.
emacs-25/lisp/vc/vc-hooks.el:573:    (defalias 'vc-toggle-read-only
'toggle-read-only)

    (substitute-key-definition
     'read-only-mode 'hide-ifdef-toggle-outside-read-only map)
    ;; `toggle-read-only' is obsoleted by `read-only-mode'.
    (substitute-key-definition
emacs-25/lisp/progmodes/hideif.el:195:         'toggle-read-only
'hide-ifdef-toggle-outside-read-only map)

    (define-key map [remap read-only-mode] 'dired-toggle-read-only)
    ;; `toggle-read-only' is an obsolete alias for `read-only-mode'
emacs-25/lisp/dired.el:1561:        (define-key map [remap
toggle-read-only] 'dired-toggle-read-only)





      reply	other threads:[~2016-06-26  5:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-15 18:44 bug#18034: toggle-read-only used in the code Ivan Shmakov
2016-06-26  5:40 ` Noam Postavsky [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAM-tV-9+74rmQfMSXygvkXtr80RubnO+CqEJyemwYbn1Y4i8zw@mail.gmail.com \
    --to=npostavs@users.sourceforge.net \
    --cc=18034-done@debbugs.gnu.org \
    --cc=control@debbugs.gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.