From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Dzhus Newsgroups: gmane.emacs.help Subject: Re: Draw a solid horizontal line in a buffer Date: Sun, 10 May 2009 10:51:49 +0400 Organization: albasani.net Message-ID: <87skjdjvqy.fsf@sphinx.net.ru> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1241941283 23817 80.91.229.12 (10 May 2009 07:41:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 May 2009 07:41:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 10 09:41:15 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M33es-0002NR-Ne for geh-help-gnu-emacs@m.gmane.org; Sun, 10 May 2009 09:41:14 +0200 Original-Received: from localhost ([127.0.0.1]:41186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M33es-0007E2-5j for geh-help-gnu-emacs@m.gmane.org; Sun, 10 May 2009 03:41:14 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newshub.sdsu.edu!feeder.erje.net!newsfeed.straub-nv.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-X-Trace: news.albasani.net ICJn2r/uEdjiVt8QfzigRFZ17MbDxNVkZDQndKYSegmotxkQ6ynW9q/T3nVXessb8mu972YNGt3fG3jkStaxe0qYivhOe3FaoTzR3FI0i6WGSJEiwH/OZBbF/qeSBPUC Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Sun, 10 May 2009 06:57:20 +0000 (UTC) X-User-ID: IR+WKSH4AJDw4HYKj0byMRKhtJeBI89jELeLiwz3w7w= Cancel-Lock: sha1:5Mpt0YmCuA+BbsfKBujAXvuXvos= sha1:GHBrdG9wVmRyKeOF0w/IsMLmSvM= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-NNTP-Posting-Host: HN0GR+hARPGS4+7kZqq6hC4j+dfOjD2lnxwW1O+ppI8= Original-Xref: news.stanford.edu gnu.emacs.help:169032 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64297 Archived-At: Joe Riel wrote: > Is there a way to draw a solid horizontal line in a buffer? > Both hypens and underscores, at least in the font I use, > have gaps between them. Monospaced fonts are usually designed in such way that various dashes typeset next to each other form a continuous line. You may try to insert an image with a line as Emacs support several type of images. Check out this function: (defun insert-image-file (file) "Insert an image from FILE in the current buffer at point" (interactive "fImage file name: ") (insert-image (create-image file))) You may call it interactively via `M-x insert-image-file` or use it from your Emacs Lisp code like `(insert-image-file "horizontal-line.png")`. -- Happy Hacking. http://sphinx.net.ru む