unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Mauger <mmaug@yahoo.com>
To: Juri Linkov <juri@jurta.org>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: [patch] SQL enhancements
Date: Tue, 20 Apr 2010 20:29:26 -0700 (PDT)	[thread overview]
Message-ID: <560223.10105.qm@web62501.mail.re1.yahoo.com> (raw)
In-Reply-To: <87tyr8i9cg.fsf@mail.jurta.org>

On Sun, April 18, 2010, Juri Linkov said: 

> And I forgot to mention one more problem with SQLi mode. 
>
> Maybe the name of the file to read/write the input history
> should be product-specific.  Because the default history file name
> for SQLite is ~/.sqlite_history, for MySQL is ~/.mysql_history, etc.
> It would be better to reuse the existing history files in SQLi mode.

Couldn't you do something like the following:

  (defun my-sqli-setup ()
    "Set the input ring file name based on the product name."
    (setq sql-input-ring-file-name 
          (concat user-emacs-directory "." (symbol-name sql-product) "_history")))
  (setq sql-interactive-mode-hook 'my-sqli-setup)

All of the product specific settings are applied before the hook is called; all of the 
global settings are set after the hook, so the hook can be used to set the globals 
in a product specific manner.

-- Michael





  reply	other threads:[~2010-04-21  3:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-16  4:14 [patch] SQL enhancements Michael Mauger
2010-04-16 20:42 ` Juri Linkov
2010-04-16 21:32   ` Horizontal scroll bars (was: [patch] SQL enhancements) Juri Linkov
2010-04-16 23:06   ` [patch] SQL enhancements Michael Mauger
2010-04-17  0:06     ` Juri Linkov
2010-04-18 23:57   ` Juri Linkov
2010-04-21  3:29     ` Michael Mauger [this message]
2010-04-21  8:49       ` Juri Linkov
2010-04-22  4:25         ` Michael Mauger

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=560223.10105.qm@web62501.mail.re1.yahoo.com \
    --to=mmaug@yahoo.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.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.
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).