David Reitter
david****@gmail*****
Thu Dec 22 00:15:26 JST 2005
Hi, there's a bug in smart-dnd that will cause it to give a "wrong type argument: stringp, nil" error when the target buffer hasn't been assigned a file name yet. (E.g. a scratch buffer put into html mode). One shouldn't assume that (buffer-file-name) always returns non-nil. - Dave file-name-directory(nil) (file-relative-name f (file-name-directory (buffer-file-name))) eval((file-relative-name f (file-name-directory (buffer-file-name)))) (replace-match (eval (cdar rlist)) t nil string) (setq string (replace-match (eval ...) t nil string)) (while (string-match (caar rlist) string) (setq string (replace- match ... t nil string))) (while rlist (while (string-match ... string) (setq string ...)) (setq rlist (cdr rlist))) (let ((rlist ...) (f filename)) (while rlist (while ... ...) (setq rlist ...))) smart-dnd-string("<img src=\"%r\">\n" "/Users/dr/Pictures/ chalkboard.png") On 18 Dec 2005, at 14:38, Seiji Zenitani wrote: > Hi, > > I've added your lines to smart-dnd. > Thank you very much. > > -- Seiji > > On 2005/12/18, at 22:32, David Reitter wrote: > >> Hi Seiji and all: >> >> the new smart-dnd package is very useful and it'll be available in >> the next Aquamacs version, too. >> I've added a little code (see patch below) to insert the correct text >> at the position where it has been dropped, not where the point >> happens to be at the time. >> >> Cheers >> David >> >> PS.: I hope this is the right mailing list - sorry for any >> convenience! > > _______________________________________________ > macemacsjp-english mailing list > macem****@lists***** > http://lists.sourceforge.jp/mailman/listinfo/macemacsjp-english