From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "James K. Lowden" Newsgroups: gmane.emacs.help Subject: critique: my-first-function Date: Sun, 12 Jun 2016 18:39:01 -0400 Organization: http://www.NewsDemon.com Message-ID: <20160612183901.e51dc7f75549ed99cfd47363@speakeasy.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1465771228 5055 80.91.229.3 (12 Jun 2016 22:40:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jun 2016 22:40:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 13 00:40:28 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bCE3Q-0001xl-4S for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jun 2016 00:40:28 +0200 Original-Received: from localhost ([::1]:52960 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCE3P-0006hT-DE for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Jun 2016 18:40:27 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!fx31.iad.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Newsreader: Sylpheed 3.4.3 (GTK+ 2.24.28; x86_64--netbsd) Original-Lines: 22 Original-X-Complaints-To: abuse@newsdemon.com Original-NNTP-Posting-Date: Sun, 12 Jun 2016 22:39:02 UTC X-Received-Bytes: 1323 X-Received-Body-CRC: 1196100181 Original-Xref: usenet.stanford.edu gnu.emacs.help:218113 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110422 Archived-At: Although I've been using emacs for years, today was the first time I set out to write a substantial (to me) function from first principles. Below is what I came up with. I wonder if anyone has a suggestion or opinion on how it might have been done better, differently, or more in the spirit of the emacs zeitgeist? (defun open-tall-frames () "Open two tall frames." (interactive) (let ( (frame-parameters '((width . 80) (height . 60) (minibuffer . t) (window-system . x))) (frame1 (make-frame frame-parameters)) (frame2 (make-frame frame-parameters)) ) (set-frame-position frame1 -1 0) (set-frame-position frame2 (- (frame-pixel-width frame1)) 0) )) --jkl