# HG changeset patch # User Dan Nicolaescu # Date 1230143250 0 # Node ID 5478b71d59c63a22730cd3ed5133f49de0f7d5ee # Parent 7bd3f6af5679e8e8afa15077cf04e2e8645fc7a0 * subr.el (chmod): New defalias for set-file-modes. * files.texi (Misc File Ops): Mention chmod as an alias for set-file-modes. diff -r 7bd3f6af5679 -r 5478b71d59c6 doc/emacs/ChangeLog --- a/doc/emacs/ChangeLog Wed Dec 24 18:01:06 2008 +0000 +++ b/doc/emacs/ChangeLog Wed Dec 24 18:27:30 2008 +0000 @@ -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 -r 7bd3f6af5679 -r 5478b71d59c6 doc/emacs/files.texi --- a/doc/emacs/files.texi Wed Dec 24 18:01:06 2008 +0000 +++ b/doc/emacs/files.texi Wed Dec 24 18:27:30 2008 +0000 @@ -1588,7 +1588,8 @@ 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 -r 7bd3f6af5679 -r 5478b71d59c6 etc/NEWS --- a/etc/NEWS Wed Dec 24 18:01:06 2008 +0000 +++ b/etc/NEWS Wed Dec 24 18:27:30 2008 +0000 @@ -542,7 +542,8 @@ +++ *** 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 -r 7bd3f6af5679 -r 5478b71d59c6 lisp/ChangeLog --- a/lisp/ChangeLog Wed Dec 24 18:01:06 2008 +0000 +++ b/lisp/ChangeLog Wed Dec 24 18:27:30 2008 +0000 @@ -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 -r 7bd3f6af5679 -r 5478b71d59c6 lisp/subr.el --- a/lisp/subr.el Wed Dec 24 18:01:06 2008 +0000 +++ b/lisp/subr.el Wed Dec 24 18:27:30 2008 +0000 @@ -1076,6 +1076,7 @@ (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)