[O] bug#10125: RFE: require and load-path-shadowing

2013-01-16 Thread Kevin Rodgers

On 1/16/13 3:06 AM, Andreas Schwab wrote:

Kevin Rodgers  writes:


(defun run-emacs (command)
   "Run the Emacs COMMAND in the background via `shell-command'."
   (interactive
(let ((program (expand-file-name invocation-name invocation-directory)))
  (list (read-string "Emacs command: "
(cons (concat program
  (if (cdr command-line-args)
  (mapconcat 'identity
 (cdr command-line-args)


You need to use shell-quote-argument to properly shell-quote each
argument.


Thanks, Andreas!

--
Kevin Rodgers
Denver, Colorado, USA






[O] bug#10125: RFE: require and load-path-shadowing

2013-01-16 Thread Kevin Rodgers

On 1/15/13 12:34 PM, Achim Gratz wrote:

Achim Gratz writes:

+   (concat invocation-directory invocation-name)


Better make that
+   (expand-file-name invocation-name invocation-directory)


FWIW here's what I use:

(defun run-emacs (command)
  "Run the Emacs COMMAND in the background via `shell-command'."
  (interactive
   (let ((program (expand-file-name invocation-name invocation-directory)))
 (list (read-string "Emacs command: "
(cons (concat program
  (if (cdr command-line-args)
  (mapconcat 'identity
 (cdr command-line-args)
 " ")
" -Q")
  " &")
      (1+ (length program)))
  (shell-command command))

--
Kevin Rodgers
Denver, Colorado, USA






[Orgmode] Re: desirability of boxquote-style snippets for helping new users

2009-01-15 Thread Kevin Rodgers

Samuel Wales wrote:

I have noticed more people using boxquote and similar ways of setting
off code.  This makes it pretty and makes it stand out, both of which
are good things.

However, most prefix every line.  For example, boxquote by default uses "|".

While an experienced user can figure out rectangle commands or write a
command to unpack the quote, new users and users who can't type much
might skip using the code to avoid having to do that.  And a very new
user could actually stick the whole thing in .emacs and wonder why it
doesn't work.  It adds to the burden of fixing a problem or meeting a
need in emacs without providing much benefit.  Even a few keystrokes
can do that.

Perhaps quotes of code, in all packages like boxquote, could by
default get fancy only on the lines precediing and following.

What do you think?


,[ C-h f boxquote-unbox RET ]
| boxquote-unbox is an interactive compiled Lisp function in `boxquote.el'.
| (boxquote-unbox)
|
| Remove the boxquote that contains `point'.
|
| [back]
`

--
Kevin Rodgers
Denver, Colorado, USA



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode