Skip to contentSkip to conversation

Pull request for branch yem-kconfig-rc-fixes

GIT PULL New Yann E. MORIN 1 participant 4 messages May 20, 2013 – May 29, 2013

Subsystems (2)
lore
Share & tools
lore
#1 lore raw

PATCH 1/2 scripts/config: fix assignment of parameters for short version of --*-after options

In reply to Yann E. MORIN

From: Clement Chauplannaz <[email protected]>

When --*-after options are used, two parameters are parsed from the command-line before the adequate function is called:
- the `before' option, after which the new option will be inserted,
- the name of the option to enable/disable/modularise.

With the short version of --*-after options (namely -E, -D, -M), the parsing step is not performed which leads to processing unset variables.

Add options -E, -D, -M to the test that triggers assignment of parameters for --*-after options.

---
 scripts/config | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/config +1 -1
index bb4d3de..a65ecbb 100755
@@ -105,7 +105,7 @@ while [ "$1" != "" ] ; do
 		;;
 	--refresh)
 		;;
-	--*-after)
+	--*-after|-E|-D|-M)
 		checkarg "$1"
 		A=$ARG
 		checkarg "$2"
Signature · 1 line
1.8.1.2
#2 lore raw

PATCH 2/2 mconf: handle keys in empty dialogs

In reply to Yann E. MORIN

From: Dirk Gouders <[email protected]>

When entering an empty dialog, using the movement keys resulted in unexpected characters beeing displayed, other keys like "z" and "h" did not work as expected.

This patch handles the movement keys as well as other keys, especially "z", "h" and "/".

---
 scripts/kconfig/lxdialog/menubox.c |  8 ++++----
 scripts/kconfig/mconf.c            | 11 ++++++-----
 2 files changed, 10 insertions(+), 9 deletions(-)
scripts/kconfig/lxdialog/menubox.c +4 -4
index 48d382e..eda0350 100644
@@ -303,10 +303,10 @@ do_resize:
 				}
 		}
 
-		if (i < max_choice ||
-		    key == KEY_UP || key == KEY_DOWN ||
-		    key == '-' || key == '+' ||
-		    key == KEY_PPAGE || key == KEY_NPAGE) {
+		if ((i < max_choice ||
+		     key == KEY_UP || key == KEY_DOWN ||
+		     key == '-' || key == '+' ||
+		     key == KEY_PPAGE || key == KEY_NPAGE) && item_count() != 0) {
 			/* Remove highligt of current item */
 			print_item(scroll + choice, choice, FALSE);
 
scripts/kconfig/mconf.c +6 -5
index 387dc8d..a69cbd7 100644
@@ -670,11 +670,12 @@ static void conf(struct menu *menu, struct menu *active_menu)
 				  active_menu, &s_scroll);
 		if (res == 1 || res == KEY_ESC || res == -ERRDISPLAYTOOSMALL)
 			break;
-		if (!item_activate_selected())
-			continue;
-		if (!item_tag())
-			continue;
-
+		if (item_count() != 0) {
+			if (!item_activate_selected())
+				continue;
+			if (!item_tag())
+				continue;
+		}
 		submenu = item_data();
 		active_menu = item_data();
 		if (submenu)
Signature · 1 line
1.8.1.2
#0 lore raw

From: "Yann E. MORIN" <[email protected]>

Hello Michal, All,

Please pull these two rc-fixes:
- fix key handling in empty menus in mconf
- fix scripts/config wrt short --*-after options

Regards,
Yann E. MORIN

The following changes since commit f722406faae2d073cc1d01063d1123c35425939e:

Linux 3.10-rc1 (2013-05-11 17:14:08 -0700)

are available in the git repository at:

git://gitorious.org/linux-kconfig/linux-kconfig.git yem-kconfig-rc-fixes

for you to fetch changes up to 8f9c6f75f603132869375a203d22e5b445f6294f:

mconf: handle keys in empty dialogs (2013-05-20 14:15:27 +0200)

----------------------------------------------------------------
Clement Chauplannaz (1):
scripts/config: fix assignment of parameters for short version of --*-after options

Dirk Gouders (1):
mconf: handle keys in empty dialogs

 scripts/config                     |  2 +-
 scripts/kconfig/lxdialog/menubox.c |  8 ++++----
 scripts/kconfig/mconf.c            | 11 ++++++-----
 3 files changed, 11 insertions(+), 10 deletions(-)
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#3 lore raw

Michal, All,

On 2013-05-20 17:48 +0200, Yann E. MORIN spake thusly:

Quoted 3 lines

Please pull these two rc-fixes:
- fix key handling in empty menus in mconf
- fix scripts/config wrt short --*-after options

Please hold-on on this pull-request a bit more: there is another fix by Dirk that I'll append to this list, and I will re-cubmit the pull-request in a moment.

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'