From 9a0fc3da6fd595c3f95f856cdfadc9a6b0dfb2c4 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 10 Feb 2003 22:27:33 +0000 Subject: [PATCH] (e): Make it a variable. --- lisp/ChangeLog | 76 ++++++++++++++++++++++++++++++----------------- lisp/float-sup.el | 4 ++- 2 files changed, 51 insertions(+), 29 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 089f43d2d98..b9637fe8b0e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,27 @@ +2003-02-10 Stefan Monnier + + * ffap.el (ffap-complete-as-file-p): + Use minibuffer-completing-file-name. + + * international/mule.el (load-with-code-conversion): Use push. + + * font-core.el (font-lock-defontify): Use restore-buffer-modified-p. + + * gud.el (gud-gdb-run-command-fetch-lines, gud-display-line): + Use with-current-buffer and simplify. + + * help-mode.el (help-xref-on-pp): Only add xref if the text + is less than 5K. + + * pcvs-parse.el (cvs-parse-table): "no longer in repo" does not + make the file dead if we used the -n arg. + + * emacs-lisp/cl-macs.el (process-get): Add setf method. + + * server.el (server-previous-strings): Remove. + (server-process-filter): Use (process-get 'previous-string) instead. + (server-sentinel): Remove code made superfluous. + 2003-02-10 Luc Teirlinck * info.el (Info-follow-nearest-node): Implement new behavior. @@ -31,9 +55,9 @@ 2003-02-09 Martin Stjernholm - * progmodes/cc-mode.el (c-basic-common-init): Install - `c-fill-paragraph' on `fill-paragraph-function'. Although - it's not the normal way to call it in a CC Mode buffer it + * progmodes/cc-mode.el (c-basic-common-init): + Install `c-fill-paragraph' on `fill-paragraph-function'. + Although it's not the normal way to call it in a CC Mode buffer it makes a direct call to `fill-paragraph' work better. 2003-02-08 Kim F. Storm @@ -109,15 +133,14 @@ bytes to ascii text. (top-level): Avoid byte-compiler warnings of unused variables if the byte-compiler supports this. This is for the - with-parsed-tramp-file-name macro which is wont to produce such - stuff. + with-parsed-tramp-file-name macro which is wont to produce such stuff. 2003-02-05 Michael Albinus * net/tramp.el (tramp-handle-directory-file-name): Handle the case PATH is "". - (tramp-completion-handle-file-name-all-completions): Define - `tramp-current-user' locally. See `tramp-parse-passwd'. + (tramp-completion-handle-file-name-all-completions): + Define `tramp-current-user' locally. See `tramp-parse-passwd'. (tramp-parse-passwd): For su-alike methods it would be desirable to return "root@localhost" as default. Unfortunately, we have no information whether any user name has been typed already. So we @@ -140,8 +163,8 @@ different hosts. So we use virtual device numbers, generated by `tramp-get-device'. Both Ange-FTP and EFS use device number -1. In order to be different, we use device number (-1 x), whereby "x" - is unique for a given (multi-method method user host). Suggested - by Kai. + is unique for a given (multi-method method user host). + Suggested by Kai. (tramp-perl-file-attributes): Always return device number -1. There will be a virtual device number set in `tramp-handle-file-attributes', which replaces this one. @@ -149,50 +172,47 @@ (tramp-get-device): New function. Returns the virtual device number. If it doesn't exist, generate a new one. (tramp-handle-file-regular-p): Use Emacs file name primitives - instead of calling tramp-handle-* equivalents directly. Needed - for tramp-smb. + instead of calling tramp-handle-* equivalents directly. + Needed for tramp-smb. (tramp-completion-function-alist-ssh): Add parsing of "/etc/ssh_config" and "~/.ssh/config". Suggested by Kai. (tramp-completion-function-alist, tramp-set-completion-function): Doc string update. (tramp-parse-sconfig, tramp-parse-sconfig-group): New functions. Provide parsing of "~/.ssh/config" style files. - (tramp-completion-handle-expand-file-name): Apply - `tramp-drop-volume-letter'. Otherwise, there are problems on W32 - systems. + (tramp-completion-handle-expand-file-name): + Apply `tramp-drop-volume-letter'. Otherwise, there are problems + on W32 systems. (tramp-completion-mode): Perform check (integerp last-input-event) before (event-modifiers last-input-event) -- there might be problems if `last-input-event' is a mouse event. (tramp-parse-rhosts, tramp-parse-shosts) - (tramp-parse-hosts, tramp-parse-passwd, tramp-parse-netrc): Use - `file-readable-p' instead of `file-exists-p'. Otherwise these + (tramp-parse-hosts, tramp-parse-passwd, tramp-parse-netrc): + Use `file-readable-p' instead of `file-exists-p'. Otherwise these functions might block. Reported by . * net/tramp-ftp.el (top-level): eval-after-load "ange-ftp" '(tramp-disable-ange-ftp). Suggested by Kai. (tramp-ftp-file-name-handler): `tramp-disable-ange-ftp' not needed any longer. - (top-level): Defaults for `tramp-default-method-alist' must be a - list. + (top-level): Defaults for `tramp-default-method-alist' must be a list. - * net/tramp-smb.el (tramp-smb-file-name-handler-alist): Apply - `tramp-handle-directory-file-name'. - (tramp-smb-devices, tramp-smb-get-device): Removed. Functionality - moved to tramp.el. + * net/tramp-smb.el (tramp-smb-file-name-handler-alist): + Apply `tramp-handle-directory-file-name'. + (tramp-smb-devices, tramp-smb-get-device): Remove. + Functionality moved to tramp.el. (tramp-smb-handle-file-attributes): Apply `tramp-get-device'. - ATIME and CTIME are (0 0) now (= "don't know"), which is more - honest. + ATIME and CTIME are (0 0) now (= "don't know"), which is more honest. (tramp-smb-handle-make-directory): Use Emacs file name primitives instead of calling tramp-smb-handle-* equivalents directly. (tramp-smb-read-file-entry): Return size as a number but a string. (tramp-smb-get-device, tramp-smb-get-inode): New functions. Device number and inode number don't exist for SMB files. Therefore we must generate virtual ones. - (tramp-smb-devices, tramp-smb-inodes): New variables. Keep - generated virtual device numbers and inodes numbers for SMB files. + (tramp-smb-devices, tramp-smb-inodes): New variables. + Keep generated virtual device numbers and inodes numbers for SMB files. (tramp-smb-handle-file-attributes): Apply them. - (top-level): Defaults for `tramp-default-method-alist' must be a - list. + (top-level): Defaults for `tramp-default-method-alist' must be a list. 2003-02-05 Stefan Monnier diff --git a/lisp/float-sup.el b/lisp/float-sup.el index b587a51b85b..29b918a3bc3 100644 --- a/lisp/float-sup.el +++ b/lisp/float-sup.el @@ -36,7 +36,9 @@ ;; provide an easy hook to tell if we are running with floats or not. ;; define pi and e via math-lib calls. (much less prone to killer typos.) (defconst pi (* 4 (atan 1)) "The value of Pi (3.1415926...).") -(defconst e (exp 1) "The value of e (2.7182818...).") +;; It's too inconvenient to make `e' a constant because it's used as +;; a temporary variable all the time. +(defvar e (exp 1) "The value of e (2.7182818...).") ;; Careful when editing this file ... typos here will be hard to spot. ;; (defconst pi 3.14159265358979323846264338327 -- 2.39.2