unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* flymake doc fix
@ 2007-11-07 20:35 dnz
  2007-11-09 22:00 ` Richard Stallman
  2007-11-17  4:54 ` Richard Stallman
  0 siblings, 2 replies; 4+ messages in thread
From: dnz @ 2007-11-07 20:35 UTC (permalink / raw)
  To: emacs-pretest-bug

Update flymake-perl-init example to the latest version
(flymake-build-relative-filename replaced with file-relative-name).


diff --git a/doc/misc/flymake.texi b/doc/misc/flymake.texi
index 491ee63..6ab4c19 100644
--- a/doc/misc/flymake.texi
+++ b/doc/misc/flymake.texi
@@ -413,12 +413,9 @@ First, we write the @code{init-function}:
 (defun flymake-perl-init ()
   (let* ((temp-file (flymake-init-create-temp-buffer-copy
                      'flymake-create-temp-inplace))
-         (local-file  (concat (flymake-build-relative-filename
-                               (file-name-directory
-                                (buffer-file-name
-                                 (current-buffer)))
-                               (file-name-directory temp-file))
-                              (file-name-nondirectory temp-file))))
+	 (local-file (file-relative-name
+                      temp-file
+                      (file-name-directory buffer-file-name))))
     (list "perl" (list "-wc " local-file))))
 @end lisp

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-18 13:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-07 20:35 flymake doc fix dnz
2007-11-09 22:00 ` Richard Stallman
2007-11-17  4:54 ` Richard Stallman
2007-11-18 13:01   ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).