unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: michael@cadilhac.name (Michaël Cadilhac)
Cc: emacs-devel@gnu.org
Subject: Re: Fontification in ' *' buffers.
Date: Mon, 27 Aug 2007 16:13:37 -0400	[thread overview]
Message-ID: <jwvps18spmb.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87odgtavcu.fsf@cadilhac.name> ("Michaël Cadilhac"'s message of "Mon\, 27 Aug 2007 16\:46\:25 +0200")

> ! otherwise a string <2> or <3> or ... is appended to get an unused name.
> ! Spaces at the start of FILENAME (sans directory) are removed."
>     (let ((lastname (file-name-nondirectory filename)))
>       (if (string= lastname "")
>   	(setq lastname filename))
> !     (save-match-data
> !       (string-match "^ *\\(.*\\)" lastname)
> !       (generate-new-buffer (match-string 1 lastname)))))

Sounds like a good alternate solution.


        Stefan

  reply	other threads:[~2007-08-27 20:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-23 17:16 Fontification in ' *' buffers Michaël Cadilhac
2007-08-26 19:26 ` Michaël Cadilhac
2007-08-27  4:27   ` Stefan Monnier
2007-08-27  7:25     ` Michaël Cadilhac
2007-08-27 14:17       ` Stefan Monnier
2007-08-27 14:46         ` Michaël Cadilhac
2007-08-27 20:13           ` Stefan Monnier [this message]
2007-08-31 13:33           ` Michaël Cadilhac

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=jwvps18spmb.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=michael@cadilhac.name \
    /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.
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).