* defalias chmod for set-file-modes ? @ 2008-12-18 9:30 Dan Nicolaescu 2008-12-23 21:35 ` Juri Linkov 0 siblings, 1 reply; 8+ messages in thread From: Dan Nicolaescu @ 2008-12-18 9:30 UTC (permalink / raw) To: emacs-devel Any objection to adding an alias `chmod' for set-file-modes? It's a familiar name for that type of functionality... ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: defalias chmod for set-file-modes ? 2008-12-18 9:30 defalias chmod for set-file-modes ? Dan Nicolaescu @ 2008-12-23 21:35 ` Juri Linkov 2008-12-24 6:24 ` Miles Bader 0 siblings, 1 reply; 8+ messages in thread From: Juri Linkov @ 2008-12-23 21:35 UTC (permalink / raw) To: Dan Nicolaescu; +Cc: emacs-devel > Any objection to adding an alias `chmod' for set-file-modes? > It's a familiar name for that type of functionality... I see no reason not to add `chmod' as an alias. After introducing a new command `set-file-modes' last year, I can't remember its exact name, so I still change modes the old way (going to Dired and typing M) because this takes less time than trying to find the name of a new command. An alias `chmod' will allow me and other users to use this command. -- Juri Linkov http://www.jurta.org/emacs/ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: defalias chmod for set-file-modes ? 2008-12-23 21:35 ` Juri Linkov @ 2008-12-24 6:24 ` Miles Bader 2008-12-24 7:11 ` Stephen J. Turnbull 2008-12-24 17:33 ` Stefan Monnier 0 siblings, 2 replies; 8+ messages in thread From: Miles Bader @ 2008-12-24 6:24 UTC (permalink / raw) To: Juri Linkov; +Cc: Dan Nicolaescu, emacs-devel It might be nice to have a few other command such aliases, e.g., mkdir => make-directory. -Miles -- Next to fried food, the South has suffered most from oratory. -- Walter Hines Page ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: defalias chmod for set-file-modes ? 2008-12-24 6:24 ` Miles Bader @ 2008-12-24 7:11 ` Stephen J. Turnbull 2008-12-24 8:15 ` Miles Bader 2008-12-24 17:33 ` Stefan Monnier 1 sibling, 1 reply; 8+ messages in thread From: Stephen J. Turnbull @ 2008-12-24 7:11 UTC (permalink / raw) To: Miles Bader; +Cc: Juri Linkov, Dan Nicolaescu, emacs-devel Miles Bader writes: > It might be nice to have a few other command such aliases, e.g., mkdir > => make-directory. Commands are functions, and people will start using these aliases in programs because they're used to using them from Unix shells and they're shorter. Is that desirable? IMHO not, even to a 35-year Unix veteran surely "make-directory" is as readable as "mkdir" and "M-x mak<TAB>d<RET>" is no longer than "M-x mkdir<RET>" (though for true speed daemons "M-x mk<TAB>" is indeed shorter). What's wrong with (define-abbrev lisp-mode-abbrev-table "mkdir" "make-directory") and use of completion to save on typing? It's not like make-directory or set-file-attributes is a command used several score times in most editing sessions, and if you *are* going to be doing that a whole lot, aren't key sequences like "+" and "M" as short as you're gonna get? ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: defalias chmod for set-file-modes ? 2008-12-24 7:11 ` Stephen J. Turnbull @ 2008-12-24 8:15 ` Miles Bader 0 siblings, 0 replies; 8+ messages in thread From: Miles Bader @ 2008-12-24 8:15 UTC (permalink / raw) To: Stephen J. Turnbull; +Cc: Juri Linkov, Dan Nicolaescu, emacs-devel "Stephen J. Turnbull" <stephen@xemacs.org> writes: > > It might be nice to have a few other command such aliases, e.g., mkdir > > => make-directory. > > Commands are functions, and people will start using these aliases in > programs because they're used to using them from Unix shells and > they're shorter. Is that desirable? Dunno; doesn't seem like a big deal to me. I don't mind, anyway. > and use of completion to save on typing? Well, I don't suggest it randomly, or from a misplaced sense of completeness, but because for whatever reason (although I've certainly used this command often enough), I always seem to try typing "M-x mkdir" (or "mk TAB") first, and then when it doesn't work, remember, "oh yeah, it's make-directory... grumble". -Miles -- Zeal, n. A certain nervous disorder afflicting the young and inexperienced. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: defalias chmod for set-file-modes ? 2008-12-24 6:24 ` Miles Bader 2008-12-24 7:11 ` Stephen J. Turnbull @ 2008-12-24 17:33 ` Stefan Monnier 2008-12-24 18:28 ` Dan Nicolaescu 1 sibling, 1 reply; 8+ messages in thread From: Stefan Monnier @ 2008-12-24 17:33 UTC (permalink / raw) To: Miles Bader; +Cc: Juri Linkov, Dan Nicolaescu, emacs-devel > It might be nice to have a few other command such aliases, e.g., mkdir > => make-directory. These names don't make much sense as functions, but for commands, I agree that they come in handy for us unixers. Stefan ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: defalias chmod for set-file-modes ? 2008-12-24 17:33 ` Stefan Monnier @ 2008-12-24 18:28 ` Dan Nicolaescu 2008-12-24 20:48 ` Juri Linkov 0 siblings, 1 reply; 8+ messages in thread From: Dan Nicolaescu @ 2008-12-24 18:28 UTC (permalink / raw) To: Stefan Monnier; +Cc: Juri Linkov, emacs-devel, Miles Bader Stefan Monnier <monnier@iro.umontreal.ca> writes: > > It might be nice to have a few other command such aliases, e.g., mkdir > > => make-directory. > > These names don't make much sense as functions, but for commands, > I agree that they come in handy for us unixers. I added the chmod defalias. I'll let Miles do the rest. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: defalias chmod for set-file-modes ? 2008-12-24 18:28 ` Dan Nicolaescu @ 2008-12-24 20:48 ` Juri Linkov 0 siblings, 0 replies; 8+ messages in thread From: Juri Linkov @ 2008-12-24 20:48 UTC (permalink / raw) To: Dan Nicolaescu; +Cc: emacs-devel, Stefan Monnier, Miles Bader > > > It might be nice to have a few other command such aliases, e.g., mkdir > > > => make-directory. > > > > These names don't make much sense as functions, but for commands, > > I agree that they come in handy for us unixers. > > I added the chmod defalias. I'll let Miles do the rest. Please add a command alias for `mkdir' too. `chmod' and `mkdir' are the most often used commands that have a name different from their Unix counterparts. -- Juri Linkov http://www.jurta.org/emacs/ ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-12-24 20:48 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-12-18 9:30 defalias chmod for set-file-modes ? Dan Nicolaescu 2008-12-23 21:35 ` Juri Linkov 2008-12-24 6:24 ` Miles Bader 2008-12-24 7:11 ` Stephen J. Turnbull 2008-12-24 8:15 ` Miles Bader 2008-12-24 17:33 ` Stefan Monnier 2008-12-24 18:28 ` Dan Nicolaescu 2008-12-24 20:48 ` Juri Linkov
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.