emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C-z (Re: Two GTK related feature requests)


From: Robert J. Chassell
Subject: Re: C-z (Re: Two GTK related feature requests)
Date: Mon, 27 Oct 2003 12:46:04 +0000 (UTC)

   what else useful could we put on c-z
   instead of iconify?  it wd not be available on text terminals.

One possibility is to make it a prefix reserved for users,
like C-c followed by a letter.

For example, someone might bind keys to to show syslog using
live-find-file, to remove text properties that are visible in a
window, or to list and kill processes.

[These can  be derived from

    (defun remove-window-text-properties ()
      "Remove facemenu-created text properties visible in window."
      (interactive)
      (facemenu-remove-all (window-start) (window-end)))

    (defun show-syslog ()
      "Show the syslog using live-find-file.
    You and/or the file must have the correct permissions."
      (interactive)
      (let ((log-buffer (get-file-buffer "/var/log/syslog")))
        (cond (log-buffer (switch-to-buffer log-buffer))
              ((file-readable-p "/var/log/syslog")
               (live-find-file "/var/log/syslog"))
              (t (error "syslog file not readable by user `%s'"
                        (user-real-login-name))))))

and Kyle Jones' 1989 `vkill.el', or something more recent.]

-- 
    Robert J. Chassell                         Rattlesnake Enterprises
    http://www.rattlesnake.com                  GnuPG Key ID: 004B4AC8
    http://www.teak.cc                             address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]