emacs-devel
[Top][All Lists]
Advanced

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

Re: M-x shell question


From: Uwe Brauer
Subject: Re: M-x shell question
Date: Wed, 17 Aug 2016 19:04:18 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

>>> "raman" == raman  <address@hidden> writes:

   > Richard Stallman <address@hidden> writes:
   > 1+ -- I implemented myself a different shell command specifically for
   > this case and bound it to a key:


That function depends on emacspeak, why?


   > (defun emacspeak-wizards-shell-toggle ()    >   "Switch to the shell 
buffer and cd to
   >  the directory of the current buffer."
   >   (interactive)
   >   (declare (special default-directory))

What is this declare call good for?


   >   (let ((dir default-directory))
   >     (shell)
   >     (unless (string-equal (expand-file-name dir)
   >                           (expand-file-name default-directory))
   >       (goto-char (point-max))
   >       (insert (format "pushd %s" dir))
   >       (comint-send-input)
   >       (shell-process-cd dir))
   >     (emacspeak-auditory-icon 'select-object)
   >     (emacspeak-speak-mode-line)))




reply via email to

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