diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/files.el | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/files.el b/lisp/files.el index 045eeaf154c..ef6ac7b8c92 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -654,10 +654,14 @@ the value of `default-directory'." | |||
| 654 | 'file-directory-p)) | 654 | 'file-directory-p)) |
| 655 | 655 | ||
| 656 | 656 | ||
| 657 | (defun pwd () | 657 | (defun pwd (&optional insert) |
| 658 | "Show the current default directory." | 658 | "Show the current default directory. |
| 659 | (interactive nil) | 659 | With prefix argument INSERT, insert the current default directory |
| 660 | (message "Directory %s" default-directory)) | 660 | at point instead." |
| 661 | (interactive "P") | ||
| 662 | (if insert | ||
| 663 | (insert default-directory) | ||
| 664 | (message "Directory %s" default-directory))) | ||
| 661 | 665 | ||
| 662 | (defvar cd-path nil | 666 | (defvar cd-path nil |
| 663 | "Value of the CDPATH environment variable, as a list. | 667 | "Value of the CDPATH environment variable, as a list. |