From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N3R1Q-0003Z8-GR for mharc-grub-devel@gnu.org; Thu, 29 Oct 2009 05:10:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3R1N-0003Wn-Ek for grub-devel@gnu.org; Thu, 29 Oct 2009 05:10:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3R1G-0003S7-Lo for grub-devel@gnu.org; Thu, 29 Oct 2009 05:10:15 -0400 Received: from [199.232.76.173] (port=54301 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3R1G-0003Ry-Ek for grub-devel@gnu.org; Thu, 29 Oct 2009 05:10:10 -0400 Received: from mail-ew0-f228.google.com ([209.85.219.228]:55263) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3R1G-0007Gg-1C for grub-devel@gnu.org; Thu, 29 Oct 2009 05:10:10 -0400 Received: by ewy28 with SMTP id 28so311340ewy.42 for ; Thu, 29 Oct 2009 02:10:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=h9MFcG7r1JWukeBovefkfyP2yEU4EpMMqbvsM3qjWpE=; b=sq8h37Sn8yvP5g8SxlqmLqSPpO6wtSyXsOH1XgBqI05a4ny6cclveqAxYntS3HU4g+ a2jq0xog/TMTfl3e65ulwjrXrt8Md6JAs/kQLbcmQpaTHcBH81VjOSva/FatHI7qKCQM VX/fskNYSLt2zOtoAMQ6LiJN9caYcXMga2nkA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=mgHNduGRkVg+Cr/gSKW+LnzBV+7xw0FDHg7dAFT5VR9Jgbb4Fis2CR0DxxbJZtih9F USzF8kHiv8B0NzCzyc4HddtThgCbfaA8KpuD/4cjH6Fb29kiIQ4d0xGZJVtaFvcCUVOD Cv3CbNfZ1VUNOJXWkb3qSE+v8LVkV3ri3ex5c= Received: by 10.210.9.5 with SMTP id 5mr2128845ebi.78.1256807409427; Thu, 29 Oct 2009 02:10:09 -0700 (PDT) Received: from debian.bg45.phnet (gprs13.swisscom-mobile.ch [193.247.250.13]) by mx.google.com with ESMTPS id 24sm5126830eyx.13.2009.10.29.02.10.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 29 Oct 2009 02:10:07 -0700 (PDT) Message-ID: <4AE95BEC.4040102@gmail.com> Date: Thu, 29 Oct 2009 10:10:04 +0100 From: Vladimir 'phcoder' Serbinenko User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) MIME-Version: 1.0 To: The development of GRUB 2 References: <48f46e890910222259t1c8508b3h413d69020a373f32@mail.gmail.com> <48f46e890910240104o47421525o2cb7013a12696dc3@mail.gmail.com> <48f46e890910250727g6bb5b762oeb8ca94f684b1cca@mail.gmail.com> <4AE8B3B3.7090103@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [GITGRUB] New menu interface (implementation) X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Oct 2009 09:10:17 -0000 Bean wrote: > On Thu, Oct 29, 2009 at 5:12 AM, Vladimir 'phcoder' Serbinenko > wrote: > >> Bean wrote: >> >>> Hi, >>> >>> Update: >>> >>> Add timeout, progressbar and savedefault. >>> >>> savedefault: >>> >>> Variable savedefault set the system default value. If savedefault=1, >>> save the current boot item. >>> >>> You can also overwrite the default value for individual items, in >>> menuentry statement --save option always save this item, and --nosave >>> never save the item. If neither --save nor --nosave is specified, the >>> system default in savedefault variable is checked. >>> >>> >>> >> Why do you need this over having a normal save_env? I don't see any >> reason to prefer an ad-hoc here over general solution >> > > Hi, > > This is more convenient than adding a save_env command to every entry. > Users can just set savedefault=1 and all items are saved by default, > remove it and it's not saved anymore. They can also config each item > individually with --save and --nosave option, which is similar to > adding a save_env command at the beginning, but easier to edit. > > It may be more convinient in this case but when you start adding ad-hoc structures to any programming languages you end up only clobbering it. This is why a simple language C became more widespread than clobbered Ada. If you want to execute code on running entries you will need signals -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git