From: David Belohrad <david.belohrad@cern.ch>
To: <help-gnu-emacs@gnu.org>
Subject: lisp execution stops after dired
Date: Mon, 18 Jul 2011 13:18:29 +0200 [thread overview]
Message-ID: <CANRVBjchkeQVR3wgi2r=TAf9X3=6bYtXeoe24SnU92BMWrE6cQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1237 bytes --]
Dear All.
have this:
(defun vhdl-rename-signal (searchDir)
"renames signal starting from searchDir"
(interactive "DEnter top-level directory to search: ")
;; first do dired
(find-dired searchDir "-name \*.vhd -or -name \*.qsf")
(dired-toggle-marks)
;; now fancy stuff over direded files
(message (dired-get-marked-files))
)
Whatever I tried, it does dired, it finds correctly files I want, however
the execution of this function stops after find-dired and no further
functions
are called (starting from dired-toggle-marks). Why?
What I'm trying to do is to write a simple function, which replaces
occurence of one signal name to another one within a particular project.
Normally I do it by
hand by issuing dired mode to look for all *.vhd and *.qsf, replacing old
signal name by new using dired-do-query-replace-regexp. Then I have to do
this procedure
once more with *.do files (modelsim), but this time convert the replaced
signal completely to lowercase and replace by its lowercase variant. This
permits to rename
a single signal of VHDL code within all the Quartus project.
The function above is just a start of generation of first dired buffer. But
maybe someone else has better idea how to do...
thanks
david
[-- Attachment #2: Type: text/html, Size: 1376 bytes --]
next reply other threads:[~2011-07-18 11:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-18 11:18 David Belohrad [this message]
2011-07-19 20:34 ` lisp execution stops after dired Valentin Plechinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CANRVBjchkeQVR3wgi2r=TAf9X3=6bYtXeoe24SnU92BMWrE6cQ@mail.gmail.com' \
--to=david.belohrad@cern.ch \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).