From: Dan Nicolaescu Date: Wed, 24 Dec 2008 18:27:30 +0000 (+0000) Subject: * subr.el (chmod): New defalias for set-file-modes. X-Git-Tag: emacs-pretest-23.0.90~879 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e69790672013aebe2fefdf9f59411877728cd098;p=emacs.git * subr.el (chmod): New defalias for set-file-modes. * files.texi (Misc File Ops): Mention chmod as an alias for set-file-modes. --- diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 771161c0e01..2d3f82ac93d 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog @@ -1,3 +1,8 @@ +2008-12-24 Dan Nicolaescu + + * files.texi (Misc File Ops): Mention chmod as an alias for + set-file-modes. + 2008-12-24 Martin Rudalics * help.texi (Help): Fix typos and reword. diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi index 3c338fcdfe6..1632ae5f01e 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi @@ -1588,7 +1588,8 @@ read, written to, or executed, and by whom. This command reads file modes using the same symbolic or octal format accepted by the @command{chmod} command; for instance, @samp{u+x} means to add execution permission for the user who owns the file. It has no effect -on operating systems that do not support file modes. +on operating systems that do not support file modes. @code{chmod} is a +convenience alias for this function. @node Compressed Files @section Accessing Compressed Files diff --git a/etc/NEWS b/etc/NEWS index 333cadecb52..1e1abc2ef33 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -542,7 +542,8 @@ matches a regexp. +++ *** The new command `set-file-modes' allows to set file's mode bits. The mode bits can be specified in symbolic notation, like with GNU -Coreutils, in addition to an octal number. +Coreutils, in addition to an octal number. `chmod' is a new +convenience alias for this function. *** `next-error-recenter' specifies how next-error should recenter the visited source file. Its value can be a number (for example, 0 for diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b98edf23e15..0a6627eaec6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2008-12-24 Dan Nicolaescu + + * subr.el (chmod): New defalias for set-file-modes. + 2008-12-23 Juri Linkov * isearch.el (isearch-filter-predicate, isearch-search): Replace diff --git a/lisp/subr.el b/lisp/subr.el index 67284c8753b..a7027b44fda 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1076,6 +1076,7 @@ to reread, so it now uses nil to mean `no event', instead of -1." (defalias 'search-backward-regexp (symbol-function 're-search-backward)) (defalias 'int-to-string 'number-to-string) (defalias 'store-match-data 'set-match-data) +(defalias 'chmod 'set-file-modes) ;; These are the XEmacs names: (defalias 'point-at-eol 'line-end-position) (defalias 'point-at-bol 'line-beginning-position)