emacs-devel
[Top][All Lists]
Advanced

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

Re: [feature request] A lock function.


From: Davis Herring
Subject: Re: [feature request] A lock function.
Date: Sun, 23 Nov 2008 16:09:06 -0800 (PST)
User-agent: SquirrelMail/1.4.8-4.0.1.el5.lanl.4

>> That might give you a false sense of security. If you are to leave your
>> user account non-locked, making your emacs session "locked" might not
>> keep your data safe from someone who can access your session.
> I just want that someone not to touch my emacs, yes, it's not
> about security...

If you really don't care about making it secure in any real sense, you can
use something entirely trivial like

(defun lock-emacs ()
  (interactive)
  (let ((inhibit-quit t))
    (while (not (equal (read-passwd "Unlock: ") "potrzebie"))
      (setq quit-flag nil)))) ; prevent C-g from looping

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.




reply via email to

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